Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
os.h File Reference

Go to the source code of this file.

Classes

struct  OSCalendarTime
 
struct  OSBootInfo_s
 
struct  OSStopwatch
 

Typedefs

typedef s64 OSTime
 
typedef u32 OSTick
 
typedef struct OSCalendarTime OSCalendarTime
 
typedef struct OSBootInfo_s OSBootInfo
 
typedef struct OSStopwatch OSStopwatch
 

Functions

void OSReportInit (void)
 
void OSSwitchFiberEx (u32, u32, u32, u32, u32, u32)
 
void OSVAttention (const char *fmt, va_list args)
 
u32 __OSPhysicalMemSize AT_ADDRESS (OS_BASE_CACHED|0x0028)
 
u32 OSGetConsoleType (void)
 
void OSInit (void)
 
void OSRegisterVersion (const char *id)
 
void * OSGetArenaHi (void)
 
void * OSGetArenaLo (void)
 
void OSSetArenaHi (void *newHi)
 
void OSSetArenaLo (void *newLo)
 
void * OSAllocFromArenaLo (u32 size, u32 align)
 
void * OSAllocFromArenaHi (u32 size, u32 align)
 
u32 OSGetPhysicalMemSize (void)
 
void __OSPSInit (void)
 
void __OSFPRInit (void)
 
u32 __OSGetDIConfig (void)
 
void OSDefaultExceptionHandler (__OSException exception, OSContext *context)
 
void OSInitStopwatch (OSStopwatch *sw, char *name)
 
void OSStartStopwatch (OSStopwatch *sw)
 
void OSStopStopwatch (OSStopwatch *sw)
 
OSTime OSCheckStopwatch (OSStopwatch *sw)
 
void OSResetStopwatch (OSStopwatch *sw)
 
void OSDumpStopwatch (OSStopwatch *sw)
 
OSTick OSGetTick (void)
 
OSTime OSGetTime (void)
 
void OSTicksToCalendarTime (OSTime ticks, OSCalendarTime *td)
 
OSTime OSCalendarTimeToTicks (OSCalendarTime *td)
 
BOOL OSEnableInterrupts (void)
 
BOOL OSDisableInterrupts (void)
 
BOOL OSRestoreInterrupts (BOOL level)
 
u32 OSGetSoundMode (void)
 
void OSSetSoundMode (u32 mode)
 
DECL_WEAK void OSReport (const char *msg,...)
 
DECL_WEAK void OSVReport (const char *msg, va_list list)
 
DECL_WEAK void OSPanic (const char *file, int line, const char *msg,...)
 
void OSFatal (GXColor fg, GXColor bg, const char *msg)
 
DECL_WEAK void OSAttention (const char *msg,...)
 
DECL_WEAK void OSReport_Error (const char *fmt,...)
 
DECL_WEAK void OSReport_FatalError (const char *fmt,...)
 
DECL_WEAK void OSReport_System (const char *fmt,...)
 
DECL_WEAK void OSReport_Warning (const char *fmt,...)
 
DECL_WEAK void OSReportDisable (void)
 
DECL_WEAK void OSReportEnable (void)
 
DECL_WEAK void OSReportForceEnableOff (void)
 
DECL_WEAK void OSReportForceEnableOn (void)
 
void * OSPhysicalToCached (u32 paddr)
 
void * OSPhysicalToUncached (u32 paddr)
 
u32 OSCachedToPhysical (void *caddr)
 
u32 OSUncachedToPhysical (void *ucaddr)
 
void * OSCachedToUncached (void *caddr)
 
void * OSUncachedToCached (void *ucaddr)
 
OSTime __OSGetSystemTime (void)
 
s16 __OSf32tos16 (__REGISTER f32 inF)
 
void OSf32tos16 (f32 *f, s16 *out)
 
u8 __OSf32tou8 (__REGISTER f32 inF)
 
void OSf32tou8 (f32 *f, u8 *out)
 
static void OSInitFastCast (void)
 

Variables

u8 __OSReport_disable
 
u8 __OSReport_Error_disable
 
u8 __OSReport_Warning_disable
 
u8 __OSReport_System_disable
 
u8 __OSReport_enable
 
DECL_WEAK int __OSIsGcam
 
OSExecParams __OSRebootParams
 
OSTime __OSStartTime
 
int __OSInIPL
 

Typedef Documentation

◆ OSBootInfo

typedef struct OSBootInfo_s OSBootInfo

◆ OSCalendarTime

typedef struct OSCalendarTime OSCalendarTime

◆ OSStopwatch

typedef struct OSStopwatch OSStopwatch

◆ OSTick

typedef u32 OSTick

◆ OSTime

typedef s64 OSTime

Function Documentation

◆ __OSf32tos16()

s16 __OSf32tos16 ( __REGISTER f32 inF)
inline

◆ __OSf32tou8()

u8 __OSf32tou8 ( __REGISTER f32 inF)
inline

◆ __OSFPRInit()

void __OSFPRInit ( void )

◆ __OSGetDIConfig()

u32 __OSGetDIConfig ( void )

◆ __OSGetSystemTime()

OSTime __OSGetSystemTime ( void )
extern

◆ __OSPSInit()

void __OSPSInit ( void )

◆ AT_ADDRESS()

u32 __OSPhysicalMemSize AT_ADDRESS ( OS_BASE_CACHED| 0x0028)

◆ OSAllocFromArenaHi()

void * OSAllocFromArenaHi ( u32 size,
u32 align )

◆ OSAllocFromArenaLo()

void * OSAllocFromArenaLo ( u32 size,
u32 align )

◆ OSAttention()

DECL_WEAK void OSAttention ( const char * msg,
... )

◆ OSCachedToPhysical()

u32 OSCachedToPhysical ( void * caddr)

◆ OSCachedToUncached()

void * OSCachedToUncached ( void * caddr)

◆ OSCalendarTimeToTicks()

OSTime OSCalendarTimeToTicks ( OSCalendarTime * td)

◆ OSCheckStopwatch()

OSTime OSCheckStopwatch ( OSStopwatch * sw)

◆ OSDefaultExceptionHandler()

void OSDefaultExceptionHandler ( __OSException exception,
OSContext * context )

◆ OSDisableInterrupts()

BOOL OSDisableInterrupts ( void )

◆ OSDumpStopwatch()

void OSDumpStopwatch ( OSStopwatch * sw)

◆ OSEnableInterrupts()

BOOL OSEnableInterrupts ( void )

◆ OSf32tos16()

void OSf32tos16 ( f32 * f,
s16 * out )
inline

◆ OSf32tou8()

void OSf32tou8 ( f32 * f,
u8 * out )
inline

◆ OSFatal()

void OSFatal ( GXColor fg,
GXColor bg,
const char * msg )

◆ OSGetArenaHi()

void * OSGetArenaHi ( void )

◆ OSGetArenaLo()

void * OSGetArenaLo ( void )

◆ OSGetConsoleType()

u32 OSGetConsoleType ( void )

◆ OSGetPhysicalMemSize()

u32 OSGetPhysicalMemSize ( void )

◆ OSGetSoundMode()

u32 OSGetSoundMode ( void )

◆ OSGetTick()

OSTick OSGetTick ( void )

◆ OSGetTime()

OSTime OSGetTime ( void )

◆ OSInit()

void OSInit ( void )

◆ OSInitFastCast()

static void OSInitFastCast ( void )
inlinestatic

◆ OSInitStopwatch()

void OSInitStopwatch ( OSStopwatch * sw,
char * name )

◆ OSPanic()

DECL_WEAK void OSPanic ( const char * file,
int line,
const char * msg,
... )

◆ OSPhysicalToCached()

void * OSPhysicalToCached ( u32 paddr)

◆ OSPhysicalToUncached()

void * OSPhysicalToUncached ( u32 paddr)

◆ OSRegisterVersion()

void OSRegisterVersion ( const char * id)

◆ OSReport()

DECL_WEAK void OSReport ( const char * msg,
... )

◆ OSReport_Error()

DECL_WEAK void OSReport_Error ( const char * fmt,
... )

◆ OSReport_FatalError()

DECL_WEAK void OSReport_FatalError ( const char * fmt,
... )

◆ OSReport_System()

DECL_WEAK void OSReport_System ( const char * fmt,
... )

◆ OSReport_Warning()

DECL_WEAK void OSReport_Warning ( const char * fmt,
... )

◆ OSReportDisable()

DECL_WEAK void OSReportDisable ( void )

◆ OSReportEnable()

DECL_WEAK void OSReportEnable ( void )

◆ OSReportForceEnableOff()

DECL_WEAK void OSReportForceEnableOff ( void )

◆ OSReportForceEnableOn()

DECL_WEAK void OSReportForceEnableOn ( void )

◆ OSReportInit()

void OSReportInit ( void )

◆ OSResetStopwatch()

void OSResetStopwatch ( OSStopwatch * sw)

◆ OSRestoreInterrupts()

BOOL OSRestoreInterrupts ( BOOL level)

◆ OSSetArenaHi()

void OSSetArenaHi ( void * newHi)

◆ OSSetArenaLo()

void OSSetArenaLo ( void * newLo)

◆ OSSetSoundMode()

void OSSetSoundMode ( u32 mode)

◆ OSStartStopwatch()

void OSStartStopwatch ( OSStopwatch * sw)

◆ OSStopStopwatch()

void OSStopStopwatch ( OSStopwatch * sw)

◆ OSSwitchFiberEx()

void OSSwitchFiberEx ( u32 ,
u32 ,
u32 ,
u32 ,
u32 ,
u32  )

◆ OSTicksToCalendarTime()

void OSTicksToCalendarTime ( OSTime ticks,
OSCalendarTime * td )

◆ OSUncachedToCached()

void * OSUncachedToCached ( void * ucaddr)

◆ OSUncachedToPhysical()

u32 OSUncachedToPhysical ( void * ucaddr)

◆ OSVAttention()

void OSVAttention ( const char * fmt,
va_list args )

◆ OSVReport()

DECL_WEAK void OSVReport ( const char * msg,
va_list list )

Variable Documentation

◆ __OSInIPL

int __OSInIPL
extern

◆ __OSIsGcam

DECL_WEAK int __OSIsGcam
extern

◆ __OSRebootParams

OSExecParams __OSRebootParams
extern

◆ __OSReport_disable

u8 __OSReport_disable
extern

m_Do_printf.cpp OSReport and printf Helper Functions

◆ __OSReport_enable

u8 __OSReport_enable
extern

◆ __OSReport_Error_disable

u8 __OSReport_Error_disable
extern

◆ __OSReport_System_disable

u8 __OSReport_System_disable
extern

◆ __OSReport_Warning_disable

u8 __OSReport_Warning_disable
extern

◆ __OSStartTime

OSTime __OSStartTime
extern