Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Data Structures | Macros | Typedefs | Functions
os_pi.h File Reference

Go to the source code of this file.

Data Structures

struct  __OSBlockInfo
 
struct  __OSTranxInfo
 
struct  OSPiHandle_s
 
struct  OSPiInfo
 
struct  OSIoMesgHdr
 
struct  OSIoMesg
 

Macros

#define OS_READ   0
 
#define OS_WRITE   1
 
#define OS_MESG_PRI_NORMAL   0
 
#define OS_MESG_PRI_HIGH   1
 

Typedefs

typedef struct OSPiHandle_s OSPiHandle
 

Functions

s32 osPiStartDma (OSIoMesg *mb, s32 priority, s32 direction, u32 devAddr, void *vAddr, u32 nbytes, OSMesgQueue *mq)
 
void osCreatePiManager (OSPri pri, OSMesgQueue *cmdQ, OSMesg *cmdBuf, s32 cmdMsgCnt)
 
OSMesgQueue * osPiGetCmdQueue (void)
 
s32 osPiWriteIo (u32 devAddr, u32 data)
 
s32 osPiReadIo (u32 devAddr, u32 *data)
 

Macro Definition Documentation

◆ OS_MESG_PRI_HIGH

#define OS_MESG_PRI_HIGH   1

◆ OS_MESG_PRI_NORMAL

#define OS_MESG_PRI_NORMAL   0

◆ OS_READ

#define OS_READ   0

◆ OS_WRITE

#define OS_WRITE   1

Typedef Documentation

◆ OSPiHandle

Function Documentation

◆ osCreatePiManager()

void osCreatePiManager ( OSPri  pri,
OSMesgQueue *  cmdQ,
OSMesg *  cmdBuf,
s32  cmdMsgCnt 
)

◆ osPiGetCmdQueue()

OSMesgQueue* osPiGetCmdQueue ( void  )

◆ osPiReadIo()

s32 osPiReadIo ( u32  devAddr,
u32 data 
)

◆ osPiStartDma()

s32 osPiStartDma ( OSIoMesg mb,
s32  priority,
s32  direction,
u32  devAddr,
void vAddr,
u32  nbytes,
OSMesgQueue *  mq 
)

◆ osPiWriteIo()

s32 osPiWriteIo ( u32  devAddr,
u32  data 
)