PS2SDK
PS2 Homebrew Libraries
|
Go to the source code of this file.
Data Structures | |
struct | t_SifCmdHeader |
struct | t_SifCmdSRegData |
struct | t_SifCmdHandlerData |
struct | t_SifCmdSysHandlerData |
struct | t_SifRpcPktHeader |
struct | t_SifRpcRendPkt |
struct | t_SifRpcOtherDataPkt |
struct | t_SifRpcBindPkt |
struct | t_SifRpcCallPkt |
struct | t_SifRpcServerData |
struct | t_SifRpcHeader |
struct | t_SifRpcClientData |
struct | t_SifRpcReceiveData |
struct | t_SifRpcDataQueue |
Macros | |
#define | SIF_CMD_ID_SYSTEM 0x80000000 |
#define | SIF_CMD_CHANGE_SADDR (SIF_CMD_ID_SYSTEM | 0) |
#define | SIF_CMD_SET_SREG (SIF_CMD_ID_SYSTEM | 1) |
#define | SIF_CMD_INIT_CMD (SIF_CMD_ID_SYSTEM | 2) |
#define | SIF_CMD_RESET_CMD (SIF_CMD_ID_SYSTEM | 3) |
#define | SIF_CMD_RPC_END (SIF_CMD_ID_SYSTEM | 8) |
#define | SIF_CMD_RPC_BIND (SIF_CMD_ID_SYSTEM | 9) |
#define | SIF_CMD_RPC_CALL (SIF_CMD_ID_SYSTEM | 10) |
#define | SIF_CMD_RPC_RDATA (SIF_CMD_ID_SYSTEM | 12) |
#define | SIF_SREG_RPCINIT 0 |
#define | SIF_RPC_M_NOWAIT 0x01 |
#define | SIF_RPC_M_NOWBDC 0x02 |
#define | SifInitRpc sceSifInitRpc |
#define | SifBindRpc sceSifBindRpc |
#define | SifCallRpc sceSifCallRpc |
#define | SifRegisterRpc sceSifRegisterRpc |
#define | SifCheckStatRpc sceSifCheckStatRpc |
#define | SifSetRpcQueue sceSifSetRpcQueue |
#define | SifGetNextRequest sceSifGetNextRequest |
#define | SifExecRequest sceSifExecRequest |
#define | SifRpcLoop sceSifRpcLoop |
#define | SifRpcGetOtherData sceSifGetOtherData |
#define | sifcmd_IMPORTS_start DECLARE_IMPORT_TABLE(sifcmd, 1, 1) |
#define | sifcmd_IMPORTS_end END_IMPORT_TABLE |
#define | I_sceSifInitCmd DECLARE_IMPORT(4, sceSifInitCmd) |
#define | I_sceSifExitCmd DECLARE_IMPORT(5, sceSifExitCmd) |
#define | I_sceSifGetSreg DECLARE_IMPORT(6, sceSifGetSreg) |
#define | I_sceSifSetSreg DECLARE_IMPORT(7, sceSifSetSreg) |
#define | I_sceSifSetCmdBuffer DECLARE_IMPORT(8, sceSifSetCmdBuffer) |
#define | I_sceSifSetSysCmdBuffer DECLARE_IMPORT(9, sceSifSetSysCmdBuffer) |
#define | I_sceSifAddCmdHandler DECLARE_IMPORT(10, sceSifAddCmdHandler) |
#define | I_sceSifRemoveCmdHandler DECLARE_IMPORT(11, sceSifRemoveCmdHandler) |
#define | I_sceSifSendCmd DECLARE_IMPORT(12, sceSifSendCmd) |
#define | I_isceSifSendCmd DECLARE_IMPORT(13, isceSifSendCmd) |
#define | I_sceSifInitRpc DECLARE_IMPORT(14, sceSifInitRpc) |
#define | I_sceSifBindRpc DECLARE_IMPORT(15, sceSifBindRpc) |
#define | I_sceSifCallRpc DECLARE_IMPORT(16, sceSifCallRpc) |
#define | I_sceSifRegisterRpc DECLARE_IMPORT(17, sceSifRegisterRpc) |
#define | I_sceSifCheckStatRpc DECLARE_IMPORT(18, sceSifCheckStatRpc) |
#define | I_sceSifSetRpcQueue DECLARE_IMPORT(19, sceSifSetRpcQueue) |
#define | I_sceSifGetNextRequest DECLARE_IMPORT(20, sceSifGetNextRequest) |
#define | I_sceSifExecRequest DECLARE_IMPORT(21, sceSifExecRequest) |
#define | I_sceSifRpcLoop DECLARE_IMPORT(22, sceSifRpcLoop) |
#define | I_sceSifGetOtherData DECLARE_IMPORT(23, sceSifGetOtherData) |
#define | I_sceSifRemoveRpc DECLARE_IMPORT(24, sceSifRemoveRpc) |
#define | I_sceSifRemoveRpcQueue DECLARE_IMPORT(25, sceSifRemoveRpcQueue) |
#define | I_sceSifSetSif1CB DECLARE_IMPORT(26, sceSifSetSif1CB) |
#define | I_sceSifClearSif1CB DECLARE_IMPORT(27, sceSifClearSif1CB) |
#define | I_sceSifSendCmdIntr DECLARE_IMPORT(28, sceSifSendCmdIntr) |
#define | I_isceSifSendCmdIntr DECLARE_IMPORT(29, isceSifSendCmdIntr) |
Typedefs | |
typedef struct t_SifCmdHeader | SifCmdHeader_t |
typedef struct t_SifCmdSRegData | SifCmdSRegData_t |
typedef void(* | SifCmdHandler_t) (void *data, void *harg) |
typedef struct t_SifCmdHandlerData | SifCmdHandlerData_t |
typedef struct t_SifCmdSysHandlerData | SifCmdSysHandlerData_t |
typedef void *(* | SifRpcFunc_t) (int fno, void *buffer, int length) |
typedef void(* | SifRpcEndFunc_t) (void *end_param) |
typedef struct t_SifRpcPktHeader | SifRpcPktHeader_t |
typedef struct t_SifRpcRendPkt | SifRpcRendPkt_t |
typedef struct t_SifRpcOtherDataPkt | SifRpcOtherDataPkt_t |
typedef struct t_SifRpcBindPkt | SifRpcBindPkt_t |
typedef struct t_SifRpcCallPkt | SifRpcCallPkt_t |
typedef struct t_SifRpcServerData | SifRpcServerData_t |
typedef struct t_SifRpcHeader | SifRpcHeader_t |
typedef struct t_SifRpcClientData | SifRpcClientData_t |
typedef struct t_SifRpcReceiveData | SifRpcReceiveData_t |
typedef struct t_SifRpcDataQueue | SifRpcDataQueue_t |
Functions | |
void | sceSifInitCmd (void) |
void | sceSifExitCmd (void) |
unsigned int | sceSifGetSreg (int index) |
void | sceSifSetSreg (int index, unsigned int value) |
void | sceSifSetCmdBuffer (SifCmdHandlerData_t *cmdBuffer, int size) |
void | sceSifSetSysCmdBuffer (SifCmdSysHandlerData_t *sysCmdBuffer, int size) |
void | sceSifAddCmdHandler (int cid, SifCmdHandler_t handler, void *harg) |
void | sceSifRemoveCmdHandler (int cid) |
unsigned int | sceSifSendCmd (int cmd, void *packet, int packet_size, void *src_extra, void *dest_extra, int size_extra) |
unsigned int | isceSifSendCmd (int cmd, void *packet, int packet_size, void *src_extra, void *dest_extra, int size_extra) |
void | sceSifInitRpc (int mode) |
int | sceSifBindRpc (SifRpcClientData_t *client, int rpc_number, int mode) |
int | sceSifCallRpc (SifRpcClientData_t *client, int rpc_number, int mode, void *send, int ssize, void *receive, int rsize, SifRpcEndFunc_t end_function, void *end_param) |
void | sceSifRegisterRpc (SifRpcServerData_t *sd, int sid, SifRpcFunc_t func, void *buf, SifRpcFunc_t cfunc, void *cbuf, SifRpcDataQueue_t *qd) |
int | sceSifCheckStatRpc (SifRpcClientData_t *cd) |
SifRpcDataQueue_t * | sceSifSetRpcQueue (SifRpcDataQueue_t *q, int thread_id) |
SifRpcServerData_t * | sceSifGetNextRequest (SifRpcDataQueue_t *qd) |
void | sceSifExecRequest (SifRpcServerData_t *srv) |
void | sceSifRpcLoop (SifRpcDataQueue_t *qd) |
int | sceSifGetOtherData (SifRpcReceiveData_t *rd, void *src, void *dest, int size, int mode) |
SifRpcServerData_t * | sceSifRemoveRpc (SifRpcServerData_t *sd, SifRpcDataQueue_t *qd) |
SifRpcDataQueue_t * | sceSifRemoveRpcQueue (SifRpcDataQueue_t *qd) |
void | sceSifSetSif1CB (void(*func)(void *userdata), void *userdata) |
void | sceSifClearSif1CB (void) |
unsigned int | sceSifSendCmdIntr (int cmd, void *packet, int packet_size, void *src_extra, void *dest_extra, int size_extra, void(*completioncb)(void *userdata), void *userdata) |
unsigned int | isceSifSendCmdIntr (int cmd, void *packet, int packet_size, void *src_extra, void *dest_extra, int size_extra, void(*completioncb)(void *userdata), void *userdata) |
SIF CMD and RPC.
Definition in file sifcmd.h.
struct t_SifCmdHeader |
struct t_SifCmdSRegData |
Structure for remotely (over the SIF) changing the value of a software register (SREG). There are 32 software registers (0 - 31). Registers 0-7 are used by the system.
Data Fields | ||
---|---|---|
SifCmdHeader_t | header | |
int | index | |
unsigned int | value |
struct t_SifCmdHandlerData |
struct t_SifCmdSysHandlerData |
struct t_SifRpcPktHeader |
Data Fields | ||
---|---|---|
struct t_SifCmdHeader | sifcmd | |
int | rec_id | |
void * | pkt_addr | |
int | rpc_id |
struct t_SifRpcRendPkt |
Data Fields | ||
---|---|---|
struct t_SifCmdHeader | sifcmd | |
int | rec_id | |
void * | pkt_addr | |
int | rpc_id | |
struct t_SifRpcClientData * | client | |
u32 | cid | |
struct t_SifRpcServerData * | server | |
void * | buff | |
void * | cbuff |
struct t_SifRpcOtherDataPkt |
Data Fields | ||
---|---|---|
struct t_SifCmdHeader | sifcmd | |
int | rec_id | |
void * | pkt_addr | |
int | rpc_id | |
struct t_SifRpcReceiveData * | receive | |
void * | src | |
void * | dest | |
int | size |
struct t_SifRpcBindPkt |
Data Fields | ||
---|---|---|
struct t_SifCmdHeader | sifcmd | |
int | rec_id | |
void * | pkt_addr | |
int | rpc_id | |
struct t_SifRpcClientData * | client | |
int | sid |
struct t_SifRpcCallPkt |
Data Fields | ||
---|---|---|
struct t_SifCmdHeader | sifcmd | |
int | rec_id | |
void * | pkt_addr | |
int | rpc_id | |
struct t_SifRpcClientData * | client | |
int | rpc_number | |
int | send_size | |
void * | receive | |
int | recv_size | |
int | rmode | |
struct t_SifRpcServerData * | server |
struct t_SifRpcServerData |
Data Fields | ||
---|---|---|
int | sid | |
SifRpcFunc_t | func | |
void * | buff | |
int | size | |
SifRpcFunc_t | cfunc | |
void * | cbuff | |
int | size2 | |
struct t_SifRpcClientData * | client | |
void * | pkt_addr | |
int | rpc_number | |
void * | receive | |
int | rsize | |
int | rmode | |
int | rid | |
struct t_SifRpcServerData * | link | |
struct t_SifRpcServerData * | next | |
struct t_SifRpcDataQueue * | base |
struct t_SifRpcHeader |
struct t_SifRpcClientData |
Data Fields | ||
---|---|---|
struct t_SifRpcHeader | hdr | |
u32 | command | |
void * | buff | |
void * | cbuff | |
SifRpcEndFunc_t | end_function | |
void * | end_param | |
struct t_SifRpcServerData * | server |
struct t_SifRpcReceiveData |
Data Fields | ||
---|---|---|
struct t_SifRpcHeader | hdr | |
void * | src | |
void * | dest | |
int | size |
struct t_SifRpcDataQueue |
Data Fields | ||
---|---|---|
int | thread_id | |
int | active | |
struct t_SifRpcServerData * | link | |
struct t_SifRpcServerData * | start | |
struct t_SifRpcServerData * | end | |
struct t_SifRpcDataQueue * | next |
#define SIF_CMD_CHANGE_SADDR (SIF_CMD_ID_SYSTEM | 0) |
#define SIF_CMD_SET_SREG (SIF_CMD_ID_SYSTEM | 1) |
#define SIF_CMD_INIT_CMD (SIF_CMD_ID_SYSTEM | 2) |
#define SIF_CMD_RESET_CMD (SIF_CMD_ID_SYSTEM | 3) |
#define SIF_CMD_RPC_END (SIF_CMD_ID_SYSTEM | 8) |
#define SIF_CMD_RPC_BIND (SIF_CMD_ID_SYSTEM | 9) |
#define SIF_CMD_RPC_CALL (SIF_CMD_ID_SYSTEM | 10) |
#define SIF_CMD_RPC_RDATA (SIF_CMD_ID_SYSTEM | 12) |
#define sifcmd_IMPORTS_start DECLARE_IMPORT_TABLE(sifcmd, 1, 1) |
#define I_sceSifSetCmdBuffer DECLARE_IMPORT(8, sceSifSetCmdBuffer) |
#define I_sceSifSetSysCmdBuffer DECLARE_IMPORT(9, sceSifSetSysCmdBuffer) |
#define I_sceSifAddCmdHandler DECLARE_IMPORT(10, sceSifAddCmdHandler) |
#define I_sceSifRemoveCmdHandler DECLARE_IMPORT(11, sceSifRemoveCmdHandler) |
#define I_isceSifSendCmd DECLARE_IMPORT(13, isceSifSendCmd) |
#define I_sceSifRegisterRpc DECLARE_IMPORT(17, sceSifRegisterRpc) |
#define I_sceSifCheckStatRpc DECLARE_IMPORT(18, sceSifCheckStatRpc) |
#define I_sceSifSetRpcQueue DECLARE_IMPORT(19, sceSifSetRpcQueue) |
#define I_sceSifGetNextRequest DECLARE_IMPORT(20, sceSifGetNextRequest) |
#define I_sceSifExecRequest DECLARE_IMPORT(21, sceSifExecRequest) |
#define I_sceSifGetOtherData DECLARE_IMPORT(23, sceSifGetOtherData) |
#define I_sceSifRemoveRpc DECLARE_IMPORT(24, sceSifRemoveRpc) |
#define I_sceSifRemoveRpcQueue DECLARE_IMPORT(25, sceSifRemoveRpcQueue) |
#define I_sceSifSetSif1CB DECLARE_IMPORT(26, sceSifSetSif1CB) |
#define I_sceSifClearSif1CB DECLARE_IMPORT(27, sceSifClearSif1CB) |
#define I_sceSifSendCmdIntr DECLARE_IMPORT(28, sceSifSendCmdIntr) |
#define I_isceSifSendCmdIntr DECLARE_IMPORT(29, isceSifSendCmdIntr) |
typedef struct t_SifCmdHeader SifCmdHeader_t |
SIF command.
typedef struct t_SifCmdSRegData SifCmdSRegData_t |
Structure for remotely (over the SIF) changing the value of a software register (SREG). There are 32 software registers (0 - 31). Registers 0-7 are used by the system.
typedef void *(* SifRpcFunc_t) (int fno, void *buffer, int length) |
void sceSifSetCmdBuffer | ( | SifCmdHandlerData_t * | cmdBuffer, |
int | size | ||
) |
void sceSifSetSysCmdBuffer | ( | SifCmdSysHandlerData_t * | sysCmdBuffer, |
int | size | ||
) |
void sceSifAddCmdHandler | ( | int | cid, |
SifCmdHandler_t | handler, | ||
void * | harg | ||
) |
unsigned int sceSifSendCmd | ( | int | cmd, |
void * | packet, | ||
int | packet_size, | ||
void * | src_extra, | ||
void * | dest_extra, | ||
int | size_extra | ||
) |
unsigned int isceSifSendCmd | ( | int | cmd, |
void * | packet, | ||
int | packet_size, | ||
void * | src_extra, | ||
void * | dest_extra, | ||
int | size_extra | ||
) |
int sceSifBindRpc | ( | SifRpcClientData_t * | client, |
int | rpc_number, | ||
int | mode | ||
) |
int sceSifCallRpc | ( | SifRpcClientData_t * | client, |
int | rpc_number, | ||
int | mode, | ||
void * | send, | ||
int | ssize, | ||
void * | receive, | ||
int | rsize, | ||
SifRpcEndFunc_t | end_function, | ||
void * | end_param | ||
) |
void sceSifRegisterRpc | ( | SifRpcServerData_t * | sd, |
int | sid, | ||
SifRpcFunc_t | func, | ||
void * | buf, | ||
SifRpcFunc_t | cfunc, | ||
void * | cbuf, | ||
SifRpcDataQueue_t * | qd | ||
) |
int sceSifCheckStatRpc | ( | SifRpcClientData_t * | cd | ) |
SifRpcDataQueue_t * sceSifSetRpcQueue | ( | SifRpcDataQueue_t * | q, |
int | thread_id | ||
) |
SifRpcServerData_t * sceSifGetNextRequest | ( | SifRpcDataQueue_t * | qd | ) |
void sceSifExecRequest | ( | SifRpcServerData_t * | srv | ) |
void sceSifRpcLoop | ( | SifRpcDataQueue_t * | qd | ) |
int sceSifGetOtherData | ( | SifRpcReceiveData_t * | rd, |
void * | src, | ||
void * | dest, | ||
int | size, | ||
int | mode | ||
) |
SifRpcServerData_t * sceSifRemoveRpc | ( | SifRpcServerData_t * | sd, |
SifRpcDataQueue_t * | qd | ||
) |
SifRpcDataQueue_t * sceSifRemoveRpcQueue | ( | SifRpcDataQueue_t * | qd | ) |
void sceSifSetSif1CB | ( | void(*)(void *userdata) | func, |
void * | userdata | ||
) |