SSBM Decomp
Loading...
Searching...
No Matches
OSRtc.c File Reference

Data Structures

struct  SramControlBlock
 

Macros

#define RTC_CMD_READ   0x20000000
 
#define RTC_CMD_WRITE   0xA0000000
 
#define RTC_SRAM_ADDR   0x00000100
 
#define RTC_SRAM_SIZE   64
 
#define RTC_CHAN   0
 
#define RTC_DEV   1
 
#define RTC_FREQ   3
 

Functions

static SramControlBlock Scb ATTRIBUTE_ALIGN (32)
 
bool WriteSram (void *buffer, u32 offset, u32 size)
 
void WriteSramCallback (s32 unused0, OSContext *unused1)
 
static bool ReadSram (void *buffer)
 
void __OSInitSram (void)
 
static void * LockSram (u32 offset)
 
OSSram__OSLockSram (void)
 
OSSramEx__OSLockSramEx (void)
 
static bool UnlockSram (bool commit, u32 offset)
 
void __OSUnlockSram (bool commit)
 
void __OSUnlockSramEx (bool commit)
 
bool __OSSyncSram (void)
 
static OSSram__OSLockSramHACK (void)
 
u32 OSGetSoundMode (void)
 
void OSSetSoundMode (u32 mode)
 
u32 OSGetProgressiveMode (void)
 
void OSSetProgressiveMode (u32 mode)
 
u32 OSGetWirelessID (u32 chan)
 
void OSSetWirelessID (u32 chan, u16 id)
 

Macro Definition Documentation

◆ RTC_CMD_READ

#define RTC_CMD_READ   0x20000000

◆ RTC_CMD_WRITE

#define RTC_CMD_WRITE   0xA0000000

◆ RTC_SRAM_ADDR

#define RTC_SRAM_ADDR   0x00000100

◆ RTC_SRAM_SIZE

#define RTC_SRAM_SIZE   64

◆ RTC_CHAN

#define RTC_CHAN   0

◆ RTC_DEV

#define RTC_DEV   1

◆ RTC_FREQ

#define RTC_FREQ   3

Function Documentation

◆ ATTRIBUTE_ALIGN()

static SramControlBlock Scb ATTRIBUTE_ALIGN ( 32  )
static

◆ WriteSram()

bool WriteSram ( void *  buffer,
u32  offset,
u32  size 
)

◆ WriteSramCallback()

void WriteSramCallback ( s32  unused0,
OSContext unused1 
)

◆ ReadSram()

static bool ReadSram ( void *  buffer)
static

◆ __OSInitSram()

void __OSInitSram ( void  )

◆ LockSram()

static void * LockSram ( u32  offset)
static

◆ __OSLockSram()

OSSram * __OSLockSram ( void  )

◆ __OSLockSramEx()

OSSramEx * __OSLockSramEx ( void  )

◆ UnlockSram()

static bool UnlockSram ( bool  commit,
u32  offset 
)
static

◆ __OSUnlockSram()

void __OSUnlockSram ( bool  commit)

◆ __OSUnlockSramEx()

void __OSUnlockSramEx ( bool  commit)

◆ __OSSyncSram()

bool __OSSyncSram ( void  )

◆ __OSLockSramHACK()

static OSSram * __OSLockSramHACK ( void  )
inlinestatic

◆ OSGetSoundMode()

u32 OSGetSoundMode ( void  )

◆ OSSetSoundMode()

void OSSetSoundMode ( u32  mode)

◆ OSGetProgressiveMode()

u32 OSGetProgressiveMode ( void  )

◆ OSSetProgressiveMode()

void OSSetProgressiveMode ( u32  mode)

◆ OSGetWirelessID()

u32 OSGetWirelessID ( u32  chan)

◆ OSSetWirelessID()

void OSSetWirelessID ( u32  chan,
u16  id 
)