HPGCC3 Documentation 3.0 R003

syscall.h

Go to the documentation of this file.
00001 //& *** (c) 2006-2011 The HPGCC3 Team ***
00002 //& Claudio Lapilli
00003 //& Ingo Blank
00004 //&
00005 //& This file is licensed under the terms and conditions of the
00006 //& HPGCC3 license that is included with the source distribution.
00007 //& *** (c) 2006-2011 The HPGCC3 Team ***
00008 
00009 
00010 //do not edit this file
00011 
00012 // definition of kernel functions
00013 #ifndef __SYSCALL_H
00014 #define __SYSCALL_H
00015 #include <kos.h>
00016 
00017 
00018 
00019 // define syscall entry 000-099
00020 #define ReserveForTaskScheduler 0
00021 #define ResetEntry              1
00022 #define ScheduleTaskEntry       10
00023 #define CreateMutexEntry        11
00024 #define SystemPowerManagerEntry 12
00025 #define LCDGetContrastEntry     13
00026 #define TaskPowerOffEntry       14
00027 
00028 #define CheckBatteryEntry       16
00029 #define GetDisplayBufferEntry   17
00030 #define GetKeyFocusEntry        18
00031 
00032 #define DeviceSdInitEntry       19
00033 #define GetUsbConnectStatusEntry    20
00034 #define GetSDConnectStatusEntry     21
00035 
00036 #define GetLastErrorEntry         22
00037 #define LcdGetLineEntry         23
00038 #define GetSysTickTimeEntry     24
00039 #define GetCurrentTaskEntry        25
00040 
00041 #define ClearLcdEntry            26
00042 #define GetSerialEntry            27
00043 
00044 #define    CheckBeepEndEntry        28
00045 #define    StopBeepEntry            29
00046 #define    GetCPUSpeed                30
00047 
00048 // define syscall entry 100-199
00049 #define freeEntry               101
00050 #define KillTaskEntry           102
00051 #define GetTaskPriorityEntry    103
00052 #define SuspendTaskEntry        104
00053 #define ResumeTaskEntry         105
00054 #define WakeupTaskEntry         106
00055 #define RemoveMutexEntry        107
00056 #define ReleaseMutexEntry       108
00057 #define CheckMutexEntry         109
00058 #define RemoveSemaphoreEntry    110
00059 #define ReleaseSemaphoreEntry   111
00060 #define CheckSemaphoreEntry     112
00061 #define RemoveEventEntry        113
00062 #define SetEventEntry           114
00063 #define ClearEventEntry         115
00064 #define PulseEventEntry         116
00065 #define CheckEventEntry         117
00066 #define GetMessageEntry         118
00067 #define PeekMessageEntry        119
00068 #define SetTimerEntry           120
00069 #define ClearTimerEntry         121
00070 #define SetAlarmEntry           122
00071 #define ClearAlarmEntry         123
00072 
00073 #define closeEntry              124
00074 #define GetRTCTimeEntry         125
00075 #define SetRTCTimeEntry         126
00076 #define LCDSetContrastEntry     127
00077 #define SetKeyFocusEntry        128
00078 #define PutKeyEntry             129
00079 #define GetKeyMatrixEntry       130
00080 #define SetLastErrorEntry        131
00081 #define ReadSpecialTimerCountEntry  132
00082 #define StartSpecialTimerEntry  133
00083 #define StopSpecialTimerEntry   134
00084 #define SelfTestEntry           135
00085 #define DevicePowerOffEntry     136
00086 #define DevicePowerOnEntry      137
00087 
00088 #define KeyMessageMatrixEntry   138
00089 
00090 //lcd refresh interrupt entry
00091 #define LcdRefreshEntry           139
00092 #define LcdRefreshSwitchEntry    140
00093 
00094 // define syscall entry 200-299
00095 #define mallocEntry             201
00096 #define SetTaskPriorityEntry    202
00097 #define DelayTaskEntry          203
00098 #define CreateSemaphoreEntry    204
00099 #define CreateEventEntry        205
00100 #define WaitEventSetEntry       206
00101 #define SendMessageEntry        207
00102 #define PostMessageEntry        208
00103 
00104 #define openEntry               209
00105 
00106 #define SetSpecialTimerHandleEntry  211
00107 #define SetSpecialTimerCountEntry   212
00108 
00109 #define DeviceSdReadSectorEntry 213
00110 #define DeviceSdWriteSectorEntry 214
00111 
00112 #define SystemPowerOffEntry     215
00113 #define CheckMemEntry           216
00114 
00115 #define controlEntry            217
00116 
00117 #define GetFuncEntry            218
00118 #define SetCPUFreqEntry         219
00119 
00120 // define syscall entry 300-399
00121 #define GetMutexEntry           301
00122 #define GetSemaphoreEntry       302
00123 
00124 #define beepEntry               305
00125 
00126 #define PutStringEntry            306
00127 #define PutHexNumberEntry        307
00128 
00129 // define syscall entry 400-499
00130 #define CreateTaskEntry         401
00131 
00132 #define readEntry               402
00133 #define writeEntry              403
00134 #define PutDecNumberEntry        404
00135 #define Num2StringEntry            405
00136 
00137 // define syscall entry 500-599
00138 
00139 // define syscall entry 600-699
00140 
00141 // define syscall entry 700-799
00142 
00143 
00144 // sys call functions
00145 
00146 U32 SysCall(U32 index);
00147 U32 syscallArg0(U32 index);
00148 U32 syscallArg1(U32 index, U32 arg1);
00149 U32 syscallArg2(U32 index, U32 arg1, U32 arg2);
00150 U32 syscallArg3(U32 index, U32 arg1, U32 arg2, U32 arg3);
00151 U32 syscallArg4(U32 index, U32 arg1, U32 arg2, U32 arg3, U32 arg4);
00152 U32 syscallArg5(U32 index, U32 arg1, U32 arg2, U32 arg3, U32 arg4, U32 arg5);
00153 U32 syscallArg6(U32 index, U32 arg1, U32 arg2, U32 arg3, U32 arg4, U32 arg5, U32 arg6);
00154 U32 syscallArg7(U32 index, U32 arg1, U32 arg2, U32 arg3, U32 arg4, U32 arg5, U32 arg6, U32 arg7);
00155 
00156 #endif