PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
syscallnr.h
Go to the documentation of this file.
1
6#ifndef __SYSCALLNR_H__
7#define __SYSCALLNR_H__
8
9#define __NR_ResetEE 1
10#define __NR_SetGsCrt 2
11#define __NR_KExit 4
12#define __NR_ResumeIntrDispatch 5 // Arbitrarily named
13#define __NR__LoadExecPS2 6
14#define __NR__ExecPS2 7
15#define __NR_ResumeT3IntrDispatch 8 // Arbitrarily named (used by alarm update)
16#define __NR_RFU009 9
17#define __NR_AddSbusIntcHandler 0xa
18#define __NR_RemoveSbusIntcHandler 0xb
19#define __NR_Interrupt2Iop 0xc
20#define __NR_SetVTLBRefillHandler 0xd
21#define __NR_SetVCommonHandler 0xe
22#define __NR_SetVInterruptHandler 0xf
23#define __NR_AddIntcHandler 0x10
24#define __NR_AddIntcHandler2 __NR_AddIntcHandler
25#define __NR_RemoveIntcHandler 0x11
26#define __NR_AddDmacHandler 0x12
27#define __NR_AddDmacHandler2 __NR_AddDmacHandler
28#define __NR_RemoveDmacHandler 0x13
29#define __NR__EnableIntc 0x14
30#define __NR__DisableIntc 0x15
31#define __NR__EnableDmac 0x16
32#define __NR__DisableDmac 0x17
33#define __NR__SetAlarm 0x18
34#define __NR__ReleaseAlarm 0x19
35#define __NR_SetAlarm 0xfc
36#define __NR_ReleaseAlarm 0xfe
37#define __NR__iEnableIntc (-0x1a)
38#define __NR__iDisableIntc (-0x1b)
39#define __NR__iEnableDmac (-0x1c)
40#define __NR__iDisableDmac (-0x1d)
41#define __NR__iSetAlarm (-0x1e)
42#define __NR__iReleaseAlarm (-0x1f)
43#define __NR_iSetAlarm (-0xfd)
44#define __NR_iReleaseAlarm (-0xff)
45#define __NR_CreateThread 0x20
46#define __NR_DeleteThread 0x21
47#define __NR_StartThread 0x22
48#define __NR_ExitThread 0x23
49#define __NR_ExitDeleteThread 0x24
50#define __NR_TerminateThread 0x25
51#define __NR_iTerminateThread (-0x26)
52#define __NR_DisableDispatchThread 0x27
53#define __NR_EnableDispatchThread 0x28
54#define __NR_ChangeThreadPriority 0x29
55#define __NR_iChangeThreadPriority (-0x2a)
56#define __NR_RotateThreadReadyQueue 0x2b
57#define __NR__iRotateThreadReadyQueue (-0x2c)
58#define __NR_ReleaseWaitThread 0x2d
59#define __NR_iReleaseWaitThread (-0x2e)
60#define __NR_GetThreadId 0x2f
61#define __NR__iGetThreadId (-0x2f) // Used for a hack by SCE to workaround iWakeupThread
62#define __NR_ReferThreadStatus 0x30
63#define __NR_iReferThreadStatus (-0x31)
64#define __NR_SleepThread 0x32
65#define __NR_WakeupThread 0x33
66#define __NR__iWakeupThread (-0x34)
67#define __NR_CancelWakeupThread 0x35
68#define __NR_iCancelWakeupThread (-0x36)
69#define __NR_SuspendThread 0x37
70#define __NR__iSuspendThread (-0x38)
71#define __NR_ResumeThread 0x39
72#define __NR_iResumeThread (-0x3a)
73#define __NR_RFU059 0x3b
74#define __NR_RFU060 0x3c
75#define __NR_SetupThread __NR_RFU060
76#define __NR_RFU061 0x3d
77#define __NR_SetupHeap __NR_RFU061
78#define __NR_EndOfHeap 0x3e
79#define __NR_CreateSema 0x40
80#define __NR_DeleteSema 0x41
81#define __NR_SignalSema 0x42
82#define __NR_iSignalSema (-0x43)
83#define __NR_WaitSema 0x44
84#define __NR_PollSema 0x45
85#define __NR_iPollSema (-0x46)
86#define __NR_ReferSemaStatus 0x47
87#define __NR_iReferSemaStatus (-0x48)
88#define __NR_iDeleteSema (-0x49)
89#define __NR_SetOsdConfigParam 0x4a
90#define __NR_GetOsdConfigParam 0x4b
91#define __NR_GetGsHParam 0x4c
92#define __NR_GetGsVParam 0x4d
93#define __NR_SetGsHParam 0x4e
94#define __NR_SetGsVParam 0x4f
95#define __NR_CreateEventFlag 0x50
96#define __NR_DeleteEventFlag 0x51
97#define __NR_SetEventFlag 0x52
98#define __NR_iSetEventFlag 0x53
99#define __NR_xlaunch 0x54
100#define __NR_PutTLBEntry 0x55
101#define __NR_iPutTLBEntry (-0x55)
102#define __NR__SetTLBEntry 0x56
103#define __NR_iSetTLBEntry (-0x56)
104#define __NR_GetTLBEntry 0x57
105#define __NR_iGetTLBEntry (-0x57)
106#define __NR_ProbeTLBEntry 0x58
107#define __NR_iProbeTLBEntry (-0x58)
108#define __NR_ExpandScratchPad 0x59
109#define __NR_Copy 0x5A
110#define __NR_GetEntryAddress 0x5B
111#define __NR_EnableIntcHandler 0x5C
112#define __NR_iEnableIntcHandler (-0x5C)
113#define __NR_DisableIntcHandler 0x5D
114#define __NR_iDisableIntcHandler (-0x5D)
115#define __NR_EnableDmacHandler 0x5E
116#define __NR_iEnableDmacHandler (-0x5E)
117#define __NR_DisableDmacHandler 0x5F
118#define __NR_iDisableDmacHandler (-0x5F)
119#define __NR_KSeg0 0x60
120#define __NR_EnableCache 0x61
121#define __NR_DisableCache 0x62
122#define __NR_GetCop0 0x63
123#define __NR_FlushCache 0x64
124#define __NR_CpuConfig 0x66
125#define __NR_iGetCop0 (-0x67)
126#define __NR_iFlushCache (-0x68)
127#define __NR_RFU105 0x69
128#define __NR_iCpuConfig (-0x6a)
129#define __NR_SifStopDma 0x6b
130#define __NR_SetCPUTimerHandler 0x6c
131#define __NR_SetCPUTimer 0x6d
132#define __NR_SetOsdConfigParam2 0x6e
133#define __NR_GetOsdConfigParam2 0x6f
134#define __NR_GsGetIMR 0x70
135#define __NR_iGsGetIMR (-0x70)
136#define __NR_GsPutIMR 0x71
137#define __NR_iGsPutIMR (-0x71)
138#define __NR_SetPgifHandler 0x72
139#define __NR_SetVSyncFlag 0x73
140#define __NR_SetSyscall 0x74
141#define __NR__print 0x75
142#define __NR_SifDmaStat 0x76
143#define __NR_iSifDmaStat (-0x76)
144#define __NR_SifSetDma 0x77
145#define __NR_iSifSetDma (-0x77)
146#define __NR_SifSetDChain 0x78
147#define __NR_iSifSetDChain (-0x78)
148#define __NR_SifSetReg 0x79
149#define __NR_SifGetReg 0x7a
150#define __NR__ExecOSD 0x7b
151#define __NR_Deci2Call 0x7c
152#define __NR_PSMode 0x7d
153#define __NR_MachineType 0x7e
154#define __NR_GetMemorySize 0x7f
155#define __NR__GetGsDxDyOffset 0x80
156#define __NR__InitTLB 0x82
157#define __NR_FindAddress 0x83
158#define __NR_SetMemoryMode 0x85
159#define __NR_ExecPSX 0x87
160
161#endif /* __SYSCALLNR_H__ */