ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
cmd_data Struct Reference
+ Collaboration diagram for cmd_data:

Data Fields

void * pktbuf
 
void * unused
 
void * iopbuf
 
SifCmdHandlerData_tsys_cmd_handlers
 
u32 nr_sys_handlers
 
SifCmdHandlerData_tusr_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 41 of file sifcmd.c.

Field 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

SifCmdHandlerData_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: