source: atk2-sc3_fl850f1l/arch/ccrh/tool_svc.h@ 117

Last change on this file since 117 was 117, checked in by ertl-ishikawa, 9 years ago

ATK2-SC3 1.3.2 FL850F1L(RH850F1L)依存部(GCC/GHS/CCRH)を追加

File size: 18.1 KB
Line 
1/*
2 * TOPPERS ATK2
3 * Toyohashi Open Platform for Embedded Real-Time Systems
4 * Automotive Kernel Version 2
5 *
6 * Copyright (C) 2014-2015 by Center for Embedded Computing Systems
7 * Graduate School of Information Science, Nagoya Univ., JAPAN
8 *
9 * 上記著作権者
10は,以下の(1)〜(4)の条件を満たす場合に限り,本ソフトウェ
11 * ア(本ソフトウェアを改変したものを含む.以下同じ)を使用・複製・改
12 * 変・再é…
13å¸ƒï¼ˆä»¥ä¸‹ï¼Œåˆ©ç”¨ã¨å‘¼ã¶ï¼‰ã™ã‚‹ã“とを無償で許諾する.
14 * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
15 * 権表示,この利用条件および下記の無保証規定が,そのままの形でソー
16 * スコード中に含まれていること.
17 * (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使
18 * 用できる形で再é…
19å¸ƒã™ã‚‹å ´åˆã«ã¯ï¼Œå†é…
20å¸ƒã«ä¼´ã†ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆï¼ˆåˆ©ç”¨
21 * 者
22マニュアルなど)に,上記の著作権表示,この利用条件および下記
23 * の無保証規定を掲載すること.
24 * (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使
25 * 用できない形で再é…
26å¸ƒã™ã‚‹å ´åˆã«ã¯ï¼Œæ¬¡ã®ã„ずれかの条件を満たすこ
27 * と.
28 * (a) 再é…
29å¸ƒã«ä¼´ã†ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆï¼ˆåˆ©ç”¨è€…
30マニュアルなど)に,上記の著
31 * 作権表示,この利用条件および下記の無保証規定を掲載すること.
32 * (b) 再é…
33å¸ƒã®å½¢æ…
34‹ã‚’,別に定める方法によって,TOPPERSプロジェクトに
35 * 報告すること.
36 * (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損
37 * 害からも,上記著作権者
38およびTOPPERSプロジェクトをå…
39è²¬ã™ã‚‹ã“と.
40 * また,本ソフトウェアのユーザまたはエンドユーザからのいかなる理
41 * 由に基づく請求からも,上記著作権者
42およびTOPPERSプロジェクトを
43 * å…
44è²¬ã™ã‚‹ã“と.
45 *
46 * 本ソフトウェアは,無保証で提供されているものである.上記著作権者
47お
48 * よびTOPPERSプロジェクトは,本ソフトウェアに関して,特定の使用目的
49 * に対する適合性も含めて,いかなる保証も行わない.また,本ソフトウェ
50 * アの利用により直接的または間接的に生じたいかなる損害に関しても,そ
51 * の責任を負わない.
52 *
53 * $Id: tool_svc.h 182 2015-06-24 07:14:37Z t_ishikawa $
54 */
55
56/* This file is generated from svc.def by gensvc_atk. */
57
58#ifndef TOPPERS_TOOL_SVC_H
59#define TOPPERS_TOOL_SVC_H
60
61#define SVC_TRAP(system_service) _trap_ ## system_service
62
63#ifndef TOPPERS_SVC_FUNCCALL
64#define StartOS _trap_StartOS
65#define ShutdownOS _trap_ShutdownOS
66#define ActivateTask _trap_ActivateTask
67#define TerminateTask _trap_TerminateTask
68#define ChainTask _trap_ChainTask
69#define Schedule _trap_Schedule
70#define GetTaskID _trap_GetTaskID
71#define GetTaskState _trap_GetTaskState
72#define EnableAllInterrupts _trap_EnableAllInterrupts
73#define DisableAllInterrupts _trap_DisableAllInterrupts
74#define ResumeAllInterrupts _trap_ResumeAllInterrupts
75#define SuspendAllInterrupts _trap_SuspendAllInterrupts
76#define ResumeOSInterrupts _trap_ResumeOSInterrupts
77#define SuspendOSInterrupts _trap_SuspendOSInterrupts
78#define GetISRID _trap_GetISRID
79#define DisableInterruptSource _trap_DisableInterruptSource
80#define EnableInterruptSource _trap_EnableInterruptSource
81#define GetResource _trap_GetResource
82#define ReleaseResource _trap_ReleaseResource
83#define SetEvent _trap_SetEvent
84#define ClearEvent _trap_ClearEvent
85#define GetEvent _trap_GetEvent
86#define WaitEvent _trap_WaitEvent
87#define GetAlarmBase _trap_GetAlarmBase
88#define GetAlarm _trap_GetAlarm
89#define SetRelAlarm _trap_SetRelAlarm
90#define SetAbsAlarm _trap_SetAbsAlarm
91#define CancelAlarm _trap_CancelAlarm
92#define IncrementCounter _trap_IncrementCounter
93#define GetCounterValue _trap_GetCounterValue
94#define GetElapsedValue _trap_GetElapsedValue
95#define CheckISRMemoryAccess _trap_CheckISRMemoryAccess
96#define CheckTaskMemoryAccess _trap_CheckTaskMemoryAccess
97#define CheckTaskAccess _trap_CheckTaskAccess
98#define CheckISRAccess _trap_CheckISRAccess
99#define CheckAlarmAccess _trap_CheckAlarmAccess
100#define CheckResourceAccess _trap_CheckResourceAccess
101#define CheckCounterAccess _trap_CheckCounterAccess
102#define CheckScheduleTableAccess _trap_CheckScheduleTableAccess
103#define CheckTaskOwnership _trap_CheckTaskOwnership
104#define CheckISROwnership _trap_CheckISROwnership
105#define CheckAlarmOwnership _trap_CheckAlarmOwnership
106#define CheckCounterOwnership _trap_CheckCounterOwnership
107#define CheckScheduleTableOwnership _trap_CheckScheduleTableOwnership
108#define GetApplicationID _trap_GetApplicationID
109#define CallTrustedFunction _trap_CallTrustedFunction
110#define GetApplicationState _trap_GetApplicationState
111#define GetActiveApplicationMode _trap_GetActiveApplicationMode
112#define StartScheduleTableRel _trap_StartScheduleTableRel
113#define StartScheduleTableAbs _trap_StartScheduleTableAbs
114#define StopScheduleTable _trap_StopScheduleTable
115#define NextScheduleTable _trap_NextScheduleTable
116#define GetScheduleTableStatus _trap_GetScheduleTableStatus
117#define GetFaultyContext _trap_GetFaultyContext
118#define ioc_send_generic _trap_ioc_send_generic
119#define ioc_write_generic _trap_ioc_write_generic
120#define ioc_receive_generic _trap_ioc_receive_generic
121#define ioc_read_generic _trap_ioc_read_generic
122#define ioc_empty_queue_generic _trap_ioc_empty_queue_generic
123#define AllowAccess _trap_AllowAccess
124#define TerminateApplication _trap_TerminateApplication
125#endif
126
127#ifndef TOPPERS_MACRO_ONLY
128
129#pragma inline _trap_StartOS
130LOCAL_INLINE void
131_trap_StartOS(AppModeType Mode)
132{
133 CAL_SVC_1N(void, TFN_STARTOS, AppModeType, Mode);
134}
135
136#pragma inline _trap_ShutdownOS
137LOCAL_INLINE void
138_trap_ShutdownOS(StatusType Error)
139{
140 CAL_SVC_1N(void, TFN_SHUTDOWNOS, StatusType, Error);
141}
142
143#pragma inline _trap_ActivateTask
144LOCAL_INLINE StatusType
145_trap_ActivateTask(TaskType TaskID)
146{
147 return CAL_SVC_1M(StatusType, TFN_ACTIVATETASK, TaskType, TaskID);
148}
149
150#pragma inline _trap_TerminateTask
151LOCAL_INLINE StatusType
152_trap_TerminateTask(void)
153{
154 return CAL_SVC_0M(StatusType, TFN_TERMINATETASK);
155}
156
157#pragma inline _trap_ChainTask
158LOCAL_INLINE StatusType
159_trap_ChainTask(TaskType TaskID)
160{
161 return CAL_SVC_1M(StatusType, TFN_CHAINTASK, TaskType, TaskID);
162}
163
164#pragma inline _trap_Schedule
165LOCAL_INLINE StatusType
166_trap_Schedule(void)
167{
168 return CAL_SVC_0M(StatusType, TFN_SCHEDULE);
169}
170
171#pragma inline _trap_GetTaskID
172LOCAL_INLINE StatusType
173_trap_GetTaskID(TaskRefType TaskID)
174{
175 return CAL_SVC_1M(StatusType, TFN_GETTASKID, TaskRefType, TaskID);
176}
177
178#pragma inline _trap_GetTaskState
179LOCAL_INLINE StatusType
180_trap_GetTaskState(TaskType TaskID, TaskStateRefType State)
181{
182 return CAL_SVC_2M(StatusType, TFN_GETTASKSTATE, TaskType, TaskID, TaskStateRefType, State);
183}
184
185#pragma inline _trap_EnableAllInterrupts
186LOCAL_INLINE void
187_trap_EnableAllInterrupts(void)
188{
189 CAL_SVC_0N(void, TFN_ENABLEALLINTERRUPTS);
190}
191
192#pragma inline _trap_DisableAllInterrupts
193LOCAL_INLINE void
194_trap_DisableAllInterrupts(void)
195{
196 CAL_SVC_0N(void, TFN_DISABLEALLINTERRUPTS);
197}
198
199#pragma inline _trap_ResumeAllInterrupts
200LOCAL_INLINE void
201_trap_ResumeAllInterrupts(void)
202{
203 CAL_SVC_0N(void, TFN_RESUMEALLINTERRUPTS);
204}
205
206#pragma inline _trap_SuspendAllInterrupts
207LOCAL_INLINE void
208_trap_SuspendAllInterrupts(void)
209{
210 CAL_SVC_0N(void, TFN_SUSPENDALLINTERRUPTS);
211}
212
213#pragma inline _trap_ResumeOSInterrupts
214LOCAL_INLINE void
215_trap_ResumeOSInterrupts(void)
216{
217 CAL_SVC_0N(void, TFN_RESUMEOSINTERRUPTS);
218}
219
220#pragma inline _trap_SuspendOSInterrupts
221LOCAL_INLINE void
222_trap_SuspendOSInterrupts(void)
223{
224 CAL_SVC_0N(void, TFN_SUSPENDOSINTERRUPTS);
225}
226
227#pragma inline _trap_GetISRID
228LOCAL_INLINE ISRType
229_trap_GetISRID(void)
230{
231 return CAL_SVC_0M(ISRType, TFN_GETISRID);
232}
233
234#pragma inline _trap_DisableInterruptSource
235LOCAL_INLINE StatusType
236_trap_DisableInterruptSource(ISRType DisableISR)
237{
238 return CAL_SVC_1M(StatusType, TFN_DISABLEINTERRUPTSOURCE, ISRType, DisableISR);
239}
240
241#pragma inline _trap_EnableInterruptSource
242LOCAL_INLINE StatusType
243_trap_EnableInterruptSource(ISRType EnableISR)
244{
245 return CAL_SVC_1M(StatusType, TFN_ENABLEINTERRUPTSOURCE, ISRType, EnableISR);
246}
247
248#pragma inline _trap_GetResource
249LOCAL_INLINE StatusType
250_trap_GetResource(ResourceType ResID)
251{
252 return CAL_SVC_1M(StatusType, TFN_GETRESOURCE, ResourceType, ResID);
253}
254
255#pragma inline _trap_ReleaseResource
256LOCAL_INLINE StatusType
257_trap_ReleaseResource(ResourceType ResID)
258{
259 return CAL_SVC_1M(StatusType, TFN_RELEASERESOURCE, ResourceType, ResID);
260}
261
262#pragma inline _trap_SetEvent
263LOCAL_INLINE StatusType
264_trap_SetEvent(TaskType TaskID, EventMaskType Mask)
265{
266 return CAL_SVC_2M(StatusType, TFN_SETEVENT, TaskType, TaskID, EventMaskType, Mask);
267}
268
269#pragma inline _trap_ClearEvent
270LOCAL_INLINE StatusType
271_trap_ClearEvent(EventMaskType Mask)
272{
273 return CAL_SVC_1M(StatusType, TFN_CLEAREVENT, EventMaskType, Mask);
274}
275
276#pragma inline _trap_GetEvent
277LOCAL_INLINE StatusType
278_trap_GetEvent(TaskType TaskID, EventMaskRefType Event)
279{
280 return CAL_SVC_2M(StatusType, TFN_GETEVENT, TaskType, TaskID, EventMaskRefType, Event);
281}
282
283#pragma inline _trap_WaitEvent
284LOCAL_INLINE StatusType
285_trap_WaitEvent(EventMaskType Mask)
286{
287 return CAL_SVC_1M(StatusType, TFN_WAITEVENT, EventMaskType, Mask);
288}
289
290#pragma inline _trap_GetAlarmBase
291LOCAL_INLINE StatusType
292_trap_GetAlarmBase(AlarmType AlarmID, AlarmBaseRefType Info)
293{
294 return CAL_SVC_2M(StatusType, TFN_GETALARMBASE, AlarmType, AlarmID, AlarmBaseRefType, Info);
295}
296
297#pragma inline _trap_GetAlarm
298LOCAL_INLINE StatusType
299_trap_GetAlarm(AlarmType AlarmID, TickRefType Tick)
300{
301 return CAL_SVC_2M(StatusType, TFN_GETALARM, AlarmType, AlarmID, TickRefType, Tick);
302}
303
304#pragma inline _trap_SetRelAlarm
305LOCAL_INLINE StatusType
306_trap_SetRelAlarm(AlarmType AlarmID, TickType increment, TickType cycle)
307{
308 return CAL_SVC_3M(StatusType, TFN_SETRELALARM, AlarmType, AlarmID, TickType, increment, TickType, cycle);
309}
310
311#pragma inline _trap_SetAbsAlarm
312LOCAL_INLINE StatusType
313_trap_SetAbsAlarm(AlarmType AlarmID, TickType start, TickType cycle)
314{
315 return CAL_SVC_3M(StatusType, TFN_SETABSALARM, AlarmType, AlarmID, TickType, start, TickType, cycle);
316}
317
318#pragma inline _trap_CancelAlarm
319LOCAL_INLINE StatusType
320_trap_CancelAlarm(AlarmType AlarmID)
321{
322 return CAL_SVC_1M(StatusType, TFN_CANCELALARM, AlarmType, AlarmID);
323}
324
325#pragma inline _trap_IncrementCounter
326LOCAL_INLINE StatusType
327_trap_IncrementCounter(CounterType CounterID)
328{
329 return CAL_SVC_1M(StatusType, TFN_INCREMENTCOUNTER, CounterType, CounterID);
330}
331
332#pragma inline _trap_GetCounterValue
333LOCAL_INLINE StatusType
334_trap_GetCounterValue(CounterType CounterID, TickRefType Value)
335{
336 return CAL_SVC_2M(StatusType, TFN_GETCOUNTERVALUE, CounterType, CounterID, TickRefType, Value);
337}
338
339#pragma inline _trap_GetElapsedValue
340LOCAL_INLINE StatusType
341_trap_GetElapsedValue(CounterType CounterID, TickRefType Value, TickRefType ElapsedValue)
342{
343 return CAL_SVC_3M(StatusType, TFN_GETELAPSEDVALUE, CounterType, CounterID, TickRefType, Value, TickRefType, ElapsedValue);
344}
345
346#pragma inline _trap_CheckISRMemoryAccess
347LOCAL_INLINE AccessType
348_trap_CheckISRMemoryAccess(ISRType ISRID, MemoryStartAddressType Address, MemorySizeType Size)
349{
350 return CAL_SVC_3M(AccessType, TFN_CHECKISRMEMORYACCESS, ISRType, ISRID, MemoryStartAddressType, Address, MemorySizeType, Size);
351}
352
353#pragma inline _trap_CheckTaskMemoryAccess
354LOCAL_INLINE AccessType
355_trap_CheckTaskMemoryAccess(TaskType TaskID, MemoryStartAddressType Address, MemorySizeType Size)
356{
357 return CAL_SVC_3M(AccessType, TFN_CHECKTASKMEMORYACCESS, TaskType, TaskID, MemoryStartAddressType, Address, MemorySizeType, Size);
358}
359
360#pragma inline _trap_CheckTaskAccess
361LOCAL_INLINE ObjectAccessType
362_trap_CheckTaskAccess(ApplicationType ApplID, TaskType TaskID)
363{
364 return CAL_SVC_2M(ObjectAccessType, TFN_CHECKTASKACCESS, ApplicationType, ApplID, TaskType, TaskID);
365}
366
367#pragma inline _trap_CheckISRAccess
368LOCAL_INLINE ObjectAccessType
369_trap_CheckISRAccess(ApplicationType ApplID, ISRType ISRID)
370{
371 return CAL_SVC_2M(ObjectAccessType, TFN_CHECKISRACCESS, ApplicationType, ApplID, ISRType, ISRID);
372}
373
374#pragma inline _trap_CheckAlarmAccess
375LOCAL_INLINE ObjectAccessType
376_trap_CheckAlarmAccess(ApplicationType ApplID, AlarmType AlarmID)
377{
378 return CAL_SVC_2M(ObjectAccessType, TFN_CHECKALARMACCESS, ApplicationType, ApplID, AlarmType, AlarmID);
379}
380
381#pragma inline _trap_CheckResourceAccess
382LOCAL_INLINE ObjectAccessType
383_trap_CheckResourceAccess(ApplicationType ApplID, ResourceType ResID)
384{
385 return CAL_SVC_2M(ObjectAccessType, TFN_CHECKRESOURCEACCESS, ApplicationType, ApplID, ResourceType, ResID);
386}
387
388#pragma inline _trap_CheckCounterAccess
389LOCAL_INLINE ObjectAccessType
390_trap_CheckCounterAccess(ApplicationType ApplID, CounterType CounterID)
391{
392 return CAL_SVC_2M(ObjectAccessType, TFN_CHECKCOUNTERACCESS, ApplicationType, ApplID, CounterType, CounterID);
393}
394
395#pragma inline _trap_CheckScheduleTableAccess
396LOCAL_INLINE ObjectAccessType
397_trap_CheckScheduleTableAccess(ApplicationType ApplID, ScheduleTableType ScheduleTableID)
398{
399 return CAL_SVC_2M(ObjectAccessType, TFN_CHECKSCHEDULETABLEACCESS, ApplicationType, ApplID, ScheduleTableType, ScheduleTableID);
400}
401
402#pragma inline _trap_CheckTaskOwnership
403LOCAL_INLINE ApplicationType
404_trap_CheckTaskOwnership(TaskType TaskID)
405{
406 return CAL_SVC_1M(ApplicationType, TFN_CHECKTASKOWNERSHIP, TaskType, TaskID);
407}
408
409#pragma inline _trap_CheckISROwnership
410LOCAL_INLINE ApplicationType
411_trap_CheckISROwnership(ISRType ISRID)
412{
413 return CAL_SVC_1M(ApplicationType, TFN_CHECKISROWNERSHIP, ISRType, ISRID);
414}
415
416#pragma inline _trap_CheckAlarmOwnership
417LOCAL_INLINE ApplicationType
418_trap_CheckAlarmOwnership(AlarmType AlarmID)
419{
420 return CAL_SVC_1M(ApplicationType, TFN_CHECKALARMOWNERSHIP, AlarmType, AlarmID);
421}
422
423#pragma inline _trap_CheckCounterOwnership
424LOCAL_INLINE ApplicationType
425_trap_CheckCounterOwnership(CounterType CounterID)
426{
427 return CAL_SVC_1M(ApplicationType, TFN_CHECKCOUNTEROWNERSHIP, CounterType, CounterID);
428}
429
430#pragma inline _trap_CheckScheduleTableOwnership
431LOCAL_INLINE ApplicationType
432_trap_CheckScheduleTableOwnership(ScheduleTableType ScheduleTableID)
433{
434 return CAL_SVC_1M(ApplicationType, TFN_CHECKSCHEDULETABLEOWNERSHIP, ScheduleTableType, ScheduleTableID);
435}
436
437#pragma inline _trap_GetApplicationID
438LOCAL_INLINE ApplicationType
439_trap_GetApplicationID(void)
440{
441 return CAL_SVC_0M(ApplicationType, TFN_GETAPPLICATIONID);
442}
443
444#pragma inline _trap_CallTrustedFunction
445LOCAL_INLINE StatusType
446_trap_CallTrustedFunction(TrustedFunctionIndexType FunctionIndex, TrustedFunctionParameterRefType FunctionParams)
447{
448 return CAL_SVC_2M(StatusType, TFN_CALLTRUSTEDFUNCTION, TrustedFunctionIndexType, FunctionIndex, TrustedFunctionParameterRefType, FunctionParams);
449}
450
451#pragma inline _trap_GetApplicationState
452LOCAL_INLINE StatusType
453_trap_GetApplicationState(ApplicationType Application, ApplicationStateRefType Value)
454{
455 return CAL_SVC_2M(StatusType, TFN_GETAPPLICATIONSTATE, ApplicationType, Application, ApplicationStateRefType, Value);
456}
457
458#pragma inline _trap_GetActiveApplicationMode
459LOCAL_INLINE AppModeType
460_trap_GetActiveApplicationMode(void)
461{
462 return CAL_SVC_0M(AppModeType, TFN_GETACTIVEAPPLICATIONMODE);
463}
464
465#pragma inline _trap_StartScheduleTableRel
466LOCAL_INLINE StatusType
467_trap_StartScheduleTableRel(ScheduleTableType ScheduleTableID, TickType Offset)
468{
469 return CAL_SVC_2M(StatusType, TFN_STARTSCHEDULETABLEREL, ScheduleTableType, ScheduleTableID, TickType, Offset);
470}
471
472#pragma inline _trap_StartScheduleTableAbs
473LOCAL_INLINE StatusType
474_trap_StartScheduleTableAbs(ScheduleTableType ScheduleTableID, TickType Start)
475{
476 return CAL_SVC_2M(StatusType, TFN_STARTSCHEDULETABLEABS, ScheduleTableType, ScheduleTableID, TickType, Start);
477}
478
479#pragma inline _trap_StopScheduleTable
480LOCAL_INLINE StatusType
481_trap_StopScheduleTable(ScheduleTableType ScheduleTableID)
482{
483 return CAL_SVC_1M(StatusType, TFN_STOPSCHEDULETABLE, ScheduleTableType, ScheduleTableID);
484}
485
486#pragma inline _trap_NextScheduleTable
487LOCAL_INLINE StatusType
488_trap_NextScheduleTable(ScheduleTableType ScheduleTableID_From, ScheduleTableType ScheduleTableID_To)
489{
490 return CAL_SVC_2M(StatusType, TFN_NEXTSCHEDULETABLE, ScheduleTableType, ScheduleTableID_From, ScheduleTableType, ScheduleTableID_To);
491}
492
493#pragma inline _trap_GetScheduleTableStatus
494LOCAL_INLINE StatusType
495_trap_GetScheduleTableStatus(ScheduleTableType ScheduleTableID, ScheduleTableStatusRefType ScheduleStatus)
496{
497 return CAL_SVC_2M(StatusType, TFN_GETSCHEDULETABLESTATUS, ScheduleTableType, ScheduleTableID, ScheduleTableStatusRefType, ScheduleStatus);
498}
499
500#pragma inline _trap_GetFaultyContext
501LOCAL_INLINE FaultyContextType
502_trap_GetFaultyContext(void)
503{
504 return CAL_SVC_0M(FaultyContextType, TFN_GETFAULTYCONTEXT);
505}
506
507#pragma inline _trap_ioc_send_generic
508LOCAL_INLINE Std_ReturnType
509_trap_ioc_send_generic(IocType IocWrapperId, const void *in)
510{
511 return CAL_SVC_2M(Std_ReturnType, TFN_IOC_SEND_GENERIC, IocType, IocWrapperId, const void *, in);
512}
513
514#pragma inline _trap_ioc_write_generic
515LOCAL_INLINE Std_ReturnType
516_trap_ioc_write_generic(IocType IocWrapperId, const void *in)
517{
518 return CAL_SVC_2M(Std_ReturnType, TFN_IOC_WRITE_GENERIC, IocType, IocWrapperId, const void *, in);
519}
520
521#pragma inline _trap_ioc_receive_generic
522LOCAL_INLINE Std_ReturnType
523_trap_ioc_receive_generic(IocType IocId, void *out)
524{
525 return CAL_SVC_2M(Std_ReturnType, TFN_IOC_RECEIVE_GENERIC, IocType, IocId, void *, out);
526}
527
528#pragma inline _trap_ioc_read_generic
529LOCAL_INLINE Std_ReturnType
530_trap_ioc_read_generic(IocType IocId, void *out)
531{
532 return CAL_SVC_2M(Std_ReturnType, TFN_IOC_READ_GENERIC, IocType, IocId, void *, out);
533}
534
535#pragma inline _trap_ioc_empty_queue_generic
536LOCAL_INLINE Std_ReturnType
537_trap_ioc_empty_queue_generic(IocType IocId)
538{
539 return CAL_SVC_1M(Std_ReturnType, TFN_IOC_EMPTY_QUEUE_GENERIC, IocType, IocId);
540}
541
542#pragma inline _trap_AllowAccess
543LOCAL_INLINE StatusType
544_trap_AllowAccess(void)
545{
546 return CAL_SVC_0M(StatusType, TFN_ALLOWACCESS);
547}
548
549#pragma inline _trap_TerminateApplication
550LOCAL_INLINE StatusType
551_trap_TerminateApplication(ApplicationType Application, RestartType RestartOption)
552{
553 return CAL_SVC_2M(StatusType, TFN_TERMINATEAPPLICATION, ApplicationType, Application, RestartType, RestartOption);
554}
555
556#endif /* TOPPERS_MACRO_ONLY */
557
558#endif /* TOPPERS_TOOL_SVC_H */
Note: See TracBrowser for help on using the repository browser.