Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
SIBios.c File Reference

Functions

static u32 CompleteTransfer ()
 
static void SITransferNext (s32 chan)
 
static void SIInterruptHandler (__OSInterrupt interrupt, OSContext *context)
 
static int __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)
 
static int SIGetResponseRaw (s32 chan)
 
BOOL SIBusy (void)
 
BOOL SIIsChanBusy (s32 chan)
 
static void SIClearTCInterrupt (void)
 
static BOOL SIEnablePollingInterrupt (BOOL enable)
 
BOOL SIRegisterPollingHandler (__OSInterruptHandler handler)
 
BOOL SIUnregisterPollingHandler (__OSInterruptHandler handler)
 
void SIInit (void)
 
u32 SISync (void)
 
u32 SIGetStatus (s32 chan)
 
void SISetCommand (s32 chan, u32 command)
 
u32 SIGetCommand (s32 chan)
 
void SITransferCommands (void)
 
u32 SISetXY (u32 x, u32 y)
 
u32 SIEnablePolling (u32 poll)
 
u32 SIDisablePolling (u32 poll)
 
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, SITypeCallback callback)
 
u32 SIDecodeType (u32 type)
 
u32 SIProbe (s32 chan)
 
char * SIGetTypeString (u32 type)
 

Variables

const char * __SIVersion = "<< Dolphin SDK - SI\tdebug build: Apr 5 2004 03:55:31 (0x2301) >>"
 
static SIControl Si
 
static SIPacket Packet [4]
 
static OSAlarm Alarm [4]
 
static u32 Type [4] = { SI_ERROR_NO_RESPONSE, SI_ERROR_NO_RESPONSE, SI_ERROR_NO_RESPONSE, SI_ERROR_NO_RESPONSE }
 
static OSTime TypeTime [4]
 
static OSTime XferTime [4]
 
static SITypeCallback TypeCallback [4][4]
 
static __OSInterruptHandler RDSTHandler [4]
 
static BOOL InputBufferValid [4]
 
static u32 InputBuffer [4][2]
 
static volatile u32 InputBufferVcount [4]
 
u32 __PADFixBits
 

Function Documentation

◆ __SITransfer()

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

◆ AlarmHandler()

static void AlarmHandler ( OSAlarm * alarm,
OSContext * context )
static

◆ CallTypeAndStatusCallback()

static void CallTypeAndStatusCallback ( s32 chan,
u32 type )
static

◆ 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 ( void )
static

◆ SIDecodeType()

u32 SIDecodeType ( u32 type)

◆ SIDisablePolling()

u32 SIDisablePolling ( u32 poll)

◆ SIEnablePolling()

u32 SIEnablePolling ( u32 poll)

◆ SIEnablePollingInterrupt()

static BOOL SIEnablePollingInterrupt ( BOOL enable)
static

◆ SIGetCommand()

u32 SIGetCommand ( s32 chan)

◆ 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,
SITypeCallback callback )

◆ SIGetTypeString()

char * SIGetTypeString ( u32 type)

◆ SIInit()

void SIInit ( void )

◆ SIInterruptHandler()

static void SIInterruptHandler ( __OSInterrupt interrupt,
OSContext * context )
static

◆ SIIsChanBusy()

BOOL SIIsChanBusy ( s32 chan)

◆ SIProbe()

u32 SIProbe ( s32 chan)

◆ SIRegisterPollingHandler()

BOOL SIRegisterPollingHandler ( __OSInterruptHandler handler)

◆ SISetCommand()

void SISetCommand ( s32 chan,
u32 command )

◆ SISetXY()

u32 SISetXY ( u32 x,
u32 y )

◆ SISync()

u32 SISync ( void )

◆ SITransfer()

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

◆ SITransferCommands()

void SITransferCommands ( void )

◆ SITransferNext()

static void SITransferNext ( s32 chan)
static

◆ SIUnregisterPollingHandler()

BOOL SIUnregisterPollingHandler ( __OSInterruptHandler handler)

Variable Documentation

◆ __PADFixBits

u32 __PADFixBits

◆ __SIVersion

const char * __SIVersion = "<< Dolphin SDK - SI\tdebug build: Apr 5 2004 03:55:31 (0x2301) >>"

◆ Alarm

OSAlarm Alarm[4]
static

◆ InputBuffer

u32 InputBuffer[4][2]
static

◆ InputBufferValid

BOOL InputBufferValid[4]
static

◆ InputBufferVcount

volatile u32 InputBufferVcount[4]
static

◆ Packet

SIPacket Packet[4]
static

◆ RDSTHandler

__OSInterruptHandler RDSTHandler[4]
static

◆ Si

SIControl Si
static
Initial value:
= {
-1,
0,
0,
NULL,
NULL
}

◆ Type

u32 Type[4] = { SI_ERROR_NO_RESPONSE, SI_ERROR_NO_RESPONSE, SI_ERROR_NO_RESPONSE, SI_ERROR_NO_RESPONSE }
static

◆ TypeCallback

SITypeCallback TypeCallback[4][4]
static

◆ TypeTime

OSTime TypeTime[4]
static

◆ XferTime

OSTime XferTime[4]
static