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

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

int __osDpDeviceBusy(void) {
    register u32 stat = IO_READ(DPC_STATUS_REG);

    if (stat & DPC_STATUS_DMA_BUSY) {
        return TRUE;
    } else {
        return FALSE;
    }
}