rktraps.h
7.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
#ifndef __TV_rktraps_h_
#define __TV_rktraps_h_
#include "rkapi.h"
/* RiscKernel system call trap #'s */
#define __TV_TRAP_tvDestroyID ( 0 + __TV_TRAP_BASE)
#define __TV_TRAP_tvShare ( 1 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetNumCapabilities ( 2 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetCapabilities ( 3 + __TV_TRAP_BASE)
#define __TV_TRAP_tvSend ( 4 + __TV_TRAP_BASE)
#define __TV_TRAP_tvReceive ( 5 + __TV_TRAP_BASE)
#define __TV_TRAP_tvPoll ( 6 + __TV_TRAP_BASE)
#define __TV_TRAP_tvCreateSet ( 7 + __TV_TRAP_BASE)
#define __TV_TRAP_tvAddElement ( 8 + __TV_TRAP_BASE)
#define __TV_TRAP_tvRemoveElement ( 9 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetSetSize (10 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetSetElements (11 + __TV_TRAP_BASE)
#define __TV_TRAP_tvCreateQueue (12 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetQueueLimit (13 + __TV_TRAP_BASE)
#define __TV_TRAP_tvSetQueueLimit (14 + __TV_TRAP_BASE)
#define __TV_TRAP_tvCreateProcess (15 + __TV_TRAP_BASE)
#define __TV_TRAP_tvKillProcess (16 + __TV_TRAP_BASE)
#define __TV_TRAP_tvStartProcess (17 + __TV_TRAP_BASE)
#define __TV_TRAP_tvStopProcess (18 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetProcessID (19 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetThreadSet (20 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetRegionSet (21 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetRegionVirtualAddress (22 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetProcessName (23 + __TV_TRAP_BASE)
#define __TV_TRAP_tvCreateThread (24 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetThreadID (25 + __TV_TRAP_BASE)
#define __TV_TRAP_tvStartThread (26 + __TV_TRAP_BASE)
#define __TV_TRAP_tvStopThread (27 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetThreadState (28 + __TV_TRAP_BASE)
#define __TV_TRAP_tvSetPriority (29 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetPriority (30 + __TV_TRAP_BASE)
#define __TV_TRAP_tvSetHandler (31 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetHandler (32 + __TV_TRAP_BASE)
#define __TV_TRAP_tvYield (33 + __TV_TRAP_BASE)
#define __TV_TRAP_tvCreateRegion (34 + __TV_TRAP_BASE)
#define __TV_TRAP_tvMapRegion (35 + __TV_TRAP_BASE)
#define __TV_TRAP_tvUnmapRegion (36 + __TV_TRAP_BASE)
#define __TV_TRAP_tvChangeRegion (37 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetRegionFlags (38 + __TV_TRAP_BASE)
#define __TV_TRAP_tvResizeRegion (39 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetRegionSize (40 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetRegionPhysicalAddress (41 + __TV_TRAP_BASE)
#define __TV_TRAP_tvCreateTimer (42 + __TV_TRAP_BASE)
#define __TV_TRAP_tvStartTimer (43 + __TV_TRAP_BASE)
#define __TV_TRAP_tvStopTimer (44 + __TV_TRAP_BASE)
#define __TV_TRAP_tvChangeTimer (45 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetTimerFlags (46 + __TV_TRAP_BASE)
#define __TV_TRAP_tvSetDuration (47 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetDuration (48 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetCurrentTime (49 + __TV_TRAP_BASE)
#define __TV_TRAP_tvSetCurrentTime (50 + __TV_TRAP_BASE)
#define __TV_TRAP_tvCreateLock (51 + __TV_TRAP_BASE)
#define __TV_TRAP_tvLock (52 + __TV_TRAP_BASE)
#define __TV_TRAP_tvUnlock (53 + __TV_TRAP_BASE)
#define __TV_TRAP_tvTryLock (54 + __TV_TRAP_BASE)
#define __TV_TRAP_tvTestLock (55 + __TV_TRAP_BASE)
#define __TV_TRAP_tvCreateBuffer (56 + __TV_TRAP_BASE)
#define __TV_TRAP_tvGetBufferLength (57 + __TV_TRAP_BASE)
#define __TV_TRAP_tvCopyBuffer (58 + __TV_TRAP_BASE)
#define __TV_MAX_TRAP 59
/* Driver trap #'s */
#define __TV_TRAP_tvProfile ( 0 + __TV_MAX_TRAP)
#define __TV_TRAP_tvGetThreadUsage ( 1 + __TV_MAX_TRAP)
#define __TV_TRAP_tvOpenVideoInput ( 2 + __TV_MAX_TRAP)
#define __TV_TRAP_tvResetVideoInput ( 3 + __TV_MAX_TRAP)
#define __TV_TRAP_tvSetVideoInputFlags ( 4 + __TV_MAX_TRAP)
#define __TV_TRAP_tvGetVideoInputFlags ( 5 + __TV_MAX_TRAP)
#define __TV_TRAP_tvOpenControlPanel ( 6 + __TV_MAX_TRAP)
#define __TV_TRAP_tvPowerOff ( 7 + __TV_MAX_TRAP)
#define __TV_TRAP_tvSetRetraceHandler ( 8 + __TV_MAX_TRAP)
#define __TV_TRAP_tvSetTopscan ( 9 + __TV_MAX_TRAP)
#define __TV_TRAP_tvGraphicsDma (10 + __TV_MAX_TRAP)
#define __TV_TRAP_tvOpenAudioPort (11 + __TV_MAX_TRAP)
#define __TV_TRAP_tvStartAudio (12 + __TV_MAX_TRAP)
#define __TV_TRAP_tvStopAudio (13 + __TV_MAX_TRAP)
#define __TV_TRAP_tvWriteSamples (14 + __TV_MAX_TRAP)
#define __TV_TRAP_tvReadSamples (15 + __TV_MAX_TRAP)
#define __TV_TRAP_tvSetAudioConfig (16 + __TV_MAX_TRAP)
#define __TV_TRAP_tvGetAudioConfig (17 + __TV_MAX_TRAP)
#define __TV_TRAP_tvSetAudioDevConfig (18 + __TV_MAX_TRAP)
#define __TV_TRAP_tvGetAudioDevConfig (19 + __TV_MAX_TRAP)
#define __TV_TRAP_tvOpenSerial (20 + __TV_MAX_TRAP)
#define __TV_TRAP_tvWriteSerial (21 + __TV_MAX_TRAP)
#define __TV_TRAP_tvSetSerialConfig (22 + __TV_MAX_TRAP)
#define __TV_TRAP_tvGetSerialConfig (23 + __TV_MAX_TRAP)
#define __TV_TRAP_tvOpenAdec (24 + __TV_MAX_TRAP)
#define __TV_TRAP_tvWriteAdec (25 + __TV_MAX_TRAP)
#define __TV_TRAP_tvCtrlAdec (26 + __TV_MAX_TRAP)
#define __TV_TRAP_tvOpenS35 (27 + __TV_MAX_TRAP)
#define __TV_TRAP_tvWriteVdec (28 + __TV_MAX_TRAP)
#define __TV_TRAP_tvCtrlVdec (29 + __TV_MAX_TRAP)
#define __TV_TRAP_accept (30 + __TV_MAX_TRAP)
#define __TV_TRAP_bind (31 + __TV_MAX_TRAP)
#define __TV_TRAP_connect (32 + __TV_MAX_TRAP)
#define __TV_TRAP_getsockname (33 + __TV_MAX_TRAP)
#define __TV_TRAP_ioctl (34 + __TV_MAX_TRAP)
#define __TV_TRAP_listen (35 + __TV_MAX_TRAP)
#define __TV_TRAP_recv (36 + __TV_MAX_TRAP)
#define __TV_TRAP_recvfrom (37 + __TV_MAX_TRAP)
#define __TV_TRAP_send (38 + __TV_MAX_TRAP)
#define __TV_TRAP_sendto (39 + __TV_MAX_TRAP)
#define __TV_TRAP_socket (40 + __TV_MAX_TRAP)
#define __TV_TRAP_getpeername (41 + __TV_MAX_TRAP)
#define __TV_TRAP_getsockopt (42 + __TV_MAX_TRAP)
#define __TV_TRAP_setsockopt (43 + __TV_MAX_TRAP)
#define __TV_TRAP_recvmsg (44 + __TV_MAX_TRAP)
#define __TV_TRAP_sendmsg (45 + __TV_MAX_TRAP)
#define __TV_TRAP_shutdown (46 + __TV_MAX_TRAP)
#define __TV_TRAP_tvOpenStats (47 + __TV_MAX_TRAP)
#define __TV_TRAP_tvResetStats (48 + __TV_MAX_TRAP)
#define __TV_TRAP_tvOpenCent (49 + __TV_MAX_TRAP)
#define __TV_TRAP_tvWriteCent (50 + __TV_MAX_TRAP)
#define __TV_TRAP_tvCtrlCent (51 + __TV_MAX_TRAP)
#define __TV_TRAP_tvDrainSocket (52 + __TV_MAX_TRAP)
#define __TV_TRAP_tvOpenAtm (53 + __TV_MAX_TRAP)
#define __TV_TRAP_tvReadAtm (54 + __TV_MAX_TRAP)
#define __TV_TRAP_tvWriteAtm (55 + __TV_MAX_TRAP)
#define __TV_TRAP_tvSetAtm (56 + __TV_MAX_TRAP)
#define __TV_TRAP_tvGetAtm (57 + __TV_MAX_TRAP)
#define __TV_TRAP_tvDrainAtm (58 + __TV_MAX_TRAP)
#define __TV_TRAP_tvOpenSa (59 + __TV_MAX_TRAP)
#define __TV_TRAP_tvCtrlSa (60 + __TV_MAX_TRAP)
#define __TV_TRAP_tvStatSa (61 + __TV_MAX_TRAP)
#define __TV_TRAP_tvOpenAtv (62 + __TV_MAX_TRAP)
#define __TV_TRAP_tvCtrlAtv (63 + __TV_MAX_TRAP)
#define __TV_TRAP_tvOpenVcxo (64 + __TV_MAX_TRAP)
#define __TV_TRAP_tvSetVcxo (65 + __TV_MAX_TRAP)
#define __TV_TRAP_tvSetMpegCnt (66 + __TV_MAX_TRAP)
#define __TV_TRAP_tvGetMpegCnt (67 + __TV_MAX_TRAP)
#define __TV_TRAP_tvSetTLSAddr (68 + __TV_MAX_TRAP)
#define __TV_TRAP_tvGetTLSAddr (69 + __TV_MAX_TRAP)
#define __TV_TRAP_tvGetNv (70 + __TV_MAX_TRAP)
#define __TV_TRAP_tvSetNv (71 + __TV_MAX_TRAP)
#define __TV_TRAP___tvGetConfig (72 + __TV_MAX_TRAP)
#define __TV_TRAP_tvReadCrash (73 + __TV_MAX_TRAP)
#define __TV_TRAP_tvLogSetMask (74 + __TV_MAX_TRAP)
#define __TV_TRAP_tvLogClearMask (75 + __TV_MAX_TRAP)
#define __TV_TRAP___tvLogGetMaskPhyAddr (76 + __TV_MAX_TRAP)
#define __TV_TRAP_tvLogReadBuffer (77 + __TV_MAX_TRAP)
#define __TV_TRAP_tvLogControl (78 + __TV_MAX_TRAP)
#define __TV_TRAP_tvGenLock (79 + __TV_MAX_TRAP)
#define __TV_TRAP_tvProm (80 + __TV_MAX_TRAP)
#define __TV_FSN_MAX_TRAP (__TV_MAX_TRAP + 81)
#endif /* __TV_rktraps_h_ */