diff options
Diffstat (limited to 'lib/ultralib/src/io/dp.c')
| -rwxr-xr-x | lib/ultralib/src/io/dp.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/ultralib/src/io/dp.c b/lib/ultralib/src/io/dp.c new file mode 100755 index 0000000..e4d0254 --- /dev/null +++ b/lib/ultralib/src/io/dp.c @@ -0,0 +1,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; + } + + return FALSE; +} |
