Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
SIBios.c File Reference

Functions

static u32 CompleteTransfer (void)
 
BOOL __SITransfer (s32 chan, void *output, u32 outputBytes, void *input, u32 inputBytes, SICallback callback)
 
static void AlarmHandler (OSAlarm *alarm, OSContext *context)
 
static void GetTypeCallback (s32 chan, u32 error, OSContext *context)
 
u32 VIGetCurrentLine ()
 
BOOL SIBusy ()
 
BOOL SIIsChanBusy (s32 chan)
 
static void SIClearTCInterrupt ()
 
void SITransferNext (s32 chan)
 
static void SIInterruptHandler (__OSInterrupt interrupt, OSContext *context)
 
static BOOL SIEnablePollingInterrupt (BOOL enable)
 
BOOL SIRegisterPollingHandler (__OSInterruptHandler handler)
 
BOOL SIUnregisterPollingHandler (__OSInterruptHandler handler)
 
void SIInit (void)
 
u32 SIGetStatus (s32 chan)
 
void SISetCommand (s32 chan, u32 command)
 
void SITransferCommands (void)
 
u32 SISetXY (u32 x, u32 y)
 
u32 SIEnablePolling (u32 poll)
 
u32 SIDisablePolling (u32 poll)
 
static BOOL SIGetResponseRaw (s32 chan)
 
BOOL SIGetResponse (s32 chan, void *data)
 
BOOL SITransfer (s32 chan, void *output, u32 outputBytes, void *input, u32 inputBytes, SICallback callback, OSTime delay)
 
static void CallTypeAndStatusCallback (s32 chan, u32 type)
 
u32 SIGetType (s32 chan)
 
u32 SIGetTypeAsync (s32 chan, SITypeAndStatusCallback callback)
 
charSIGetTypeString (u32 type)
 

Variables

static char__SIVersion = "<< Dolphin SDK - SI\trelease build: Apr 5 2004 04:14:16 (0x2301) >>"
 
static SIControl Si
 
static u32 Type [SI_MAX_CHAN]
 
static SIPacket Packet [SI_MAX_CHAN]
 
static OSAlarm Alarm [SI_MAX_CHAN]
 
static OSTime TypeTime [SI_MAX_CHAN]
 
static OSTime XferTime [SI_MAX_CHAN]
 
static SITypeAndStatusCallback TypeCallback [SI_MAX_CHAN][4]
 
static __OSInterruptHandler RDSTHandler [4]
 
static BOOL InputBufferValid [SI_MAX_CHAN]
 
static u32 InputBuffer [SI_MAX_CHAN][2]
 
static volatile u32 InputBufferVcount [SI_MAX_CHAN]
 
static u8 cmdTypeAndStatus_78 [4]
 
static u8 cmdTypeAndStatus_372 [4]
 
u32 __PADFixBits
 

Function Documentation

◆ __SITransfer()

static BOOL __SITransfer ( s32  chan,
void output,
u32  outputBytes,
void input,
u32  inputBytes,
SICallback  callback 
)

◆ AlarmHandler()

static void AlarmHandler ( OSAlarm alarm,
OSContext context 
)
static

◆ CallTypeAndStatusCallback()

static void CallTypeAndStatusCallback ( s32  chan,
u32  type 
)
inlinestatic

◆ CompleteTransfer()

static u32 CompleteTransfer ( void  )
static

◆ GetTypeCallback()

static void GetTypeCallback ( s32  chan,
u32  error,
OSContext context 
)
static

◆ SIBusy()

BOOL SIBusy ( void  )

◆ SIClearTCInterrupt()

static void SIClearTCInterrupt ( )
inlinestatic

◆ SIDisablePolling()

u32 SIDisablePolling ( u32  poll)

◆ SIEnablePolling()

u32 SIEnablePolling ( u32  poll)

◆ SIEnablePollingInterrupt()

static BOOL SIEnablePollingInterrupt ( BOOL  enable)
static

◆ SIGetResponse()

BOOL SIGetResponse ( s32  chan,
void data 
)

◆ SIGetResponseRaw()

static BOOL SIGetResponseRaw ( s32  chan)
static

◆ SIGetStatus()

u32 SIGetStatus ( s32  chan)

◆ SIGetType()

u32 SIGetType ( s32  chan)

◆ SIGetTypeAsync()

u32 SIGetTypeAsync ( s32  chan,
SITypeAndStatusCallback  callback 
)

◆ SIGetTypeString()

char * SIGetTypeString ( u32  type)

◆ SIInit()

void SIInit ( void  )

◆ SIInterruptHandler()

static void SIInterruptHandler ( __OSInterrupt  interrupt,
OSContext context 
)
static

◆ SIIsChanBusy()

BOOL SIIsChanBusy ( s32  chan)

◆ SIRegisterPollingHandler()

BOOL SIRegisterPollingHandler ( __OSInterruptHandler  handler)

◆ SISetCommand()

void SISetCommand ( s32  chan,
u32  command 
)

◆ SISetXY()

u32 SISetXY ( u32  x,
u32  y 
)

◆ SITransfer()

BOOL SITransfer ( s32  chan,
void output,
u32  outputBytes,
void input,
u32  inputBytes,
SICallback  callback,
OSTime  delay 
)

◆ SITransferCommands()

void SITransferCommands ( void  )

◆ SITransferNext()

void SITransferNext ( s32  chan)
inline

◆ SIUnregisterPollingHandler()

BOOL SIUnregisterPollingHandler ( __OSInterruptHandler  handler)

◆ VIGetCurrentLine()

u32 VIGetCurrentLine ( )

Variable Documentation

◆ __PADFixBits

u32 __PADFixBits

◆ __SIVersion

char* __SIVersion = "<< Dolphin SDK - SI\trelease build: Apr 5 2004 04:14:16 (0x2301) >>"
static

◆ Alarm

OSAlarm Alarm[SI_MAX_CHAN]
static

◆ cmdTypeAndStatus_372

u8 cmdTypeAndStatus_372[4]
static

◆ cmdTypeAndStatus_78

u8 cmdTypeAndStatus_78[4]
static

◆ InputBuffer

u32 InputBuffer[SI_MAX_CHAN][2]
static

◆ InputBufferValid

BOOL InputBufferValid[SI_MAX_CHAN]
static

◆ InputBufferVcount

volatile u32 InputBufferVcount[SI_MAX_CHAN]
static

◆ Packet

SIPacket Packet[SI_MAX_CHAN]
static

◆ RDSTHandler

__OSInterruptHandler RDSTHandler[4]
static

◆ Si

SIControl Si
static
Initial value:
= {
-1, 0, 0, NULL, NULL,
}
T cLib_calcTimer(T *value)
Definition c_lib.h:74

◆ Type

◆ TypeCallback

SITypeAndStatusCallback TypeCallback[SI_MAX_CHAN][4]
static

◆ TypeTime

OSTime TypeTime[SI_MAX_CHAN]
static

◆ XferTime

OSTime XferTime[SI_MAX_CHAN]
static