The first commit

This commit is contained in:
Banjo Kazooie
2022-07-15 17:09:41 -05:00
commit dd13d34074
1087 changed files with 391897 additions and 0 deletions

14
src/done/epirawread.c Normal file
View File

@@ -0,0 +1,14 @@
#include <os_internal.h>
#include <rcp.h>
#include "piint.h"
s32 osEPiRawReadIo(OSPiHandle *pihandle, u32 devAddr, u32 *data)
{
register u32 stat;
register u32 domain;
WAIT_ON_IOBUSY(stat);
*data = IO_READ(pihandle->baseAddress | devAddr);
return 0;
}