osEPiRawReadIo.c (371B)
1 #include "libultra_internal.h" 2 #include "PR/rcp.h" 3 #include "piint.h" 4 5 s32 osEPiRawReadIo(OSPiHandle *pihandle, u32 devAddr, u32 *data) { 6 register s32 stat; 7 #ifdef VERSION_CN 8 u32 domain; 9 #endif 10 11 #ifdef VERSION_CN 12 EPI_SYNC(pihandle, stat, domain); 13 #else 14 WAIT_ON_IO_BUSY(stat); 15 #endif 16 17 *data = IO_READ(pihandle->baseAddress | devAddr); 18 19 return 0; 20 }