summaryrefslogtreecommitdiff
path: root/src/libultra/io/si.c
blob: 688c5e7008f91e04b3c5f0a7e2462683bb436cde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "ultra64.h"
#include "stdbool.h"

s32 __osSiDeviceBusy() {
    register u32 status = IO_READ(SI_STATUS_REG);

    if (status & (SI_STATUS_DMA_BUSY | SI_STATUS_RD_BUSY)) {
        return true;
    } else {
        return false;
    }
}