30 static struct t_SifRpcDataQueue
cb_queue;
31 static struct t_SifRpcServerData
cb_srv;
38 printf(
"EE: power button pressed\n");
50 static unsigned char cb_rpc_buffer[64] __attribute__((aligned(64)));
61 static int _init_count = -1;
89 int autoShutdown[4] = {0};
static void nopdelay(void)
s32 CreateThread(ee_thread_t *thread)
s32 StartThread(s32 thread_id, void *args)
s32 TerminateThread(s32 thread_id)
s32 DeleteThread(s32 thread_id)
s32 ChangeThreadPriority(s32 thread_id, s32 priority)
#define POWEROFF_THREAD_PRIORITY
void(* poweroff_callback)(void *arg)
#define PWROFF_ENABLE_AUTO_SHUTOFF
SifRpcServerData_t * SifRegisterRpc(SifRpcServerData_t *srv, int sid, SifRpcFunc_t func, void *buff, SifRpcFunc_t cfunc, void *cbuff, SifRpcDataQueue_t *qd)
SifRpcDataQueue_t * SifSetRpcQueue(SifRpcDataQueue_t *q, int thread_id)
SifRpcServerData_t * SifRemoveRpc(SifRpcServerData_t *sd, SifRpcDataQueue_t *queue)
void SifRpcLoop(SifRpcDataQueue_t *q)
SifRpcDataQueue_t * SifRemoveRpcQueue(SifRpcDataQueue_t *qd)
int SifBindRpc(SifRpcClientData_t *client, int rpc_number, int mode)
int SifCallRpc(SifRpcClientData_t *client, int rpc_number, int mode, void *send, int ssize, void *receive, int rsize, SifRpcEndFunc_t end_function, void *end_param)
static poweroff_callback poweroff_cb
void poweroffSetCallback(poweroff_callback cb, void *arg)
static SifRpcClientData_t cd0
static void * PowerOff_ee_rpc_handler(int fnum, void *buffer, int len)
static int powerOffThreadId
static u8 poffThreadStack[512 *16]
static struct t_SifRpcServerData cb_srv
static struct t_SifRpcDataQueue cb_queue
static void PowerOffThread(void *dat)
static void * poweroff_data
void poweroffShutdown(void)
void poweroffChangeThreadPriority(int priority)
struct t_SifRpcServerData * server