void nuPiReadWriteSram(u32 addr, void *buf_ptr, u32 size, s32 flag)
addr SRAM address
buf_ptr pointer to the buffer
size transfer size
Reads/writes SRAM data
Uses the PI to read/write data in SRAM. If "flag" is OS_READ, data is read from SRAM into RDRAM. If it is OS_WRITE, data is written from RDRAM into SRAM. The SRAM address must be a multiple of 2 bytes. The buffer pointer must be a multiple of 8 bytes. To use this function, the SRAM access handler must already be initialized by nuPiInitSram().
nuPiInitSram, nuPiReadSram, and nuPiWriteSram