41#define SIF_CMD_ID_SYSTEM 0x80000000
43#define SIF_CMD_CHANGE_SADDR (SIF_CMD_ID_SYSTEM | 0)
44#define SIF_CMD_SET_SREG (SIF_CMD_ID_SYSTEM | 1)
45#define SIF_CMD_INIT_CMD (SIF_CMD_ID_SYSTEM | 2)
46#define SIF_CMD_RESET_CMD (SIF_CMD_ID_SYSTEM | 3)
47#define SIF_CMD_RPC_END (SIF_CMD_ID_SYSTEM | 8)
48#define SIF_CMD_RPC_BIND (SIF_CMD_ID_SYSTEM | 9)
49#define SIF_CMD_RPC_CALL (SIF_CMD_ID_SYSTEM | 10)
50#define SIF_CMD_RPC_RDATA (SIF_CMD_ID_SYSTEM | 12)
53#define SIF_SREG_RPCINIT 0
64typedef void (*SifCmdHandler_t)(
void *data,
void *harg);
67 SifCmdHandler_t handler;
73 SifCmdHandler_t handler;
78void sceSifInitCmd(
void);
79void sceSifExitCmd(
void);
80unsigned int sceSifGetSreg(
int index);
81void sceSifSetSreg(
int index,
unsigned int value);
84void sceSifAddCmdHandler(
int cid, SifCmdHandler_t handler,
void *harg);
90#define SIF_RPC_M_NOWAIT 0x01
92#define SIF_RPC_M_NOWBDC 0x02
94typedef void * (*SifRpcFunc_t)(
int fno,
void *buffer,
int length);
95typedef void (*SifRpcEndFunc_t)(
void *end_param);
194 SifRpcEndFunc_t end_function;
216void sceSifRemoveCmdHandler(
int cid);
217unsigned int sceSifSendCmd(
int cmd,
void *packet,
int packet_size,
void *src_extra,
218 void *dest_extra,
int size_extra);
219unsigned int isceSifSendCmd(
int cmd,
void *packet,
int packet_size,
void *src_extra,
220 void *dest_extra,
int size_extra);
222void sceSifInitRpc(
int mode);
225 int ssize,
void *receive,
int rsize, SifRpcEndFunc_t end_function,
void *end_param);
241void sceSifSetSif1CB(
void (*func)(
void *userdata),
void *userdata);
242void sceSifClearSif1CB(
void);
243unsigned int sceSifSendCmdIntr(
int cmd,
void *packet,
int packet_size,
void *src_extra,
244 void *dest_extra,
int size_extra,
void (*completioncb)(
void *userdata),
void *userdata);
245unsigned int isceSifSendCmdIntr(
int cmd,
void *packet,
int packet_size,
void *src_extra,
246 void *dest_extra,
int size_extra,
void (*completioncb)(
void *userdata),
void *userdata);
249#define SifInitRpc sceSifInitRpc
250#define SifBindRpc sceSifBindRpc
251#define SifCallRpc sceSifCallRpc
253#define SifRegisterRpc sceSifRegisterRpc
255#define SifCheckStatRpc sceSifCheckStatRpc
257#define SifSetRpcQueue sceSifSetRpcQueue
258#define SifGetNextRequest sceSifGetNextRequest
259#define SifExecRequest sceSifExecRequest
260#define SifRpcLoop sceSifRpcLoop
262#define SifRpcGetOtherData sceSifGetOtherData
264#define sifcmd_IMPORTS_start DECLARE_IMPORT_TABLE(sifcmd, 1, 1)
265#define sifcmd_IMPORTS_end END_IMPORT_TABLE
267#define I_sceSifInitCmd DECLARE_IMPORT(4, sceSifInitCmd)
268#define I_sceSifExitCmd DECLARE_IMPORT(5, sceSifExitCmd)
269#define I_sceSifGetSreg DECLARE_IMPORT(6, sceSifGetSreg)
270#define I_sceSifSetSreg DECLARE_IMPORT(7, sceSifSetSreg)
271#define I_sceSifSetCmdBuffer DECLARE_IMPORT(8, sceSifSetCmdBuffer)
272#define I_sceSifSetSysCmdBuffer DECLARE_IMPORT(9, sceSifSetSysCmdBuffer)
273#define I_sceSifAddCmdHandler DECLARE_IMPORT(10, sceSifAddCmdHandler)
274#define I_sceSifRemoveCmdHandler DECLARE_IMPORT(11, sceSifRemoveCmdHandler)
275#define I_sceSifSendCmd DECLARE_IMPORT(12, sceSifSendCmd)
276#define I_isceSifSendCmd DECLARE_IMPORT(13, isceSifSendCmd)
277#define I_sceSifInitRpc DECLARE_IMPORT(14, sceSifInitRpc)
278#define I_sceSifBindRpc DECLARE_IMPORT(15, sceSifBindRpc)
279#define I_sceSifCallRpc DECLARE_IMPORT(16, sceSifCallRpc)
280#define I_sceSifRegisterRpc DECLARE_IMPORT(17, sceSifRegisterRpc)
281#define I_sceSifCheckStatRpc DECLARE_IMPORT(18, sceSifCheckStatRpc)
282#define I_sceSifSetRpcQueue DECLARE_IMPORT(19, sceSifSetRpcQueue)
283#define I_sceSifGetNextRequest DECLARE_IMPORT(20, sceSifGetNextRequest)
284#define I_sceSifExecRequest DECLARE_IMPORT(21, sceSifExecRequest)
285#define I_sceSifRpcLoop DECLARE_IMPORT(22, sceSifRpcLoop)
286#define I_sceSifGetOtherData DECLARE_IMPORT(23, sceSifGetOtherData)
287#define I_sceSifRemoveRpc DECLARE_IMPORT(24, sceSifRemoveRpc)
288#define I_sceSifRemoveRpcQueue DECLARE_IMPORT(25, sceSifRemoveRpcQueue)
289#define I_sceSifSetSif1CB DECLARE_IMPORT(26, sceSifSetSif1CB)
290#define I_sceSifClearSif1CB DECLARE_IMPORT(27, sceSifClearSif1CB)
291#define I_sceSifSendCmdIntr DECLARE_IMPORT(28, sceSifSendCmdIntr)
292#define I_isceSifSendCmdIntr DECLARE_IMPORT(29, isceSifSendCmdIntr)
struct t_SifCmdSRegData SifCmdSRegData_t