1#include "libultra_internal.h" 2#include "hardware.h" 3 4s32 __osSpDeviceBusy() { 5 register u32 status = HW_REG(SP_STATUS_REG, u32); 6 if (status & (SPSTATUS_IO_FULL | SPSTATUS_DMA_FULL | SPSTATUS_DMA_BUSY)) { 7 return 1; 8 } 9 return 0; 10} 11 12