The first commit
This commit is contained in:
14
src/core1/done/io/epirawread.c
Normal file
14
src/core1/done/io/epirawread.c
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user