1#include "libultra_internal.h" 2#include "hardware.h" 3 4s32 __osSiDeviceBusy() { 5 register u32 status; 6 status = HW_REG(SI_STATUS_REG, u32); 7 if (status & (SI_STATUS_DMA_BUSY | SI_STATUS_IO_READ_BUSY)) { 8 return 1; 9 } else { 10 return 0; 11 } 12} 13 14