sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
cmd_data Struct Reference

Public Attributes

void * pktbuf
void * unused
void * iopbuf
SifCmdSysHandlerData_t * sys_cmd_handlers
u32 nr_sys_handlers
SifCmdHandlerData_t * usr_cmd_handlers
u32 nr_usr_handlers
int * sregs

Detailed Description

Even though I'm reluctant to do this, I've made this structure binary compatible with the SCE libs and ps2lib. In all implementations, a pointer to this data is stored in SIF register 0x80000001. Each routine that relies on this data can then use the data referenced from that register, so that even if a SIF library is initialized after this one, we should still work exactly as expected.

Definition at line 40 of file sifcmd.c.

Member Data Documentation

◆ iopbuf

void* cmd_data::iopbuf

Address of IOP SIF DMA receive address

Definition at line 46 of file sifcmd.c.

◆ nr_sys_handlers

u32 cmd_data::nr_sys_handlers

Definition at line 48 of file sifcmd.c.

◆ nr_usr_handlers

u32 cmd_data::nr_usr_handlers

Definition at line 50 of file sifcmd.c.

◆ pktbuf

void* cmd_data::pktbuf

Command packet received from the IOP

Definition at line 43 of file sifcmd.c.

◆ sregs

int* cmd_data::sregs

Definition at line 51 of file sifcmd.c.

◆ sys_cmd_handlers

SifCmdSysHandlerData_t* cmd_data::sys_cmd_handlers

Definition at line 47 of file sifcmd.c.

◆ unused

void* cmd_data::unused

Definition at line 44 of file sifcmd.c.

◆ usr_cmd_handlers

SifCmdHandlerData_t* cmd_data::usr_cmd_handlers

Definition at line 49 of file sifcmd.c.


The documentation for this struct was generated from the following file: