summaryrefslogtreecommitdiff
path: root/lib/ultralib/src/io/si.c
blob: 78794f56e721fe6bec6a18300dce1fdeef5043d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "PR/os_internal.h"
#include "PRinternal/siint.h"

// TODO: this comes from a header
#ident "$Revision: 1.17 $"

int __osSiDeviceBusy(void) {
    register u32 stat = IO_READ(SI_STATUS_REG);

    if (stat & (SI_STATUS_DMA_BUSY | SI_STATUS_RD_BUSY)) {
        return TRUE;
    } else {
        return FALSE;
    }
}