diff options
Diffstat (limited to 'lib/ultralib/src/io/sprawread.c')
| -rwxr-xr-x | lib/ultralib/src/io/sprawread.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/ultralib/src/io/sprawread.c b/lib/ultralib/src/io/sprawread.c new file mode 100755 index 0000000..affc78b --- /dev/null +++ b/lib/ultralib/src/io/sprawread.c @@ -0,0 +1,16 @@ +#include "PR/os_internal.h" +#include "PR/rcp.h" +#include "../os/osint.h" + +// TODO: this comes from a header +#ident "$Revision: 1.17 $" + +s32 __osSpRawReadIo(u32 devAddr, u32 *data) { + if (__osSpDeviceBusy()) { + return -1; + } + + *data = IO_READ(devAddr); + return 0; +} + |
