ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
Go to the source code of this file.
Data Structures | |
struct | ee_sema_t |
struct | ee_thread_t |
struct | ee_thread_status_t |
Macros | |
#define | DI DIntr |
#define | EI EIntr |
#define | ExitHandler() asm volatile("sync\nei\n") |
#define | EE_SYNC() __asm__ volatile ("sync") |
#define | EE_SYNCL() __asm__ volatile ("sync.l") |
#define | EE_SYNCP() __asm__ volatile ("sync.p") |
#define | UNCACHED_SEG(x) ((void *)(((u32)(x)) | 0x20000000)) |
#define | IS_UNCACHED_SEG(x) (((u32)(x)) & 0x20000000) |
#define | UCAB_SEG(x) ((void *)(((u32)(x)) | 0x30000000)) |
#define | PUSHDATA(t, x, v, l) *(t *)(x) = (v); (l) = sizeof(t) |
#define | POPDATA(t, x, v, l) (v) = *(t *)(x); (l) = sizeof(t) |
#define | ALIGNED(x) __attribute__((aligned((x)))) |
#define | SetModuleGP() ChangeGP(&_gp) |
#define | TH_SELF 0 |
#define | MAX_THREADS 256 |
#define | MAX_SEMAPHORES 256 |
#define | MAX_PRIORITY 128 |
#define | MAX_HANDLERS 128 |
#define | MAX_ALARMS 64 |
#define | WRITEBACK_DCACHE 0 |
#define | INVALIDATE_DCACHE 1 |
#define | INVALIDATE_ICACHE 2 |
#define | INVALIDATE_CACHE 3 |
#define | kINTC_GS INTC_GS |
#define | kINTC_SBUS INTC_SBUS |
#define | kINTC_VBLANK_START INTC_VBLANK_S |
#define | kINTC_VBLANK_END INTC_VBLANK_E |
#define | kINTC_VIF0 INTC_VIF0 |
#define | kINTC_VIF1 INTC_VIF1 |
#define | kINTC_VU0 INTC_VU0 |
#define | kINTC_VU1 INTC_VU1 |
#define | kINTC_IPU INTC_IPU |
#define | kINTC_TIMER0 INTC_TIM0 |
#define | kINTC_TIMER1 INTC_TIM1 |
#define | INIT_DMAC 0x01 |
#define | INIT_VU1 0x02 |
#define | INIT_VIF1 0x04 |
#define | INIT_GIF 0x08 |
#define | INIT_VU0 0x10 |
#define | INIT_VIF0 0x20 |
#define | INIT_IPU 0x40 |
#define | THS_RUN 0x01 |
#define | THS_READY 0x02 |
#define | THS_WAIT 0x04 |
#define | THS_SUSPEND 0x08 |
#define | THS_WAITSUSPEND 0x0c |
#define | THS_DORMANT 0x10 |
#define | TSW_NONE 0 |
#define | TSW_SLEEP 1 |
#define | TSW_SEMA 2 |
#define | CPU_DATA_CACHE 1 |
#define | CPU_INSTRUCTION_CACHE 2 |
Enumerations | |
enum | { INTC_GS , INTC_SBUS , INTC_VBLANK_S , INTC_VBLANK_E , INTC_VIF0 , INTC_VIF1 , INTC_VU0 , INTC_VU1 , INTC_IPU , INTC_TIM0 , INTC_TIM1 , INTC_TIM2 , INTC_SFIFO = 13 , INTC_VU0WD } |
enum | { DMAC_VIF0 , DMAC_VIF1 , DMAC_GIF , DMAC_FROM_IPU , DMAC_TO_IPU , DMAC_SIF0 , DMAC_SIF1 , DMAC_SIF2 , DMAC_FROM_SPR , DMAC_TO_SPR , DMAC_CIS = 13 , DMAC_MEIS , DMAC_BEIS } |
enum | CPU_CONFIG { CPU_CONFIG_ENABLE_DIE = 0 , CPU_CONFIG_ENABLE_ICE , CPU_CONFIG_ENABLE_DCE , CPU_CONFIG_DISBLE_DIE , CPU_CONFIG_DISBLE_ICE , CPU_CONFIG_DISBLE_DCE } |
Functions | |
void * | ChangeGP (void *gp) |
void | SetGP (void *gp) |
void * | GetGP (void) |
static void | nopdelay (void) |
static int | ee_get_opmode (void) |
static int | ee_set_opmode (u32 opmode) |
static int | ee_kmode_enter () |
static int | ee_kmode_exit () |
void | _InitSys (void) |
void | TerminateLibrary (void) |
int | InitThread (void) |
s32 | iWakeupThread (s32 thread_id) |
s32 | iRotateThreadReadyQueue (s32 priority) |
s32 | iSuspendThread (s32 thread_id) |
void | InitTLBFunctions (void) |
void | InitTLB (void) |
void | Exit (s32 exit_code) |
s32 | ExecPS2 (void *entry, void *gp, int num_args, char *args[]) |
void | LoadExecPS2 (const char *filename, s32 num_args, char *args[]) |
void | ExecOSD (int num_args, char *args[]) |
void | InitAlarm (void) |
void | InitExecPS2 (void) |
void | InitOsd (void) |
int | PatchIsNeeded (void) |
int | DIntr (void) |
int | EIntr (void) |
int | EnableIntc (int intc) |
int | DisableIntc (int intc) |
int | EnableDmac (int dmac) |
int | DisableDmac (int dmac) |
int | iEnableIntc (int intc) |
int | iDisableIntc (int intc) |
int | iEnableDmac (int dmac) |
int | iDisableDmac (int dmac) |
void | SyncDCache (void *start, void *end) |
void | iSyncDCache (void *start, void *end) |
void | InvalidDCache (void *start, void *end) |
void | iInvalidDCache (void *start, void *end) |
void | ResetEE (u32 init_bitfield) |
void | SetGsCrt (s16 interlace, s16 pal_ntsc, s16 field) |
void | _Exit (s32 exit_code) |
void | _LoadExecPS2 (const char *filename, s32 num_args, char *args[]) |
s32 | _ExecPS2 (void *entry, void *gp, int num_args, char *args[]) |
void | RFU009 (u32 arg0, u32 arg1) |
s32 | AddSbusIntcHandler (s32 cause, void(*handler)(int call)) |
s32 | RemoveSbusIntcHandler (s32 cause) |
s32 | Interrupt2Iop (s32 cause) |
void | SetVTLBRefillHandler (s32 handler_num, void *handler_func) |
void | SetVCommonHandler (s32 handler_num, void *handler_func) |
void | SetVInterruptHandler (s32 handler_num, void *handler_func) |
s32 | AddIntcHandler (s32 cause, s32(*handler_func)(s32 cause), s32 next) |
s32 | AddIntcHandler2 (s32 cause, s32(*handler_func)(s32 cause, void *arg, void *addr), s32 next, void *arg) |
s32 | RemoveIntcHandler (s32 cause, s32 handler_id) |
s32 | AddDmacHandler (s32 channel, s32(*handler)(s32 channel), s32 next) |
s32 | AddDmacHandler2 (s32 channel, s32(*handler)(s32 channel, void *arg, void *addr), s32 next, void *arg) |
s32 | RemoveDmacHandler (s32 channel, s32 handler_id) |
s32 | _EnableIntc (s32 cause) |
s32 | _DisableIntc (s32 cause) |
s32 | _EnableDmac (s32 channel) |
s32 | _DisableDmac (s32 channel) |
s32 | SetAlarm (u16 time, void(*callback)(s32 alarm_id, u16 time, void *common), void *common) |
s32 | _SetAlarm (u16 time, void(*callback)(s32 alarm_id, u16 time, void *common), void *common) |
s32 | ReleaseAlarm (s32 alarm_id) |
s32 | _ReleaseAlarm (s32 alarm_id) |
s32 | _iEnableIntc (s32 cause) |
s32 | _iDisableIntc (s32 cause) |
s32 | _iEnableDmac (s32 channel) |
s32 | _iDisableDmac (s32 channel) |
s32 | iSetAlarm (u16 time, void(*callback)(s32 alarm_id, u16 time, void *common), void *common) |
s32 | _iSetAlarm (u16 time, void(*callback)(s32 alarm_id, u16 time, void *common), void *common) |
s32 | iReleaseAlarm (s32 alarm_id) |
s32 | _iReleaseAlarm (s32 alarm_id) |
s32 | CreateThread (ee_thread_t *thread) |
s32 | DeleteThread (s32 thread_id) |
s32 | StartThread (s32 thread_id, void *args) |
void | ExitThread (void) |
void | ExitDeleteThread (void) |
s32 | TerminateThread (s32 thread_id) |
s32 | iTerminateThread (s32 thread_id) |
s32 | ChangeThreadPriority (s32 thread_id, s32 priority) |
s32 | iChangeThreadPriority (s32 thread_id, s32 priority) |
s32 | RotateThreadReadyQueue (s32 priority) |
s32 | _iRotateThreadReadyQueue (s32 priority) |
s32 | ReleaseWaitThread (s32 thread_id) |
s32 | iReleaseWaitThread (s32 thread_id) |
s32 | GetThreadId (void) |
s32 | _iGetThreadId (void) |
s32 | ReferThreadStatus (s32 thread_id, ee_thread_status_t *info) |
s32 | iReferThreadStatus (s32 thread_id, ee_thread_status_t *info) |
s32 | SleepThread (void) |
s32 | WakeupThread (s32 thread_id) |
s32 | _iWakeupThread (s32 thread_id) |
s32 | CancelWakeupThread (s32 thread_id) |
s32 | iCancelWakeupThread (s32 thread_id) |
s32 | SuspendThread (s32 thread_id) |
s32 | _iSuspendThread (s32 thread_id) |
s32 | ResumeThread (s32 thread_id) |
s32 | iResumeThread (s32 thread_id) |
u8 | RFU059 (void) |
void * | SetupThread (void *gp, void *stack, s32 stack_size, void *args, void *root_func) |
void | SetupHeap (void *heap_start, s32 heap_size) |
void * | EndOfHeap (void) |
s32 | CreateSema (ee_sema_t *sema) |
s32 | DeleteSema (s32 sema_id) |
s32 | SignalSema (s32 sema_id) |
s32 | iSignalSema (s32 sema_id) |
s32 | WaitSema (s32 sema_id) |
s32 | PollSema (s32 sema_id) |
s32 | iPollSema (s32 sema_id) |
s32 | ReferSemaStatus (s32 sema_id, ee_sema_t *sema) |
s32 | iReferSemaStatus (s32 sema_id, ee_sema_t *sema) |
s32 | iDeleteSema (s32 sema_id) |
void | SetOsdConfigParam (void *addr) |
void | GetOsdConfigParam (void *addr) |
void | GetGsHParam (void *addr1, void *addr2, void *addr3) |
s32 | GetGsVParam (void) |
void | SetGsHParam (void *addr1, void *addr2, void *addr3, void *addr4) |
void | SetGsVParam (s32 arg1) |
int | PutTLBEntry (unsigned int PageMask, unsigned int EntryHi, unsigned int EntryLo0, unsigned int EntryLo1) |
int | iPutTLBEntry (unsigned int PageMask, unsigned int EntryHi, unsigned int EntryLo0, unsigned int EntryLo1) |
int | _SetTLBEntry (unsigned int index, unsigned int PageMask, unsigned int EntryHi, unsigned int EntryLo0, unsigned int EntryLo1) |
int | iSetTLBEntry (unsigned int index, unsigned int PageMask, unsigned int EntryHi, unsigned int EntryLo0, unsigned int EntryLo1) |
int | GetTLBEntry (unsigned int index, unsigned int *PageMask, unsigned int *EntryHi, unsigned int *EntryLo0, unsigned int *EntryLo1) |
int | iGetTLBEntry (unsigned int index, unsigned int *PageMask, unsigned int *EntryHi, unsigned int *EntryLo0, unsigned int *EntryLo1) |
int | ProbeTLBEntry (unsigned int EntryHi, unsigned int *PageMask, unsigned int *EntryLo0, unsigned int *EntryLo1) |
int | iProbeTLBEntry (unsigned int EntryHi, unsigned int *PageMask, unsigned int *EntryLo0, unsigned int *EntryLo1) |
int | ExpandScratchPad (unsigned int page) |
void | EnableIntcHandler (u32 cause) |
void | iEnableIntcHandler (u32 cause) |
void | DisableIntcHandler (u32 cause) |
void | iDisableIntcHandler (u32 cause) |
void | EnableDmacHandler (u32 channel) |
void | iEnableDmacHandler (u32 channel) |
void | DisableDmacHandler (u32 channel) |
void | iDisableDmacHandler (u32 channel) |
void | KSeg0 (s32 arg1) |
s32 | EnableCache (s32 cache) |
s32 | DisableCache (s32 cache) |
u32 | GetCop0 (s32 reg_id) |
void | FlushCache (s32 operation) |
u32 | CpuConfig (u32 config) |
u32 | iGetCop0 (s32 reg_id) |
void | iFlushCache (s32 operation) |
u32 | iCpuConfig (u32 config) |
void | SetCPUTimerHandler (void(*handler)(void)) |
void | SetCPUTimer (s32 compval) |
void | SetOsdConfigParam2 (void *config, s32 size, s32 offset) |
void | GetOsdConfigParam2 (void *config, s32 size, s32 offset) |
u64 | GsGetIMR (void) |
u64 | iGsGetIMR (void) |
u64 | GsPutIMR (u64 imr) |
u64 | iGsPutIMR (u64 imr) |
void | SetPgifHandler (void *handler) |
void | SetVSyncFlag (u32 *, u64 *) |
void | SetSyscall (s32 syscall_num, void *handler) |
void | SifStopDma (void) |
s32 | SifDmaStat (u32 id) |
s32 | iSifDmaStat (u32 id) |
u32 | SifSetDma (SifDmaTransfer_t *sdd, s32 len) |
u32 | iSifSetDma (SifDmaTransfer_t *sdd, s32 len) |
void | SifSetDChain (void) |
void | iSifSetDChain (void) |
int | SifSetReg (u32 register_num, int register_value) |
int | SifGetReg (u32 register_num) |
void | _ExecOSD (int num_args, char *args[]) |
s32 | Deci2Call (s32, u32 *) |
void | PSMode (void) |
s32 | MachineType (void) |
s32 | GetMemorySize (void) |
void | _GetGsDxDyOffset (int mode, int *dx, int *dy, int *dw, int *dh) |
int | _InitTLB (void) |
int | SetMemoryMode (int mode) |
void | _SyncDCache (void *start, void *end) |
void | _InvalidDCache (void *start, void *end) |
void | abort (void) |
void | exit (int retval) |
void | _exit (int retval) |
int * | __errno (void) |
void * | GetSyscallHandler (int syscall_no) |
void * | GetExceptionHandler (int except_no) |
void * | GetInterruptHandler (int intr_no) |
int | kCopy (void *dest, const void *src, int size) |
int | kCopyBytes (void *dest, const void *src, int size) |
int | Copy (void *dest, const void *src, int size) |
void | setup (int syscall_num, void *handler) |
void * | GetEntryAddress (int syscall) |
Variables | |
void * | _gp |
int | errno |
EE Kernel prototypes
Definition in file kernel.h.
#define CPU_DATA_CACHE 1 |
#define kINTC_VBLANK_END INTC_VBLANK_E |
#define kINTC_VBLANK_START INTC_VBLANK_S |
#define TH_SELF 0 |
Special thread ID for referring to the running thread. Unlike the IOP kernel, this is only supported by ReferThreadStatus() and ChangeThreadPriority(). It can also be used by the iWakeupThread() syscall. But because the libkernel patch may call WakeupThread() to avoid the defect within iWakeupThread() that prevents the running thread from being woken up, THS_SELF should not be used with iWakeupThread().
anonymous enum |
EE Interrupt Controller (INTC) interrupt numbers
Enumerator | |
---|---|
INTC_GS | |
INTC_SBUS | |
INTC_VBLANK_S | |
INTC_VBLANK_E | |
INTC_VIF0 | |
INTC_VIF1 | |
INTC_VU0 | |
INTC_VU1 | |
INTC_IPU | |
INTC_TIM0 | |
INTC_TIM1 | |
INTC_TIM2 | |
INTC_SFIFO | |
INTC_VU0WD |
Definition at line 81 of file kernel.h.
anonymous enum |
enum CPU_CONFIG |
int* __errno | ( | void | ) |
void _ExecOSD | ( | int | num_args, |
char * | args[] | ||
) |
s32 _ExecPS2 | ( | void * | entry, |
void * | gp, | ||
int | num_args, | ||
char * | args[] | ||
) |
void _Exit | ( | s32 | exit_code | ) |
void _GetGsDxDyOffset | ( | int | mode, |
int * | dx, | ||
int * | dy, | ||
int * | dw, | ||
int * | dh | ||
) |
Referenced by GsSetDefaultDisplayEnv().
s32 _iGetThreadId | ( | void | ) |
void _InitSys | ( | void | ) |
int _InitTLB | ( | void | ) |
void _InvalidDCache | ( | void * | start, |
void * | end | ||
) |
void _LoadExecPS2 | ( | const char * | filename, |
s32 | num_args, | ||
char * | args[] | ||
) |
int _SetTLBEntry | ( | unsigned int | index, |
unsigned int | PageMask, | ||
unsigned int | EntryHi, | ||
unsigned int | EntryLo0, | ||
unsigned int | EntryLo1 | ||
) |
Referenced by InitTLB32MB().
void _SyncDCache | ( | void * | start, |
void * | end | ||
) |
void abort | ( | void | ) |
Definition at line 16 of file terminate.c.
References _exit().
Referenced by dma_channel_initialize().
s32 AddDmacHandler2 | ( | s32 | channel, |
s32(*)(s32 channel, void *arg, void *addr) | handler, | ||
s32 | next, | ||
void * | arg | ||
) |
Referenced by graph_add_vsync_handler(), and main().
s32 AddIntcHandler2 | ( | s32 | cause, |
s32(*)(s32 cause, void *arg, void *addr) | handler_func, | ||
s32 | next, | ||
void * | arg | ||
) |
void* ChangeGP | ( | void * | gp | ) |
Referenced by Intc12Handler().
Referenced by poweroffChangeThreadPriority().
int Copy | ( | void * | dest, |
const void * | src, | ||
int | size | ||
) |
Referenced by InitAlarm(), InitExecPS2(), InitOsd(), and InitTLBFunctions().
Referenced by audsrv_init(), fileXioInit(), main(), nanosleep(), NetManInitRPCClient(), PS2CamInit(), ps2ip_init(), sys_init(), sys_mbox_new(), and sys_sem_new().
s32 CreateThread | ( | ee_thread_t * | thread | ) |
Referenced by audsrv_init(), NetManInitRPCClient(), NetManInitRPCServer(), poweroffInit(), SIOR_Init(), and sys_thread_new().
Referenced by audsrv_quit(), deinitCleanup(), fileXioExit(), main(), nanosleep(), ps2ip_deinit(), sys_mbox_free(), and sys_sem_free().
Referenced by audsrv_quit(), deinitCleanup(), NetManDeinitRPCServer(), poweroffInit(), and sys_thread_new().
int DIntr | ( | void | ) |
int DisableDmac | ( | int | dmac | ) |
Referenced by dma_channel_shutdown().
void DisableDmacHandler | ( | u32 | channel | ) |
int DisableIntc | ( | int | intc | ) |
Referenced by graph_remove_vsync_handler().
void DisableIntcHandler | ( | u32 | cause | ) |
|
inlinestatic |
Definition at line 181 of file kernel.h.
Referenced by iop_readwrite(), PS2CamReadPacket(), sbv_patch_user_mem_clear(), sior_rpc_server(), smem_read(), and smem_write().
|
inlinestatic |
Definition at line 198 of file kernel.h.
Referenced by iop_readwrite(), PS2CamReadPacket(), sbv_patch_user_mem_clear(), sior_rpc_server(), smem_read(), and smem_write().
|
inlinestatic |
int EIntr | ( | void | ) |
int EnableDmac | ( | int | dmac | ) |
Referenced by dma_channel_initialize().
void EnableDmacHandler | ( | u32 | channel | ) |
int EnableIntc | ( | int | intc | ) |
Referenced by graph_add_vsync_handler().
void EnableIntcHandler | ( | u32 | cause | ) |
void* EndOfHeap | ( | void | ) |
Referenced by ps2_sbrk().
void ExecOSD | ( | int | num_args, |
char * | args[] | ||
) |
s32 ExecPS2 | ( | void * | entry, |
void * | gp, | ||
int | num_args, | ||
char * | args[] | ||
) |
Referenced by LoadELFFromFile(), and main().
void exit | ( | int | retval | ) |
Definition at line 25 of file terminate.c.
References _exit().
void Exit | ( | s32 | exit_code | ) |
Referenced by InitTLB32MB().
void ExitDeleteThread | ( | void | ) |
Referenced by _kill().
void ExitThread | ( | void | ) |
int ExpandScratchPad | ( | unsigned int | page | ) |
Definition at line 163 of file tlbsrc.c.
References index, ProbeTLBEntry(), and result.
void FlushCache | ( | s32 | operation | ) |
void* GetEntryAddress | ( | int | syscall | ) |
Referenced by InitAlarm(), InitExecPS2(), and InitOsd().
void* GetExceptionHandler | ( | int | except_no | ) |
Referenced by ee_dbg_install().
void* GetGP | ( | void | ) |
Referenced by SetAlarmInternal().
void GetGsHParam | ( | void * | addr1, |
void * | addr2, | ||
void * | addr3 | ||
) |
s32 GetGsVParam | ( | void | ) |
void* GetInterruptHandler | ( | int | intr_no | ) |
s32 GetMemorySize | ( | void | ) |
Referenced by wipeUserMem().
void GetOsdConfigParam | ( | void * | addr | ) |
Referenced by PatchIsNeeded().
void* GetSyscallHandler | ( | int | syscall_no | ) |
s32 GetThreadId | ( | void | ) |
Referenced by _getpid(), rpc_server_thread(), sior_thread(), WaitSemaTimeout(), and WaitValidNetState().
int GetTLBEntry | ( | unsigned int | index, |
unsigned int * | PageMask, | ||
unsigned int * | EntryHi, | ||
unsigned int * | EntryLo0, | ||
unsigned int * | EntryLo1 | ||
) |
u64 GsGetIMR | ( | void | ) |
Referenced by ps2_screenshot().
Referenced by graph_set_mode(), GsResetGraph(), Init_GS(), and ps2_screenshot().
int iDisableDmac | ( | int | dmac | ) |
Referenced by dma_channel_shutdown().
void iDisableDmacHandler | ( | u32 | channel | ) |
int iDisableIntc | ( | int | intc | ) |
void iDisableIntcHandler | ( | u32 | cause | ) |
int iEnableDmac | ( | int | dmac | ) |
Referenced by dma_channel_initialize().
void iEnableDmacHandler | ( | u32 | channel | ) |
int iEnableIntc | ( | int | intc | ) |
void iEnableIntcHandler | ( | u32 | cause | ) |
void iFlushCache | ( | s32 | operation | ) |
int iGetTLBEntry | ( | unsigned int | index, |
unsigned int * | PageMask, | ||
unsigned int * | EntryHi, | ||
unsigned int * | EntryLo0, | ||
unsigned int * | EntryLo1 | ||
) |
u64 iGsGetIMR | ( | void | ) |
void iInvalidDCache | ( | void * | start, |
void * | end | ||
) |
void InitAlarm | ( | void | ) |
Definition at line 43 of file alarm.c.
References Copy(), eenull, FlushCache(), GetEntryAddress(), setup(), size_eenull, size_srcfile, srcfile, SyscallData::syscall, and SysEntry.
void InitExecPS2 | ( | void | ) |
Definition at line 47 of file libosd.c.
References Copy(), FlushCache(), GetEntryAddress(), osdsrc, PatchIsNeeded(), setup(), size_osdsrc, SyscallData::syscall_num, and SyscallPatchEntries.
void InitOsd | ( | void | ) |
Definition at line 69 of file libosd_full.c.
References Copy(), FlushCache(), GetEntryAddress(), osdsrc, PatchIsNeeded(), setup(), size_osdsrc, SyscallData::syscall_num, and SyscallPatchEntries.
int InitThread | ( | void | ) |
void InitTLB | ( | void | ) |
void InitTLBFunctions | ( | void | ) |
Definition at line 41 of file tlbfunc.c.
References _kExecArg, Copy(), FlushCache(), GetEntryAddress(), setup(), size_tlbsrc, SyscallData::syscall, SysEntry, and tlbsrc.
void InvalidDCache | ( | void * | start, |
void * | end | ||
) |
int iProbeTLBEntry | ( | unsigned int | EntryHi, |
unsigned int * | PageMask, | ||
unsigned int * | EntryLo0, | ||
unsigned int * | EntryLo1 | ||
) |
int iPutTLBEntry | ( | unsigned int | PageMask, |
unsigned int | EntryHi, | ||
unsigned int | EntryLo0, | ||
unsigned int | EntryLo1 | ||
) |
s32 iReferThreadStatus | ( | s32 | thread_id, |
ee_thread_status_t * | info | ||
) |
Referenced by TimeoutHandler().
int iSetTLBEntry | ( | unsigned int | index, |
unsigned int | PageMask, | ||
unsigned int | EntryHi, | ||
unsigned int | EntryLo0, | ||
unsigned int | EntryLo1 | ||
) |
void iSifSetDChain | ( | void | ) |
Referenced by HandleRxEvent().
u32 iSifSetDma | ( | SifDmaTransfer_t * | sdd, |
s32 | len | ||
) |
Referenced by _fxio_intr(), _sleep_waker(), fillbuffer(), fxio_ctl_intr(), recv_intr(), VblankEndHandler(), and VblankStartHandler().
void iSyncDCache | ( | void * | start, |
void * | end | ||
) |
Referenced by dma_channel_send_chain(), dma_channel_send_normal(), and dma_channel_send_normal_ucab().
Referenced by EthStatusCheckCb(), and HandleRxEvent().
int kCopy | ( | void * | dest, |
const void * | src, | ||
int | size | ||
) |
int kCopyBytes | ( | void * | dest, |
const void * | src, | ||
int | size | ||
) |
void KSeg0 | ( | s32 | arg1 | ) |
void LoadExecPS2 | ( | const char * | filename, |
s32 | num_args, | ||
char * | args[] | ||
) |
s32 MachineType | ( | void | ) |
|
inlinestatic |
Definition at line 141 of file kernel.h.
Referenced by audsrv_init(), fileXioInit(), main(), mcInit(), mtapInit(), NetManInitRPCClient(), padInit(), poweroffInit(), PS2CamGetDeviceCount(), PS2CamGetDeviceInfo(), PS2CamGetDeviceStatus(), PS2CamGetIRXVersion(), PS2CamInit(), PS2CamSetDeviceBandwidth(), ps2ip_init(), PS2MouseInit(), RMMan_Init(), and sceSdInit().
int PatchIsNeeded | ( | void | ) |
Definition at line 20 of file libosd_common.c.
References GetOsdConfigParam(), SetOsdConfigParam(), and ConfigParam::version.
Referenced by InitExecPS2(), and InitOsd().
Referenced by fileXioWaitAsync(), PollMbx(), sys_arch_sem_wait(), and try_alloc_msg().
int ProbeTLBEntry | ( | unsigned int | EntryHi, |
unsigned int * | PageMask, | ||
unsigned int * | EntryLo0, | ||
unsigned int * | EntryLo1 | ||
) |
void PSMode | ( | void | ) |
int PutTLBEntry | ( | unsigned int | PageMask, |
unsigned int | EntryHi, | ||
unsigned int | EntryLo0, | ||
unsigned int | EntryLo1 | ||
) |
s32 ReferThreadStatus | ( | s32 | thread_id, |
ee_thread_status_t * | info | ||
) |
Definition at line 110 of file alarm.c.
References AlarmCount, alarms, AlarmStatus, CalculateTimeDiff(), EE_SYNC, alarm::id, INTC_TIM3, R_EE_I_STAT, result, SetupTIM3(), T3_COMP_W, T3_COUNT_W, T3_MODE_W, alarm::target, alarm::time, time, and Tn_MODE.
Referenced by WaitSemaTimeout().
Referenced by dma_channel_shutdown(), and NetManDeinitRPCServer().
Referenced by graph_remove_vsync_handler().
void ResetEE | ( | u32 | init_bitfield | ) |
Referenced by dma_reset().
u8 RFU059 | ( | void | ) |
Referenced by nanosleep(), WaitSemaTimeout(), and WaitValidNetState().
void SetCPUTimer | ( | s32 | compval | ) |
void SetCPUTimerHandler | ( | void(*)(void) | handler | ) |
void SetGP | ( | void * | gp | ) |
Referenced by Intc12Handler().
Referenced by graph_set_mode(), GsResetGraph(), and Init_GS().
void SetGsHParam | ( | void * | addr1, |
void * | addr2, | ||
void * | addr3, | ||
void * | addr4 | ||
) |
void SetGsVParam | ( | s32 | arg1 | ) |
int SetMemoryMode | ( | int | mode | ) |
void SetOsdConfigParam | ( | void * | addr | ) |
Referenced by PatchIsNeeded().
void SetPgifHandler | ( | void * | handler | ) |
void SetSyscall | ( | s32 | syscall_num, |
void * | handler | ||
) |
void setup | ( | int | syscall_num, |
void * | handler | ||
) |
Referenced by InitAlarm(), InitExecPS2(), and InitOsd().
void SetupHeap | ( | void * | heap_start, |
s32 | heap_size | ||
) |
void* SetupThread | ( | void * | gp, |
void * | stack, | ||
s32 | stack_size, | ||
void * | args, | ||
void * | root_func | ||
) |
void SetVCommonHandler | ( | s32 | handler_num, |
void * | handler_func | ||
) |
Referenced by ee_dbg_install(), and ee_dbg_remove().
void SetVInterruptHandler | ( | s32 | handler_num, |
void * | handler_func | ||
) |
void SetVTLBRefillHandler | ( | s32 | handler_num, |
void * | handler_func | ||
) |
Referenced by ee_dbg_install(), and ee_dbg_remove().
Referenced by audsrv_load_adpcm(), NETMAN_TxThread(), and sndLoadSample().
int SifGetReg | ( | u32 | register_num | ) |
void SifSetDChain | ( | void | ) |
u32 SifSetDma | ( | SifDmaTransfer_t * | sdd, |
s32 | len | ||
) |
int SifSetReg | ( | u32 | register_num, |
int | register_value | ||
) |
void SifStopDma | ( | void | ) |
Referenced by _unlock(), accept(), audsrv_load_adpcm(), audsrv_play_audio(), audsrv_set_format(), bind(), call_rpc_1(), call_rpc_2(), connect(), disconnect(), fileXioChdir(), fileXioChStat(), fileXioClose(), fileXioCopyfile(), fileXioDclose(), fileXioDevctl(), fileXioDopen(), fileXioDread(), fileXioFormat(), fileXioGetDeviceList(), fileXioGetdir(), fileXioGetStat(), fileXioIoctl(), fileXioIoctl2(), fileXioLseek(), fileXioLseek64(), fileXioMkdir(), fileXioMount(), fileXioOpen(), fileXioRead(), fileXioReadlink(), fileXioRemove(), fileXioRename(), fileXioRmdir(), fileXioSetRWBufferSize(), fileXioSymlink(), fileXioSync(), fileXioUmount(), fileXioWaitAsync(), fileXioWrite(), free_msg(), getpeername(), getsockname(), getsockopt(), ioctlsocket(), listen(), NetManQueryMainIF(), NetManRpcIoctl(), NetManRPCRegisterNetworkStack(), NetManRPCUnregisterNetworkStack(), NetManSetLinkMode(), NetManSetMainIF(), PS2CamReadPacket(), ps2ip_getconfig(), ps2ip_setconfig(), recv(), recvfrom(), select(), send(), SendMbx(), sendto(), setsockopt(), socket(), and sys_sem_signal().
s32 SleepThread | ( | void | ) |
Referenced by loadmodules(), LoadModules(), loadModules(), main(), NETMAN_RxThread(), NETMAN_TxThread(), serverThread(), and WaitValidNetState().
Referenced by audsrv_init(), NetManInitRPCClient(), NetManInitRPCServer(), poweroffInit(), SIOR_Init(), and sys_thread_new().
void SyncDCache | ( | void * | start, |
void * | end | ||
) |
void TerminateLibrary | ( | void | ) |
Referenced by audsrv_quit(), deinitCleanup(), NetManDeinitRPCServer(), and poweroffInit().
Referenced by _lock(), accept(), alloc_msg(), audsrv_load_adpcm(), audsrv_play_audio(), audsrv_quit(), audsrv_set_format(), bind(), call_rpc_1(), call_rpc_2(), connect(), disconnect(), fileXioChdir(), fileXioChStat(), fileXioClose(), fileXioCopyfile(), fileXioDclose(), fileXioDevctl(), fileXioDopen(), fileXioDread(), fileXioFormat(), fileXioGetDeviceList(), fileXioGetdir(), fileXioGetStat(), fileXioIoctl(), fileXioIoctl2(), fileXioLseek(), fileXioLseek64(), fileXioMkdir(), fileXioMount(), fileXioOpen(), fileXioRead(), fileXioReadlink(), fileXioRemove(), fileXioRename(), fileXioRmdir(), fileXioSetRWBufferSize(), fileXioSymlink(), fileXioSync(), fileXioUmount(), fileXioWaitAsync(), fileXioWrite(), getpeername(), getsockname(), getsockopt(), ioctlsocket(), listen(), main(), nanosleep(), NetManDeinitRPCClient(), NetManQueryMainIF(), NetManRpcIoctl(), NetManRPCRegisterNetworkStack(), NetManRPCUnregisterNetworkStack(), NetManSetLinkMode(), NetManSetMainIF(), PS2CamReadPacket(), ps2ip_getconfig(), ps2ip_setconfig(), ReceiveMbx(), recv(), recvfrom(), select(), send(), sendto(), setsockopt(), socket(), sys_arch_sem_wait(), and WaitSemaTimeout().
Referenced by NetManRpcNetIFXmit().
|
extern |
|
extern |
Referenced by sleep().