SSBM Decomp
Loading...
Searching...
No Matches
hio.c File Reference
#include "hio.h"
#include <dolphin/os/OSContext.h>
#include <dolphin/os/OSExi.h>
#include <dolphin/os/OSInit.h>
#include <dolphin/os/OSInterrupt.h>

Functions

static void ExtHandler (s32 chan, OSContext *context)
 
static void ExiHandler (s32 chan, OSContext *context)
 
static void DbgHandler (__OSInterrupt interrupt, OSContext *context)
 
static void TxHandler (s32 chan, OSContext *context)
 
static void RxHandler (s32 chan, OSContext *context)
 
bool HIOEnumDevices (HIOEnumCallback callback)
 
bool HIOInit (s32 chan, HIOCallback callback)
 
bool HIOReadMailbox (u32 *word)
 
bool HIOWriteMailbox (u32 word)
 
bool HIORead (u32 addr, void *buffer, s32 size)
 
bool HIOWrite (u32 addr, void *buffer, s32 size)
 
bool HIOReadAsync (u32 addr, void *buffer, s32 size, HIOCallback callback)
 
bool HIOWriteAsync (u32 addr, void *buffer, s32 size, HIOCallback callback)
 
bool HIOReadStatus (u32 *status)
 

Variables

static s32 Chan = -1
 
static unsigned long Dev
 
static HIOCallback ExiCallback
 
static HIOCallback TxCallback
 
static HIOCallback RxCallback
 

Function Documentation

◆ ExtHandler()

static void ExtHandler ( s32  chan,
OSContext context 
)
static

◆ ExiHandler()

static void ExiHandler ( s32  chan,
OSContext context 
)
static

◆ DbgHandler()

static void DbgHandler ( __OSInterrupt  interrupt,
OSContext context 
)
static

◆ TxHandler()

static void TxHandler ( s32  chan,
OSContext context 
)
static

◆ RxHandler()

static void RxHandler ( s32  chan,
OSContext context 
)
static

◆ HIOEnumDevices()

bool HIOEnumDevices ( HIOEnumCallback  callback)

◆ HIOInit()

bool HIOInit ( s32  chan,
HIOCallback  callback 
)

◆ HIOReadMailbox()

bool HIOReadMailbox ( u32 word)

◆ HIOWriteMailbox()

bool HIOWriteMailbox ( u32  word)

◆ HIORead()

bool HIORead ( u32  addr,
void *  buffer,
s32  size 
)

◆ HIOWrite()

bool HIOWrite ( u32  addr,
void *  buffer,
s32  size 
)

◆ HIOReadAsync()

bool HIOReadAsync ( u32  addr,
void *  buffer,
s32  size,
HIOCallback  callback 
)

◆ HIOWriteAsync()

bool HIOWriteAsync ( u32  addr,
void *  buffer,
s32  size,
HIOCallback  callback 
)

◆ HIOReadStatus()

bool HIOReadStatus ( u32 status)

Variable Documentation

◆ Chan

s32 Chan = -1
static

◆ Dev

unsigned long Dev
static

◆ ExiCallback

HIOCallback ExiCallback
static

◆ TxCallback

HIOCallback TxCallback
static

◆ RxCallback

HIOCallback RxCallback
static