blob: f2cc4b95b2455c884bade4b8575e0ffae8beb809 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "PR/os_internal.h"
#include "PRinternal/piint.h"
// TODO: this comes from a header
#ident "$Revision: 1.17 $"
int __osPiDeviceBusy(void) {
register u32 stat = IO_READ(PI_STATUS_REG);
if (stat & (PI_STATUS_DMA_BUSY | PI_STATUS_IO_BUSY)) {
return TRUE;
} else {
return FALSE;
}
}
|