mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-08-11 11:22:50 -04:00
13 lines
188 B
C
13 lines
188 B
C
#include <libultra_internal.h>
|
|
|
|
int __osSiDeviceBusy()
|
|
{
|
|
register u32 stat = IO_READ(SI_STATUS_REG);
|
|
|
|
if (stat & (SI_STATUS_DMA_BUSY | SI_STATUS_RD_BUSY)) {
|
|
return 1;
|
|
}
|
|
|
|
return 0;
|
|
}
|