RetroArch
|
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <malloc.h>
#include <sys/iosupport.h>
#include "asm.h"
#include "irq.h"
#include "exi.h"
#include "cache.h"
#include "video.h"
#include "system.h"
#include "sys_state.h"
#include "lwp_threads.h"
#include "lwp_priority.h"
#include "lwp_watchdog.h"
#include "lwp_wkspace.h"
#include "lwp_objmgr.h"
#include "lwp_config.h"
#include "libversion.h"
Classes | |
struct | _sramcntrl |
struct | _alarm_st |
struct | _yay0header |
Macros | |
#define | SYSMEM1_SIZE 0x01800000 |
#define | KERNEL_HEAP (1*1024*1024) |
#define | DSPCR_DSPRESET 0x0800 |
#define | DSPCR_DSPDMA 0x0200 |
#define | DSPCR_DSPINTMSK 0x0100 |
#define | DSPCR_DSPINT 0x0080 |
#define | DSPCR_ARINTMSK 0x0040 |
#define | DSPCR_ARINT 0x0020 |
#define | DSPCR_AIINTMSK 0x0010 |
#define | DSPCR_AIINT 0x0008 |
#define | DSPCR_HALT 0x0004 |
#define | DSPCR_PIINT 0x0002 |
#define | DSPCR_RES 0x0001 |
#define | LWP_OBJTYPE_SYSWD 7 |
#define | LWP_CHECK_SYSWD(hndl) |
#define | _SHIFTL(v, s, w) ((u32) (((u32)(v) & ((0x01 << (w)) - 1)) << (s))) |
#define | _SHIFTR(v, s, w) ((u32)(((u32)(v) >> (s)) & ((0x01 << (w)) - 1))) |
Typedefs | |
typedef struct _alarm_st | alarm_st |
typedef struct _yay0header | yay0header |
Variables | |
u8 | srambuf [64] |
u32 | offset |
s32 | enabled |
s32 | locked |
s32 | sync |
static u16 | sys_fontenc = 0xffff |
static u32 | sys_fontcharsinsheet = 0 |
static u8 * | sys_fontwidthtab = NULL |
static u8 * | sys_fontimage = NULL |
static sys_fontheader * | sys_fontdata = NULL |
static lwp_queue | sys_reset_func_queue |
static u32 | system_initialized = 0 |
static lwp_objinfo | sys_alarm_objects |
static void * | __sysarena1lo = NULL |
static void * | __sysarena1hi = NULL |
static resetcallback | __RSWCallback = NULL |
static vu16 *const | _viReg = (u16*)0xCC002000 |
static vu32 *const | _piReg = (u32*)0xCC003000 |
static vu16 *const | _memReg = (u16*)0xCC004000 |
static vu16 *const | _dspReg = (u16*)0xCC005000 |
u8 | __gxregs [] |
u8 | __text_start [] |
u8 | __isIPL [] |
u8 | __Arena1Lo [] |
u8 | __Arena1Hi [] |
u8 * | __argvArena1Lo = (u8*)0xdeadbeef |
static u32 | __sys_inIPL = (u32)__isIPL |
static u32 | _dsp_initcode [] |
static sys_resetinfo | mem_resetinfo |
static const char * | __sys_versiondate |
static const char * | __sys_versionbuild |
static void(* | reload )() = (void(*)())0x80001800 |
#define DSPCR_AIINT 0x0008 |
#define DSPCR_AIINTMSK 0x0010 |
#define DSPCR_ARINT 0x0020 |
#define DSPCR_ARINTMSK 0x0040 |
#define DSPCR_DSPDMA 0x0200 |
#define DSPCR_DSPINT 0x0080 |
#define DSPCR_DSPINTMSK 0x0100 |
#define DSPCR_DSPRESET 0x0800 |
#define DSPCR_HALT 0x0004 |
#define DSPCR_PIINT 0x0002 |
#define DSPCR_RES 0x0001 |
#define KERNEL_HEAP (1*1024*1024) |
#define LWP_CHECK_SYSWD | ( | hndl | ) |
#define LWP_OBJTYPE_SYSWD 7 |
#define SYSMEM1_SIZE 0x01800000 |
typedef struct _yay0header yay0header |
void* __attribute__ | ( | (weak) | ) |
void __console_init_ex | ( | void * | conbuffer, |
int | tgt_xstart, | ||
int | tgt_ystart, | ||
int | tgt_stride, | ||
int | con_xres, | ||
int | con_yres, | ||
int | con_stride | ||
) |
|
static |
|
static |
|
static |
void __libc_init | ( | int | ) |
void __libogc_exit | ( | int | status | ) |
int __libogc_gettod_r | ( | struct _reent * | ptr, |
struct timeval * | tp, | ||
struct timezone * | tz | ||
) |
int __libogc_lock_acquire | ( | int * | lock | ) |
int __libogc_lock_close | ( | int * | lock | ) |
int __libogc_lock_init | ( | int * | lock, |
int | recursive | ||
) |
int __libogc_lock_release | ( | int * | lock | ) |
void __libogc_malloc_lock | ( | struct _reent * | ptr | ) |
void __libogc_malloc_unlock | ( | struct _reent * | ptr | ) |
void* __libogc_sbrk_r | ( | struct _reent * | ptr, |
ptrdiff_t | incr | ||
) |
|
static |
|
static |
|
static |
void __reload | ( | ) |
|
static |
void __sram_init | ( | ) |
|
static |
s64 __SYS_GetSystemTime | ( | ) |
void __SYS_InitCallbacks | ( | ) |
void __SYS_SetBootTime | ( | ) |
u32 __SYS_SyncSram | ( | ) |
struct _sramcntrl ATTRIBUTE_ALIGN | ( | 32 | ) |
int clock_gettime | ( | struct timespec * | tp | ) |
|
static |
void* SYS_AllocateFramebuffer | ( | GXRModeObj * | rmode | ) |
Allocate cacheline aligned memory for the external framebuffer based on the rendermode object.
[in] | rmode | pointer to the video/render mode configuration |
Cancel the alarm, but do not remove from the list of contexts.
[in] | thealarm | identifier to the alram context to be canceled |
Create/initialize sysalarm structure.
[in] | thealarm | pointer to the handle to store the created alarm context identifier |
void SYS_DumpPMC | ( | ) |
void* SYS_GetArena1Hi | ( | ) |
void* SYS_GetArena1Lo | ( | ) |
u32 SYS_GetArena1Size | ( | ) |
u32 SYS_GetFontEncoding | ( | ) |
void SYS_Init | ( | ) |
u32 SYS_InitFont | ( | sys_fontheader * | font_data | ) |
void SYS_PreMain | ( | ) |
void SYS_RegisterResetFunc | ( | sys_resetinfo * | info | ) |
Remove the given alarm context from the list of contexts and destroy it.
[in] | thealarm | identifier to the alarm context to be removed and destroyed |
u32 SYS_ResetButtonDown | ( | ) |
void SYS_ResetPMC | ( | ) |
s32 SYS_SetAlarm | ( | syswd_t | thealarm, |
const struct timespec * | tp, | ||
alarmcallback | cb, | ||
void * | cbarg | ||
) |
s32 SYS_SetPeriodicAlarm | ( | syswd_t | thealarm, |
const struct timespec * | tp_start, | ||
const struct timespec * | tp_period, | ||
alarmcallback | cb, | ||
void * | cbarg | ||
) |
resetcallback SYS_SetResetCallback | ( | resetcallback | cb | ) |
void SYS_StopPMC | ( | ) |
u64 SYS_Time | ( | ) |
void SYS_UnregisterResetFunc | ( | sys_resetinfo * | info | ) |
void timespec_subtract | ( | const struct timespec * | tp_start, |
const struct timespec * | tp_end, | ||
struct timespec * | result | ||
) |
u8 __Arena1Hi[] |
u8 __Arena1Lo[] |
u8 __gxregs[] |
u8 __isIPL[] |
|
static |
|
static |
|
static |
u8 __text_start[] |
|
static |
s32 locked |
|
static |
u8 srambuf[64] |
s32 sync |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |