PS2SDK
PS2 Homebrew Libraries
|
#include <tamtypes.h>
Go to the source code of this file.
Data Structures | |
struct | t_SifCmdHeader |
struct | t_SifCmdSRegData |
struct | t_SifCmdHandlerData |
struct | _iop_reset_pkt |
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 | RESET_ARG_MAX 79 |
#define | SIF_CMD_M_INTR 0x01 |
#define | SIF_CMD_M_WBDC 0x04 |
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 _iop_reset_pkt | SifCmdResetData_t |
Functions | |
unsigned int | SifSendCmd (int cmd, void *packet, int packet_size, void *src_extra, void *dest_extra, int size_extra) |
unsigned int | iSifSendCmd (int cmd, void *packet, int packet_size, void *src_extra, void *dest_extra, int size_extra) |
void | SifAddCmdHandler (int pos, SifCmdHandler_t handler, void *harg) |
void | SifRemoveCmdHandler (int pos) |
void | SifInitCmd (void) |
void | SifExitCmd (void) |
SifCmdHandlerData_t * | SifSetCmdBuffer (SifCmdHandlerData_t *db, int size) |
int | SifGetSreg (int index) |
void | SifWriteBackDCache (void *ptr, int size) |
EE SIF commands prototypes
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 _iop_reset_pkt |
Data Fields | ||
---|---|---|
struct t_SifCmdHeader | header | |
int | arglen | |
int | mode | |
char | arg[RESET_ARG_MAX+1] |
#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_CMD_M_INTR 0x01 |
#define SIF_CMD_M_WBDC 0x04 |
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.