[f3f06f79] | 1 | -- |
---|
| 2 | -- RTEMS / Specification |
---|
| 3 | -- |
---|
| 4 | -- DESCRIPTION: |
---|
| 5 | -- |
---|
| 6 | -- This package provides the interface to the RTEMS API. |
---|
| 7 | -- |
---|
| 8 | -- DEPENDENCIES: |
---|
| 9 | -- |
---|
| 10 | -- |
---|
| 11 | -- |
---|
[d348ad96] | 12 | -- COPYRIGHT (c) 1997. |
---|
[f3f06f79] | 13 | -- On-Line Applications Research Corporation (OAR). |
---|
| 14 | -- |
---|
[d348ad96] | 15 | -- The license and distribution terms for this file may in |
---|
| 16 | -- the file LICENSE in this distribution or at |
---|
| 17 | -- http://www.OARcorp.com/rtems/license.html. |
---|
| 18 | -- |
---|
| 19 | -- $Id$ |
---|
| 20 | -- |
---|
[f3f06f79] | 21 | |
---|
| 22 | with System; |
---|
[a6b44a8a] | 23 | with System.Storage_Elements; use System.Storage_Elements; |
---|
[f3f06f79] | 24 | with Interfaces; |
---|
| 25 | with Interfaces.C; |
---|
| 26 | |
---|
| 27 | package RTEMS is |
---|
| 28 | |
---|
[d348ad96] | 29 | Structure_Alignment : constant := 8; |
---|
[a6b44a8a] | 30 | |
---|
[f3f06f79] | 31 | -- |
---|
| 32 | -- RTEMS Base Types |
---|
| 33 | -- |
---|
| 34 | |
---|
| 35 | subtype Unsigned8 is Interfaces.Unsigned_8; |
---|
| 36 | subtype Unsigned16 is Interfaces.Unsigned_16; |
---|
| 37 | subtype Unsigned32 is Interfaces.Unsigned_32; |
---|
| 38 | |
---|
| 39 | type Unsigned32_Pointer is access all RTEMS.Unsigned32; |
---|
| 40 | type Unsigned16_Pointer is access all RTEMS.Unsigned16; |
---|
| 41 | type Unsigned8_Pointer is access all RTEMS.Unsigned8; |
---|
| 42 | |
---|
| 43 | subtype Boolean is RTEMS.Unsigned32; |
---|
| 44 | subtype Address is System.Address; |
---|
| 45 | subtype Single is Interfaces.C.C_float; |
---|
| 46 | subtype Double is Interfaces.C.Double; |
---|
| 47 | |
---|
| 48 | -- |
---|
| 49 | -- The following define the size of each of the base types in |
---|
| 50 | -- both bits and system units. |
---|
| 51 | -- |
---|
| 52 | |
---|
| 53 | Unsigned8_Bits : constant := 7; |
---|
| 54 | Unsigned16_Bits : constant := 15; |
---|
| 55 | Unsigned32_Bits : constant := 31; |
---|
| 56 | Boolean_Bits : constant := 31; |
---|
| 57 | Address_Bits : constant := 31; |
---|
| 58 | Single_Bits : constant := 31; |
---|
| 59 | Double_Bits : constant := 63; |
---|
| 60 | |
---|
| 61 | Unsigned8_Units : constant := 1; |
---|
| 62 | Unsigned16_Units : constant := 2; |
---|
| 63 | Unsigned32_Units : constant := 4; |
---|
| 64 | Boolean_Units : constant := 4; |
---|
| 65 | Address_Units : constant := 4; |
---|
| 66 | Single_Units : constant := 4; |
---|
| 67 | Double_Units : constant := 8; |
---|
| 68 | |
---|
[a6b44a8a] | 69 | Null_Address : constant RTEMS.Address := |
---|
| 70 | System.Storage_Elements.To_Address(0); |
---|
| 71 | |
---|
[87e951a2] | 72 | True : constant RTEMS.Boolean := 1; |
---|
| 73 | False : constant RTEMS.Boolean := 0; |
---|
| 74 | |
---|
[f3f06f79] | 75 | -- More Types |
---|
| 76 | -- |
---|
| 77 | |
---|
| 78 | subtype Name is RTEMS.Unsigned32; |
---|
| 79 | subtype ID is RTEMS.Unsigned32; |
---|
| 80 | subtype Interval is RTEMS.Unsigned32; |
---|
| 81 | subtype Attribute is RTEMS.Unsigned32; |
---|
| 82 | subtype Mode is RTEMS.Unsigned32; |
---|
| 83 | subtype Option is RTEMS.Unsigned32; |
---|
| 84 | subtype Task_Priority is RTEMS.Unsigned32; |
---|
[d348ad96] | 85 | subtype Notepad_Index is RTEMS.Unsigned32 range 0 .. 15; |
---|
[f3f06f79] | 86 | |
---|
| 87 | subtype Event_Set is RTEMS.Unsigned32; |
---|
| 88 | subtype Signal_Set is RTEMS.Unsigned32; |
---|
| 89 | subtype Debug_Set is RTEMS.Unsigned32; |
---|
| 90 | subtype Device_Major_Number is RTEMS.Unsigned32; |
---|
| 91 | subtype Device_Minor_Number is RTEMS.Unsigned32; |
---|
| 92 | subtype Vector_Number is RTEMS.Unsigned32; |
---|
| 93 | subtype ISR_Level is RTEMS.Unsigned32; |
---|
| 94 | |
---|
| 95 | subtype Node is RTEMS.Unsigned32; |
---|
| 96 | |
---|
| 97 | -- |
---|
| 98 | -- Task Related Types |
---|
| 99 | -- XXXX fix this |
---|
| 100 | subtype Task_Argument is RTEMS.Unsigned32; |
---|
| 101 | type Task_Argument_PTR is access all Task_Argument; |
---|
| 102 | |
---|
| 103 | -- XXXX fix this |
---|
| 104 | subtype TCB is RTEMS.Unsigned32; |
---|
| 105 | type TCB_Pointer is access all RTEMS.TCB; |
---|
| 106 | |
---|
| 107 | subtype Task_States is RTEMS.Unsigned32; |
---|
| 108 | |
---|
| 109 | type Task_Entry is access procedure ( |
---|
| 110 | Argument : RTEMS.Unsigned32 |
---|
| 111 | ); |
---|
| 112 | |
---|
| 113 | -- |
---|
| 114 | -- Clock and Time of Day Types |
---|
| 115 | -- |
---|
| 116 | |
---|
| 117 | type Time_Of_Day is |
---|
| 118 | record |
---|
| 119 | Year : RTEMS.Unsigned32; -- year, A.D. |
---|
| 120 | Month : RTEMS.Unsigned32; -- month, 1 .. 12 |
---|
| 121 | Day : RTEMS.Unsigned32; -- day, 1 .. 31 |
---|
| 122 | Hour : RTEMS.Unsigned32; -- hour, 0 .. 23 |
---|
| 123 | Minute : RTEMS.Unsigned32; -- minute, 0 .. 59 |
---|
| 124 | Second : RTEMS.Unsigned32; -- second, 0 .. 59 |
---|
| 125 | Ticks : RTEMS.Unsigned32; -- elapsed ticks between seconds |
---|
| 126 | end record; |
---|
| 127 | |
---|
| 128 | type Clock_Time_Value is |
---|
| 129 | record |
---|
| 130 | Seconds : RTEMS.Unsigned32; |
---|
| 131 | Microseconds : RTEMS.Unsigned32; |
---|
| 132 | end record; |
---|
| 133 | |
---|
| 134 | type Clock_Get_Options is ( |
---|
| 135 | Clock_Get_TOD, |
---|
| 136 | Clock_Get_Seconds_Since_Epoch, |
---|
| 137 | Clock_Get_Ticks_Since_Boot, |
---|
| 138 | Clock_Get_Ticks_Per_Seconds, |
---|
| 139 | Clock_Get_Time_Value |
---|
| 140 | ); |
---|
| 141 | |
---|
| 142 | -- |
---|
| 143 | -- Device Driver Entry Prototype |
---|
| 144 | -- |
---|
| 145 | |
---|
| 146 | type Device_Driver_Entry is access function ( |
---|
| 147 | Major : in RTEMS.Device_Major_Number; |
---|
| 148 | Minor : in RTEMS.Device_Major_Number; |
---|
| 149 | Argument : in RTEMS.Unsigned32; |
---|
| 150 | ID : in RTEMS.Unsigned32 |
---|
| 151 | ) return RTEMS.Unsigned32; |
---|
| 152 | |
---|
| 153 | type Driver_Address_Table_Entry is |
---|
| 154 | record |
---|
| 155 | Initialization : RTEMS.Device_Driver_Entry; |
---|
| 156 | Open : RTEMS.Device_Driver_Entry; |
---|
| 157 | Close : RTEMS.Device_Driver_Entry; |
---|
| 158 | Read : RTEMS.Device_Driver_Entry; |
---|
| 159 | Write : RTEMS.Device_Driver_Entry; |
---|
| 160 | Control : RTEMS.Device_Driver_Entry; |
---|
| 161 | end record; |
---|
| 162 | |
---|
| 163 | type Driver_Address_Table is array ( RTEMS.Unsigned32 |
---|
| 164 | range 1 .. RTEMS.Unsigned32'Last ) of RTEMS.Driver_Address_Table_Entry; |
---|
| 165 | |
---|
| 166 | type Driver_Address_Table_Pointer is access all Driver_Address_Table; |
---|
| 167 | |
---|
| 168 | type Driver_Name_t is |
---|
| 169 | record |
---|
| 170 | Device_Name : RTEMS.Address; |
---|
| 171 | Device_Name_Length : RTEMS.Unsigned32; |
---|
| 172 | Major : RTEMS.Device_Major_Number; |
---|
| 173 | Minor : RTEMS.Device_Minor_Number; |
---|
[d766b7fd] | 174 | |
---|
[f3f06f79] | 175 | end record; |
---|
| 176 | |
---|
| 177 | -- |
---|
| 178 | -- Ident Options |
---|
| 179 | -- |
---|
| 180 | |
---|
| 181 | Search_All_Nodes : constant RTEMS.Node := 0; |
---|
| 182 | |
---|
| 183 | -- |
---|
| 184 | -- Options |
---|
| 185 | -- |
---|
| 186 | |
---|
| 187 | Default_Options : constant RTEMS.Option := 16#0000#; |
---|
| 188 | |
---|
| 189 | Wait : constant RTEMS.Option := 16#0000#; |
---|
| 190 | No_Wait : constant RTEMS.Option := 16#0001#; |
---|
| 191 | |
---|
| 192 | Event_All : constant RTEMS.Option := 16#0000#; |
---|
| 193 | Event_Any : constant RTEMS.Option := 16#0002#; |
---|
| 194 | |
---|
| 195 | -- |
---|
| 196 | -- Mode constants |
---|
| 197 | -- |
---|
| 198 | |
---|
| 199 | Default_Modes : constant RTEMS.Mode := 16#0000#; |
---|
| 200 | |
---|
[d766b7fd] | 201 | All_Mode_Masks : constant RTEMS.Mode := 16#0000_ffff#; |
---|
| 202 | Current_Mode : constant RTEMS.Mode := 16#0000_0000#; |
---|
| 203 | Preempt_Mask : constant RTEMS.Mode := 16#0000_0100#; |
---|
| 204 | Timeslice_Mask : constant RTEMS.Mode := 16#0000_0200#; |
---|
| 205 | ASR_Mask : constant RTEMS.Mode := 16#0000_0400#; |
---|
[7e3dcbc] | 206 | Interrupt_Mask : RTEMS.Mode; |
---|
[d766b7fd] | 207 | Preempt : constant RTEMS.Mode := 16#0000_0000#; |
---|
| 208 | No_Preempt : constant RTEMS.Mode := 16#0000_0100#; |
---|
| 209 | No_Timeslice : constant RTEMS.Mode := 16#0000_0000#; |
---|
| 210 | Timeslice : constant RTEMS.Mode := 16#0000_0200#; |
---|
| 211 | ASR : constant RTEMS.Mode := 16#0000_0000#; |
---|
| 212 | No_ASR : constant RTEMS.Mode := 16#0000_0400#; |
---|
| 213 | |
---|
[7e3dcbc] | 214 | pragma Import (C, Interrupt_Mask, "rtems_interrupt_mask"); |
---|
| 215 | |
---|
[f3f06f79] | 216 | -- |
---|
| 217 | -- Attribute constants |
---|
| 218 | -- |
---|
| 219 | |
---|
[a6b44a8a] | 220 | Default_Attributes : constant RTEMS.Attribute := 16#00000000#; |
---|
| 221 | No_Floating_Point : constant RTEMS.Attribute := 16#00000000#; |
---|
| 222 | Floating_Point : constant RTEMS.Attribute := 16#00000001#; |
---|
| 223 | Local : constant RTEMS.Attribute := 16#00000000#; |
---|
| 224 | Global : constant RTEMS.Attribute := 16#00000002#; |
---|
| 225 | FIFO : constant RTEMS.Attribute := 16#00000000#; |
---|
| 226 | Priority : constant RTEMS.Attribute := 16#00000004#; |
---|
| 227 | Counting_Semaphore : constant RTEMS.Attribute := 16#00000000#; |
---|
| 228 | Binary_Semaphore : constant RTEMS.Attribute := 16#00000010#; |
---|
| 229 | No_Inherit_Priority : constant RTEMS.Attribute := 16#00000000#; |
---|
| 230 | Inherit_Priority : constant RTEMS.Attribute := 16#00000020#; |
---|
| 231 | No_Priority_Ceiling : constant RTEMS.Attribute := 16#00000000#; |
---|
| 232 | Priority_Ceiling : constant RTEMS.Attribute := 16#00000040#; |
---|
[f3f06f79] | 233 | |
---|
| 234 | function Interrupt_Level ( |
---|
| 235 | Level : in RTEMS.Unsigned32 |
---|
| 236 | ) return RTEMS.Attribute; |
---|
[7e3dcbc] | 237 | pragma Import (C, Interrupt_Level, "rtems_interrupt_level_attribute"); |
---|
| 238 | |
---|
[d766b7fd] | 239 | |
---|
| 240 | Minimum_Stack_Size : RTEMS.Unsigned32; |
---|
| 241 | pragma Import (C, Minimum_Stack_Size, "rtems_minimum_stack_size"); |
---|
| 242 | |
---|
| 243 | |
---|
[f3f06f79] | 244 | -- |
---|
| 245 | -- Notepad index constants |
---|
| 246 | -- |
---|
| 247 | |
---|
| 248 | Notepad_0 : constant RTEMS.Unsigned32 := 0; |
---|
| 249 | Notepad_1 : constant RTEMS.Unsigned32 := 1; |
---|
| 250 | Notepad_2 : constant RTEMS.Unsigned32 := 2; |
---|
| 251 | Notepad_3 : constant RTEMS.Unsigned32 := 3; |
---|
| 252 | Notepad_4 : constant RTEMS.Unsigned32 := 4; |
---|
| 253 | Notepad_5 : constant RTEMS.Unsigned32 := 5; |
---|
| 254 | Notepad_6 : constant RTEMS.Unsigned32 := 6; |
---|
| 255 | Notepad_7 : constant RTEMS.Unsigned32 := 7; |
---|
| 256 | Notepad_8 : constant RTEMS.Unsigned32 := 8; |
---|
| 257 | Notepad_9 : constant RTEMS.Unsigned32 := 9; |
---|
| 258 | Notepad_10 : constant RTEMS.Unsigned32 := 10; |
---|
| 259 | Notepad_11 : constant RTEMS.Unsigned32 := 11; |
---|
| 260 | Notepad_12 : constant RTEMS.Unsigned32 := 12; |
---|
| 261 | Notepad_13 : constant RTEMS.Unsigned32 := 13; |
---|
| 262 | Notepad_14 : constant RTEMS.Unsigned32 := 14; |
---|
| 263 | Notepad_15 : constant RTEMS.Unsigned32 := 15; |
---|
| 264 | |
---|
| 265 | -- |
---|
| 266 | -- Miscellaneous |
---|
| 267 | -- |
---|
| 268 | |
---|
| 269 | No_Timeout : constant RTEMS.Interval := 0; |
---|
| 270 | Self : constant RTEMS.ID := 0; |
---|
| 271 | Period_Status : constant RTEMS.Interval := 0; |
---|
| 272 | Yield_Processor : constant RTEMS.Interval := 0; |
---|
| 273 | Current_Priority : constant RTEMS.Task_Priority := 0; |
---|
[d348ad96] | 274 | No_Priority : constant RTEMS.Task_Priority := 0; |
---|
[f3f06f79] | 275 | |
---|
| 276 | |
---|
| 277 | -- |
---|
| 278 | -- Extension Callouts and Table |
---|
| 279 | -- |
---|
| 280 | |
---|
| 281 | type Thread_Create_Extension is access procedure ( |
---|
| 282 | Current_Task : in RTEMS.TCB_Pointer; |
---|
| 283 | New_Task : in RTEMS.TCB_Pointer |
---|
| 284 | ); |
---|
| 285 | |
---|
| 286 | type Thread_Start_Extension is access procedure ( |
---|
| 287 | Current_Task : in RTEMS.TCB_Pointer; |
---|
| 288 | Started_Task : in RTEMS.TCB_Pointer |
---|
| 289 | ); |
---|
| 290 | |
---|
| 291 | type Thread_Restart_Extension is access procedure ( |
---|
| 292 | Current_Task : in RTEMS.TCB_Pointer; |
---|
| 293 | Restarted_Task : in RTEMS.TCB_Pointer |
---|
| 294 | ); |
---|
| 295 | |
---|
| 296 | type Thread_Delete_Extension is access procedure ( |
---|
| 297 | Current_Task : in RTEMS.TCB_Pointer; |
---|
| 298 | Deleted_Task : in RTEMS.TCB_Pointer |
---|
| 299 | ); |
---|
| 300 | |
---|
| 301 | type Thread_Switch_Extension is access procedure ( |
---|
| 302 | Current_Task : in RTEMS.TCB_Pointer; |
---|
| 303 | Heir_Task : in RTEMS.TCB_Pointer |
---|
| 304 | ); |
---|
| 305 | |
---|
| 306 | type Thread_Post_Switch_Extension is access procedure ( |
---|
| 307 | Current_Task : in RTEMS.TCB_Pointer |
---|
| 308 | ); |
---|
| 309 | |
---|
| 310 | type Thread_Begin_Extension is access procedure ( |
---|
| 311 | Current_Task : in RTEMS.TCB_Pointer |
---|
| 312 | ); |
---|
| 313 | |
---|
| 314 | type Thread_Exitted_Extension is access procedure ( |
---|
| 315 | Current_Task : in RTEMS.TCB_Pointer |
---|
| 316 | ); |
---|
| 317 | |
---|
| 318 | type Fatal_Error_Extension is access procedure ( |
---|
| 319 | Error : in RTEMS.Unsigned32 |
---|
| 320 | ); |
---|
| 321 | |
---|
[7e3dcbc] | 322 | type Extensions_Table is |
---|
[f3f06f79] | 323 | record |
---|
| 324 | Thread_Create : RTEMS.Thread_Create_Extension; |
---|
| 325 | Thread_Start : RTEMS.Thread_Start_Extension; |
---|
| 326 | Thread_Restart : RTEMS.Thread_Restart_Extension; |
---|
| 327 | Thread_Delete : RTEMS.Thread_Delete_Extension; |
---|
| 328 | Thread_Switch : RTEMS.Thread_Switch_Extension; |
---|
| 329 | Thread_Post_Switch : RTEMS.Thread_Post_Switch_Extension; |
---|
| 330 | Thread_Begin : RTEMS.Thread_Begin_Extension; |
---|
| 331 | Thread_Exitted : RTEMS.Thread_Exitted_Extension; |
---|
| 332 | Fatal : RTEMS.Fatal_Error_Extension; |
---|
| 333 | end record; |
---|
| 334 | |
---|
| 335 | type Extensions_Table_Pointer is access all Extensions_Table; |
---|
| 336 | |
---|
| 337 | -- |
---|
| 338 | -- The following type define a pointer to a watchdog/timer service routine. |
---|
| 339 | -- |
---|
| 340 | |
---|
| 341 | type Timer_Service_Routine is access procedure ( |
---|
| 342 | ID : in RTEMS.ID; |
---|
| 343 | User_Data : in RTEMS.Address |
---|
| 344 | ); |
---|
| 345 | |
---|
| 346 | -- |
---|
| 347 | -- The following type define a pointer to a signal service routine. |
---|
| 348 | -- |
---|
| 349 | |
---|
| 350 | type ASR_Handler is access procedure ( |
---|
| 351 | Signals : in RTEMS.Signal_Set |
---|
| 352 | ); |
---|
| 353 | |
---|
| 354 | -- |
---|
| 355 | -- The following type defines the status information returned |
---|
| 356 | -- about a period. |
---|
| 357 | -- |
---|
| 358 | |
---|
| 359 | type Rate_Monotonic_Period_States is ( |
---|
| 360 | Inactive, -- off chain, never initialized |
---|
| 361 | Owner_Is_Blocking, -- on chain, owner is blocking on it |
---|
| 362 | Active, -- on chain, running continuously |
---|
| 363 | Expired_While_Blocking, -- on chain, expired while owner was was blocking |
---|
| 364 | Expired -- off chain, will be reset by next |
---|
| 365 | -- rtems_rate_monotonic_period |
---|
| 366 | ); |
---|
| 367 | |
---|
| 368 | for Rate_Monotonic_Period_States'Size use 32; |
---|
| 369 | |
---|
| 370 | for Rate_Monotonic_Period_States use ( |
---|
| 371 | Inactive => 0, |
---|
| 372 | Owner_Is_Blocking => 1, |
---|
| 373 | Active => 2, |
---|
| 374 | Expired_While_Blocking => 3, |
---|
| 375 | Expired => 4 |
---|
| 376 | ); |
---|
[d766b7fd] | 377 | |
---|
[f3f06f79] | 378 | type Rate_Monotonic_Period_Status is |
---|
| 379 | record |
---|
| 380 | State : RTEMS.Rate_Monotonic_Period_States; |
---|
| 381 | Ticks_Since_Last_Period : RTEMS.Unsigned32; |
---|
| 382 | Ticks_Executed_Since_Last_Period : RTEMS.Unsigned32; |
---|
| 383 | end record; |
---|
| 384 | |
---|
| 385 | -- |
---|
| 386 | -- Method Completions Status Codes |
---|
| 387 | -- |
---|
| 388 | |
---|
| 389 | type Status_Codes is ( |
---|
| 390 | Successful, -- successful completion |
---|
| 391 | Task_Exitted, -- returned from a task |
---|
| 392 | MP_Not_Configured, -- multiprocessing not configured |
---|
| 393 | Invalid_Name, -- invalid object name |
---|
| 394 | Invalid_ID, -- invalid object id |
---|
| 395 | Too_Many, -- too many |
---|
| 396 | Timeout, -- timed out waiting |
---|
| 397 | Object_Was_Deleted, -- object deleted while waiting |
---|
| 398 | Invalid_Size, -- specified size was invalid |
---|
| 399 | Invalid_Address, -- address specified is invalid |
---|
| 400 | Invalid_Number, -- number was invalid |
---|
| 401 | Not_Defined, -- item has not been initialized |
---|
| 402 | Resource_In_Use, -- resources still outstanding |
---|
| 403 | Unsatisfied, -- request not satisfied |
---|
| 404 | Incorrect_State, -- task is in wrong state |
---|
| 405 | Already_Suspended, -- task already in state |
---|
| 406 | Illegal_On_Self, -- illegal on calling task |
---|
| 407 | Illegal_On_Remote_Object, -- illegal for remote object |
---|
| 408 | Called_From_ISR, -- called from wrong environment |
---|
| 409 | Invalid_Priority, -- invalid task priority |
---|
| 410 | Invalid_Clock, -- invalid date/time |
---|
| 411 | Invalid_Node, -- invalid node id |
---|
| 412 | Not_Configured, -- directive not configured |
---|
| 413 | Not_Owner_Of_Resource, -- not owner of resource |
---|
| 414 | Not_Implemented, -- directive not implemented |
---|
| 415 | Internal_Error, -- RTEMS inconsistency detected |
---|
[b47be20] | 416 | No_Memory, -- no memory left in heap |
---|
| 417 | IO_Error, -- driver IO error |
---|
[8959fcc] | 418 | Proxy_Blocking -- internal multiprocessing only |
---|
[f3f06f79] | 419 | ); |
---|
| 420 | |
---|
| 421 | for Status_Codes'Size use 32; |
---|
| 422 | |
---|
| 423 | for Status_Codes use ( |
---|
| 424 | Successful => 0, |
---|
| 425 | Task_Exitted => 1, |
---|
| 426 | MP_Not_Configured => 2, |
---|
| 427 | Invalid_Name => 3, |
---|
| 428 | Invalid_ID => 4, |
---|
| 429 | Too_Many => 5, |
---|
| 430 | Timeout => 6, |
---|
| 431 | Object_Was_Deleted => 7, |
---|
| 432 | Invalid_Size => 8, |
---|
| 433 | Invalid_Address => 9, |
---|
| 434 | Invalid_NumbeR => 10, |
---|
| 435 | Not_Defined => 11, |
---|
| 436 | Resource_In_Use => 12, |
---|
| 437 | Unsatisfied => 13, |
---|
| 438 | Incorrect_State => 14, |
---|
| 439 | Already_Suspended => 15, |
---|
| 440 | Illegal_On_Self => 16, |
---|
| 441 | Illegal_On_Remote_Object => 17, |
---|
| 442 | Called_From_ISR => 18, |
---|
| 443 | Invalid_Priority => 19, |
---|
| 444 | Invalid_Clock => 20, |
---|
| 445 | Invalid_Node => 21, |
---|
| 446 | Not_Configured => 22, |
---|
| 447 | Not_Owner_Of_Resource => 23, |
---|
| 448 | Not_ImplementeD => 24, |
---|
| 449 | Internal_Error => 25, |
---|
[b47be20] | 450 | No_Memory => 26, |
---|
| 451 | IO_Error => 27, |
---|
| 452 | Proxy_Blocking => 28 |
---|
[f3f06f79] | 453 | ); |
---|
| 454 | |
---|
| 455 | -- |
---|
| 456 | -- RTEMS Events |
---|
| 457 | -- |
---|
| 458 | |
---|
[4c3340c] | 459 | Pending_Events : constant RTEMS.Event_Set := 16#0000_0000#; |
---|
| 460 | All_Events : constant RTEMS.Event_Set := 16#FFFF_FFFF#; |
---|
| 461 | Event_0 : constant RTEMS.Event_Set := 16#0000_0001#; |
---|
| 462 | Event_1 : constant RTEMS.Event_Set := 16#0000_0002#; |
---|
| 463 | Event_2 : constant RTEMS.Event_Set := 16#0000_0004#; |
---|
| 464 | Event_3 : constant RTEMS.Event_Set := 16#0000_0008#; |
---|
| 465 | Event_4 : constant RTEMS.Event_Set := 16#0000_0010#; |
---|
| 466 | Event_5 : constant RTEMS.Event_Set := 16#0000_0020#; |
---|
| 467 | Event_6 : constant RTEMS.Event_Set := 16#0000_0040#; |
---|
| 468 | Event_7 : constant RTEMS.Event_Set := 16#0000_0080#; |
---|
| 469 | Event_8 : constant RTEMS.Event_Set := 16#0000_0100#; |
---|
| 470 | Event_9 : constant RTEMS.Event_Set := 16#0000_0200#; |
---|
| 471 | Event_10 : constant RTEMS.Event_Set := 16#0000_0400#; |
---|
| 472 | Event_11 : constant RTEMS.Event_Set := 16#0000_0800#; |
---|
| 473 | Event_12 : constant RTEMS.Event_Set := 16#0000_1000#; |
---|
| 474 | Event_13 : constant RTEMS.Event_Set := 16#0000_2000#; |
---|
| 475 | Event_14 : constant RTEMS.Event_Set := 16#0000_4000#; |
---|
| 476 | Event_15 : constant RTEMS.Event_Set := 16#0000_8000#; |
---|
| 477 | Event_16 : constant RTEMS.Event_Set := 16#0001_0000#; |
---|
| 478 | Event_17 : constant RTEMS.Event_Set := 16#0002_0000#; |
---|
| 479 | Event_18 : constant RTEMS.Event_Set := 16#0004_0000#; |
---|
| 480 | Event_19 : constant RTEMS.Event_Set := 16#0008_0000#; |
---|
| 481 | Event_20 : constant RTEMS.Event_Set := 16#0010_0000#; |
---|
| 482 | Event_21 : constant RTEMS.Event_Set := 16#0020_0000#; |
---|
| 483 | Event_22 : constant RTEMS.Event_Set := 16#0040_0000#; |
---|
| 484 | Event_23 : constant RTEMS.Event_Set := 16#0080_0000#; |
---|
| 485 | Event_24 : constant RTEMS.Event_Set := 16#0100_0000#; |
---|
| 486 | Event_25 : constant RTEMS.Event_Set := 16#0200_0000#; |
---|
| 487 | Event_26 : constant RTEMS.Event_Set := 16#0400_0000#; |
---|
| 488 | Event_27 : constant RTEMS.Event_Set := 16#0800_0000#; |
---|
| 489 | Event_28 : constant RTEMS.Event_Set := 16#1000_0000#; |
---|
| 490 | Event_29 : constant RTEMS.Event_Set := 16#2000_0000#; |
---|
| 491 | Event_30 : constant RTEMS.Event_Set := 16#4000_0000#; |
---|
| 492 | Event_31 : constant RTEMS.Event_Set := 16#8000_0000#; |
---|
[f3f06f79] | 493 | |
---|
[a6b44a8a] | 494 | -- |
---|
| 495 | -- RTEMS Signals |
---|
| 496 | -- |
---|
| 497 | |
---|
| 498 | All_Signals : constant RTEMS.Signal_Set := 16#7FFFFFFF#; |
---|
| 499 | Signal_0 : constant RTEMS.Signal_Set := 16#00000001#; |
---|
| 500 | Signal_1 : constant RTEMS.Signal_Set := 16#00000002#; |
---|
| 501 | Signal_2 : constant RTEMS.Signal_Set := 16#00000004#; |
---|
| 502 | Signal_3 : constant RTEMS.Signal_Set := 16#00000008#; |
---|
| 503 | Signal_4 : constant RTEMS.Signal_Set := 16#00000010#; |
---|
| 504 | Signal_5 : constant RTEMS.Signal_Set := 16#00000020#; |
---|
| 505 | Signal_6 : constant RTEMS.Signal_Set := 16#00000040#; |
---|
| 506 | Signal_7 : constant RTEMS.Signal_Set := 16#00000080#; |
---|
| 507 | Signal_8 : constant RTEMS.Signal_Set := 16#00000100#; |
---|
| 508 | Signal_9 : constant RTEMS.Signal_Set := 16#00000200#; |
---|
| 509 | Signal_10 : constant RTEMS.Signal_Set := 16#00000400#; |
---|
| 510 | Signal_11 : constant RTEMS.Signal_Set := 16#00000800#; |
---|
| 511 | Signal_12 : constant RTEMS.Signal_Set := 16#00001000#; |
---|
| 512 | Signal_13 : constant RTEMS.Signal_Set := 16#00002000#; |
---|
| 513 | Signal_14 : constant RTEMS.Signal_Set := 16#00004000#; |
---|
| 514 | Signal_15 : constant RTEMS.Signal_Set := 16#00008000#; |
---|
| 515 | Signal_16 : constant RTEMS.Signal_Set := 16#00010000#; |
---|
| 516 | Signal_17 : constant RTEMS.Signal_Set := 16#00020000#; |
---|
| 517 | Signal_18 : constant RTEMS.Signal_Set := 16#00040000#; |
---|
| 518 | Signal_19 : constant RTEMS.Signal_Set := 16#00080000#; |
---|
| 519 | Signal_20 : constant RTEMS.Signal_Set := 16#00100000#; |
---|
| 520 | Signal_21 : constant RTEMS.Signal_Set := 16#00200000#; |
---|
| 521 | Signal_22 : constant RTEMS.Signal_Set := 16#00400000#; |
---|
| 522 | Signal_23 : constant RTEMS.Signal_Set := 16#00800000#; |
---|
| 523 | Signal_24 : constant RTEMS.Signal_Set := 16#01000000#; |
---|
| 524 | Signal_25 : constant RTEMS.Signal_Set := 16#02000000#; |
---|
| 525 | Signal_26 : constant RTEMS.Signal_Set := 16#04000000#; |
---|
| 526 | Signal_27 : constant RTEMS.Signal_Set := 16#08000000#; |
---|
| 527 | Signal_28 : constant RTEMS.Signal_Set := 16#10000000#; |
---|
| 528 | Signal_29 : constant RTEMS.Signal_Set := 16#20000000#; |
---|
| 529 | Signal_30 : constant RTEMS.Signal_Set := 16#40000000#; |
---|
| 530 | Signal_31 : constant RTEMS.Signal_Set := 16#80000000#; |
---|
| 531 | |
---|
[f3f06f79] | 532 | -- |
---|
| 533 | -- RTEMS API Configuration Information |
---|
| 534 | -- |
---|
| 535 | |
---|
| 536 | type Initialization_Tasks_Table_Entry is |
---|
| 537 | record |
---|
| 538 | Name : RTEMS.Name; -- task name |
---|
| 539 | Stack_Size : RTEMS.Unsigned32; -- task stack size |
---|
| 540 | Initial_Priority : RTEMS.Task_priority; -- task priority |
---|
| 541 | Attribute_Set : RTEMS.Attribute; -- task attributes |
---|
| 542 | Entry_Point : RTEMS.Task_Entry; -- task entry point |
---|
| 543 | Mode_Set : RTEMS.Mode; -- task initial mode |
---|
| 544 | Argument : RTEMS.Unsigned32; -- task argument |
---|
| 545 | end record; |
---|
| 546 | |
---|
| 547 | type Initialization_Tasks_Table is array ( RTEMS.Unsigned32 range <> ) of |
---|
| 548 | RTEMS.Initialization_Tasks_Table_Entry; |
---|
| 549 | |
---|
| 550 | type Initialization_Tasks_Table_Pointer is access all |
---|
| 551 | Initialization_Tasks_Table; |
---|
| 552 | |
---|
| 553 | type API_Configuration_Table is |
---|
| 554 | record |
---|
| 555 | Maximum_Tasks : RTEMS.Unsigned32; |
---|
| 556 | Maximum_Timers : RTEMS.Unsigned32; |
---|
| 557 | Maximum_Semaphores : RTEMS.Unsigned32; |
---|
| 558 | Maximum_Message_queues : RTEMS.Unsigned32; |
---|
| 559 | Maximum_Partitions : RTEMS.Unsigned32; |
---|
| 560 | Maximum_Regions : RTEMS.Unsigned32; |
---|
| 561 | Maximum_Ports : RTEMS.Unsigned32; |
---|
| 562 | Maximum_Periods : RTEMS.Unsigned32; |
---|
| 563 | Number_Of_Initialization_Tasks : RTEMS.Unsigned32; |
---|
| 564 | User_Initialization_Tasks_Table : |
---|
| 565 | RTEMS.Initialization_Tasks_Table_Pointer; |
---|
| 566 | end record; |
---|
| 567 | |
---|
| 568 | type API_Configuration_Table_Pointer is access all API_Configuration_Table; |
---|
| 569 | |
---|
| 570 | -- |
---|
| 571 | -- RTEMS POSIX API Configuration Information |
---|
| 572 | -- |
---|
| 573 | |
---|
| 574 | type POSIX_Thread_Entry is access procedure ( |
---|
| 575 | Argument : in RTEMS.Address |
---|
| 576 | ); |
---|
| 577 | |
---|
| 578 | type POSIX_Initialization_Threads_Table_Entry is |
---|
| 579 | record |
---|
| 580 | Thread_Entry : RTEMS.POSIX_Thread_Entry; |
---|
| 581 | end record; |
---|
| 582 | |
---|
| 583 | type POSIX_Initialization_Threads_Table is array |
---|
| 584 | ( RTEMS.Unsigned32 range <> ) of |
---|
| 585 | RTEMS.POSIX_Initialization_Threads_Table_Entry; |
---|
| 586 | |
---|
| 587 | type POSIX_Initialization_Threads_Table_Pointer is access all |
---|
| 588 | POSIX_Initialization_Threads_Table; |
---|
[d766b7fd] | 589 | |
---|
[f3f06f79] | 590 | type POSIX_API_Configuration_Table_Entry is |
---|
| 591 | record |
---|
| 592 | Maximum_Threads : Interfaces.C.Int; |
---|
| 593 | Maximum_Mutexes : Interfaces.C.Int; |
---|
| 594 | Maximum_Condition_Variables : Interfaces.C.Int; |
---|
| 595 | Maximum_Keys : Interfaces.C.Int; |
---|
| 596 | Maximum_Queued_Signals : Interfaces.C.Int; |
---|
| 597 | Number_Of_Initialization_Tasks : Interfaces.C.Int; |
---|
[d766b7fd] | 598 | User_Initialization_Tasks_Table : |
---|
[f3f06f79] | 599 | RTEMS.POSIX_Initialization_Threads_Table_Pointer; |
---|
| 600 | end record; |
---|
| 601 | |
---|
| 602 | type POSIX_API_Configuration_Table is array ( RTEMS.Unsigned32 range <> ) of |
---|
| 603 | RTEMS.POSIX_API_Configuration_Table_Entry; |
---|
| 604 | |
---|
| 605 | type POSIX_API_Configuration_Table_Pointer is access all |
---|
| 606 | RTEMS.POSIX_API_Configuration_Table; |
---|
| 607 | |
---|
| 608 | -- |
---|
| 609 | -- MPCI Information include MPCI Configuration |
---|
| 610 | -- |
---|
| 611 | |
---|
| 612 | type Configuration_Table_Pointer; |
---|
| 613 | |
---|
| 614 | type MP_Packet_Classes is ( |
---|
| 615 | MP_PACKET_MPCI_INTERNAL, |
---|
| 616 | MP_PACKET_TASKS, |
---|
| 617 | MP_PACKET_MESSAGE_QUEUE, |
---|
| 618 | MP_PACKET_SEMAPHORE, |
---|
| 619 | MP_PACKET_PARTITION, |
---|
| 620 | MP_PACKET_REGION, |
---|
| 621 | MP_PACKET_EVENT, |
---|
| 622 | MP_PACKET_SIGNAL |
---|
| 623 | ); |
---|
| 624 | |
---|
| 625 | for MP_Packet_Classes use ( |
---|
| 626 | MP_PACKET_MPCI_INTERNAL => 0, |
---|
| 627 | MP_PACKET_TASKS => 1, |
---|
| 628 | MP_PACKET_MESSAGE_QUEUE => 2, |
---|
| 629 | MP_PACKET_SEMAPHORE => 3, |
---|
| 630 | MP_PACKET_PARTITION => 4, |
---|
| 631 | MP_PACKET_REGION => 5, |
---|
| 632 | MP_PACKET_EVENT => 6, |
---|
| 633 | MP_PACKET_SIGNAL => 7 |
---|
| 634 | ); |
---|
| 635 | |
---|
| 636 | type Packet_Prefix is |
---|
| 637 | record |
---|
| 638 | The_Class : RTEMS.MP_Packet_Classes; |
---|
| 639 | ID : RTEMS.ID; |
---|
| 640 | Source_TID : RTEMS.ID; |
---|
| 641 | Source_Priority : RTEMS.Task_Priority; |
---|
| 642 | Return_Code : RTEMS.Unsigned32; |
---|
| 643 | Length : RTEMS.Unsigned32; |
---|
| 644 | To_Convert : RTEMS.Unsigned32; |
---|
| 645 | Timeout : RTEMS.Interval; |
---|
| 646 | end record; |
---|
| 647 | |
---|
| 648 | type Packet_Prefix_Pointer is access all Packet_Prefix; |
---|
| 649 | |
---|
| 650 | type MPCI_Initialization_Entry is access procedure ( |
---|
| 651 | Configuration : in RTEMS.Configuration_Table_Pointer |
---|
| 652 | ); |
---|
| 653 | |
---|
| 654 | type MPCI_Get_Packet_Entry is access procedure ( |
---|
| 655 | Packet : access RTEMS.Packet_Prefix_Pointer |
---|
| 656 | ); |
---|
| 657 | |
---|
| 658 | type MPCI_Return_Packet_Entry is access procedure ( |
---|
| 659 | Packet : in RTEMS.Packet_Prefix_Pointer |
---|
| 660 | ); |
---|
| 661 | |
---|
| 662 | type MPCI_Send_Entry is access procedure ( |
---|
| 663 | Packet : in RTEMS.Packet_Prefix_Pointer |
---|
| 664 | ); |
---|
| 665 | |
---|
| 666 | type MPCI_Receive_Entry is access procedure ( |
---|
| 667 | Packet : access RTEMS.Packet_Prefix_Pointer |
---|
| 668 | ); |
---|
| 669 | |
---|
| 670 | type MPCI_Table is |
---|
| 671 | record |
---|
| 672 | Default_Timeout : RTEMS.Unsigned32; -- in ticks |
---|
| 673 | Maximum_Packet_Size : RTEMS.Unsigned32; |
---|
| 674 | Initialization : RTEMS.MPCI_Initialization_Entry; |
---|
| 675 | Get_Packet : RTEMS.MPCI_Get_Packet_Entry; |
---|
| 676 | Return_Packet : RTEMS.MPCI_Return_Packet_Entry; |
---|
| 677 | Send : RTEMS.MPCI_Send_Entry; |
---|
| 678 | Receive : RTEMS.MPCI_Receive_Entry; |
---|
| 679 | end record; |
---|
| 680 | |
---|
| 681 | type MPCI_Table_Pointer is access all MPCI_Table; |
---|
| 682 | |
---|
| 683 | -- |
---|
| 684 | -- Configuration Information |
---|
| 685 | -- |
---|
| 686 | |
---|
| 687 | type Multiprocessing_Table is |
---|
| 688 | record |
---|
| 689 | Node : RTEMS.Unsigned32; |
---|
| 690 | Maximum_Nodes : RTEMS.Unsigned32; |
---|
| 691 | Maximum_Global_Objects : RTEMS.Unsigned32; |
---|
| 692 | Maximum_Proxies : RTEMS.Unsigned32; |
---|
| 693 | User_MPCI_Table : RTEMS.MPCI_Table_Pointer; |
---|
| 694 | end record; |
---|
| 695 | |
---|
| 696 | type Multiprocessing_Table_Pointer is access all Multiprocessing_Table; |
---|
| 697 | |
---|
| 698 | type Configuration_Table is |
---|
| 699 | record |
---|
| 700 | Work_Space_Start : RTEMS.Address; |
---|
| 701 | Work_Space_Size : RTEMS.Unsigned32; |
---|
| 702 | Maximum_Extensions : RTEMS.Unsigned32; |
---|
| 703 | Microseconds_Per_Tick : RTEMS.Unsigned32; |
---|
| 704 | Ticks_Per_Timeslice : RTEMS.Unsigned32; |
---|
| 705 | Maximum_Devices : RTEMS.Unsigned32; |
---|
| 706 | Number_Of_Device_Drivers : RTEMS.Unsigned32; |
---|
| 707 | Device_Driver_Table : RTEMS.Driver_Address_Table_Pointer; |
---|
| 708 | User_Extension_Table : RTEMS.Extensions_Table_Pointer; |
---|
| 709 | User_Multiprocessing_Table : RTEMS.Multiprocessing_Table_Pointer; |
---|
| 710 | RTEMS_API_Configuration : RTEMS.API_Configuration_Table_Pointer; |
---|
| 711 | POSIX_API_Configuration : RTEMS.POSIX_API_Configuration_Table_Pointer; |
---|
| 712 | end record; |
---|
| 713 | |
---|
| 714 | type Configuration_Table_Pointer is access all Configuration_Table; |
---|
| 715 | |
---|
| 716 | -- |
---|
| 717 | -- For now, do not provide access to the CPU Table from Ada. |
---|
| 718 | -- When this type is provided, a CPU dependent file must |
---|
| 719 | -- define it. |
---|
| 720 | -- |
---|
| 721 | |
---|
| 722 | subtype CPU_Table is RTEMS.Address; |
---|
| 723 | type CPU_Table_Pointer is access all CPU_Table; |
---|
| 724 | |
---|
| 725 | -- |
---|
| 726 | -- Utility Functions |
---|
| 727 | -- |
---|
| 728 | |
---|
| 729 | function From_Ada_Boolean ( |
---|
| 730 | Ada_Boolean : Standard.Boolean |
---|
| 731 | ) return RTEMS.Boolean; |
---|
| 732 | |
---|
| 733 | function To_Ada_Boolean ( |
---|
| 734 | RTEMS_Boolean : RTEMS.Boolean |
---|
| 735 | ) return Standard.Boolean; |
---|
| 736 | |
---|
| 737 | function Milliseconds_To_Microseconds ( |
---|
| 738 | Milliseconds : RTEMS.Unsigned32 |
---|
| 739 | ) return RTEMS.Unsigned32; |
---|
| 740 | |
---|
| 741 | function Microseconds_To_Ticks ( |
---|
| 742 | Microseconds : RTEMS.Unsigned32 |
---|
| 743 | ) return RTEMS.Interval; |
---|
| 744 | |
---|
[bb566a02] | 745 | function Milliseconds_To_Ticks ( |
---|
| 746 | Milliseconds : RTEMS.Unsigned32 |
---|
| 747 | ) return RTEMS.Interval; |
---|
| 748 | |
---|
[f3f06f79] | 749 | function Build_Name ( |
---|
| 750 | C1 : in Character; |
---|
| 751 | C2 : in Character; |
---|
| 752 | C3 : in Character; |
---|
| 753 | C4 : in Character |
---|
| 754 | ) return RTEMS.Name; |
---|
| 755 | |
---|
| 756 | procedure Name_To_Characters ( |
---|
| 757 | Name : in RTEMS.Name; |
---|
| 758 | C1 : out Character; |
---|
| 759 | C2 : out Character; |
---|
| 760 | C3 : out Character; |
---|
| 761 | C4 : out Character |
---|
| 762 | ); |
---|
| 763 | |
---|
| 764 | function Get_Node ( |
---|
| 765 | ID : in RTEMS.ID |
---|
| 766 | ) return RTEMS.Unsigned32; |
---|
| 767 | |
---|
| 768 | function Get_Index ( |
---|
| 769 | ID : in RTEMS.ID |
---|
| 770 | ) return RTEMS.Unsigned32; |
---|
| 771 | |
---|
| 772 | function Are_Statuses_Equal ( |
---|
| 773 | Status : in RTEMS.Status_Codes; |
---|
| 774 | Desired : in RTEMS.Status_Codes |
---|
| 775 | ) return Standard.Boolean; |
---|
| 776 | |
---|
[a6b44a8a] | 777 | function Is_Status_Successful ( |
---|
| 778 | Status : in RTEMS.Status_Codes |
---|
| 779 | ) return Standard.Boolean; |
---|
| 780 | |
---|
[d348ad96] | 781 | function Subtract ( |
---|
| 782 | Left : in RTEMS.Address; |
---|
| 783 | Right : in RTEMS.Address |
---|
| 784 | ) return RTEMS.Unsigned32; |
---|
| 785 | |
---|
[6666ea88] | 786 | function Are_Equal ( |
---|
| 787 | Left : in RTEMS.Address; |
---|
| 788 | Right : in RTEMS.Address |
---|
| 789 | ) return Standard.Boolean; |
---|
[f3f06f79] | 790 | -- |
---|
| 791 | -- RTEMS API |
---|
| 792 | -- |
---|
| 793 | |
---|
| 794 | -- |
---|
| 795 | -- Initialization Manager |
---|
| 796 | -- |
---|
| 797 | |
---|
| 798 | procedure Initialize_Executive ( |
---|
| 799 | Configuration_Table : in RTEMS.Configuration_Table_Pointer; |
---|
| 800 | CPU_Table : in RTEMS.CPU_Table_Pointer |
---|
| 801 | ); |
---|
| 802 | |
---|
| 803 | procedure Initialize_Executive_Early ( |
---|
| 804 | Configuration_Table : in RTEMS.Configuration_Table_Pointer; |
---|
| 805 | CPU_Table : in RTEMS.CPU_Table_Pointer; |
---|
| 806 | Level : out RTEMS.ISR_Level |
---|
| 807 | ); |
---|
| 808 | |
---|
| 809 | procedure Initialize_Executive_Late ( |
---|
| 810 | BSP_Level : in RTEMS.ISR_Level |
---|
| 811 | ); |
---|
| 812 | |
---|
| 813 | procedure Shutdown_Executive ( |
---|
| 814 | Result : in RTEMS.Unsigned32 |
---|
| 815 | ); |
---|
| 816 | |
---|
| 817 | -- |
---|
| 818 | -- Task Manager |
---|
| 819 | -- |
---|
| 820 | |
---|
| 821 | procedure Task_Create ( |
---|
| 822 | Name : in RTEMS.Name; |
---|
| 823 | Initial_Priority : in RTEMS.Task_Priority; |
---|
| 824 | Stack_Size : in Unsigned32; |
---|
| 825 | Initial_Modes : in RTEMS.Mode; |
---|
| 826 | Attribute_Set : in RTEMS.Attribute; |
---|
| 827 | ID : out RTEMS.ID; |
---|
| 828 | Result : out RTEMS.Status_Codes |
---|
| 829 | ); |
---|
| 830 | |
---|
| 831 | procedure Task_Ident ( |
---|
| 832 | Name : in RTEMS.Name; |
---|
| 833 | Node : in RTEMS.Node; |
---|
| 834 | ID : out RTEMS.ID; |
---|
| 835 | Result : out RTEMS.Status_Codes |
---|
| 836 | ); |
---|
| 837 | |
---|
| 838 | procedure Task_Start ( |
---|
| 839 | ID : in RTEMS.ID; |
---|
| 840 | Entry_Point : in RTEMS.Task_Entry; |
---|
| 841 | Argument : in RTEMS.Task_Argument; |
---|
| 842 | Result : out RTEMS.Status_Codes |
---|
| 843 | ); |
---|
| 844 | |
---|
| 845 | procedure Task_Restart ( |
---|
| 846 | ID : in RTEMS.ID; |
---|
| 847 | Argument : in RTEMS.Task_Argument; |
---|
| 848 | Result : out RTEMS.Status_Codes |
---|
| 849 | ); |
---|
| 850 | |
---|
| 851 | procedure Task_Delete ( |
---|
| 852 | ID : in RTEMS.ID; |
---|
| 853 | Result : out RTEMS.Status_Codes |
---|
| 854 | ); |
---|
| 855 | |
---|
| 856 | procedure Task_Suspend ( |
---|
| 857 | ID : in RTEMS.ID; |
---|
| 858 | Result : out RTEMS.Status_Codes |
---|
| 859 | ); |
---|
| 860 | |
---|
| 861 | procedure Task_Resume ( |
---|
| 862 | ID : in RTEMS.ID; |
---|
| 863 | Result : out RTEMS.Status_Codes |
---|
| 864 | ); |
---|
| 865 | |
---|
| 866 | procedure Task_Set_Priority ( |
---|
| 867 | ID : in RTEMS.ID; |
---|
| 868 | New_Priority : in RTEMS.Task_Priority; |
---|
| 869 | Old_Priority : out RTEMS.Task_Priority; |
---|
| 870 | Result : out RTEMS.Status_Codes |
---|
| 871 | ); |
---|
| 872 | |
---|
| 873 | procedure Task_Mode ( |
---|
| 874 | Mode_Set : in RTEMS.Mode; |
---|
| 875 | Mask : in RTEMS.Mode; |
---|
| 876 | Previous_Mode_Set : out RTEMS.Mode; |
---|
| 877 | Result : out RTEMS.Status_Codes |
---|
| 878 | ); |
---|
| 879 | |
---|
| 880 | procedure Task_Get_Note ( |
---|
| 881 | ID : in RTEMS.ID; |
---|
| 882 | Notepad : in RTEMS.Notepad_Index; |
---|
| 883 | Note : out RTEMS.Unsigned32; |
---|
| 884 | Result : out RTEMS.Status_Codes |
---|
| 885 | ); |
---|
| 886 | |
---|
| 887 | procedure Task_Set_Note ( |
---|
| 888 | ID : in RTEMS.ID; |
---|
| 889 | Notepad : in RTEMS.Notepad_Index; |
---|
| 890 | Note : in RTEMS.Unsigned32; |
---|
| 891 | Result : out RTEMS.Status_Codes |
---|
| 892 | ); |
---|
| 893 | |
---|
| 894 | procedure Task_Wake_When ( |
---|
| 895 | Time_Buffer : in RTEMS.Time_Of_Day; |
---|
| 896 | Result : out RTEMS.Status_Codes |
---|
| 897 | ); |
---|
| 898 | |
---|
| 899 | procedure Task_Wake_After ( |
---|
| 900 | Ticks : in RTEMS.Interval; |
---|
| 901 | Result : out RTEMS.Status_Codes |
---|
| 902 | ); |
---|
| 903 | |
---|
| 904 | -- |
---|
| 905 | -- Interrupt Manager |
---|
| 906 | -- |
---|
| 907 | |
---|
| 908 | procedure Interrupt_Catch ( |
---|
| 909 | New_ISR_Handler : in RTEMS.Address; |
---|
| 910 | Vector : in RTEMS.Vector_Number; |
---|
| 911 | Old_ISR_Handler : out RTEMS.Address; |
---|
| 912 | Result : out RTEMS.Status_Codes |
---|
| 913 | ); |
---|
| 914 | |
---|
| 915 | function Interrupt_Disable |
---|
| 916 | return RTEMS.ISR_Level; |
---|
| 917 | |
---|
| 918 | procedure Interrupt_Enable ( |
---|
| 919 | Level : in RTEMS.ISR_Level |
---|
| 920 | ); |
---|
| 921 | |
---|
| 922 | procedure Interrupt_Flash ( |
---|
| 923 | Level : in RTEMS.ISR_Level |
---|
| 924 | ); |
---|
| 925 | |
---|
| 926 | function Interrupt_Is_In_Progress |
---|
| 927 | return RTEMS.Boolean; |
---|
| 928 | |
---|
| 929 | -- |
---|
| 930 | -- Clock Manager |
---|
| 931 | -- |
---|
| 932 | |
---|
| 933 | procedure Clock_Get ( |
---|
| 934 | Option : in RTEMS.Clock_Get_Options; |
---|
| 935 | Time_Buffer : in RTEMS.Address; |
---|
| 936 | Result : out RTEMS.Status_Codes |
---|
| 937 | ); |
---|
| 938 | |
---|
| 939 | procedure Clock_Set ( |
---|
| 940 | Time_Buffer : in RTEMS.Time_Of_Day; |
---|
| 941 | Result : out RTEMS.Status_Codes |
---|
| 942 | ); |
---|
| 943 | |
---|
| 944 | procedure Clock_Tick ( |
---|
| 945 | Result : out RTEMS.Status_Codes |
---|
| 946 | ); |
---|
| 947 | |
---|
| 948 | -- |
---|
| 949 | -- Extension Manager |
---|
| 950 | -- |
---|
| 951 | |
---|
| 952 | procedure Extension_Create ( |
---|
| 953 | Name : in RTEMS.Name; |
---|
| 954 | Table : in RTEMS.Extensions_Table_Pointer; |
---|
| 955 | ID : out RTEMS.ID; |
---|
| 956 | Result : out RTEMS.Status_Codes |
---|
| 957 | ); |
---|
| 958 | |
---|
| 959 | procedure Extension_Ident ( |
---|
| 960 | Name : in RTEMS.Name; |
---|
| 961 | ID : out RTEMS.ID; |
---|
| 962 | Result : out RTEMS.Status_Codes |
---|
| 963 | ); |
---|
| 964 | |
---|
| 965 | procedure Extension_Delete ( |
---|
| 966 | ID : in RTEMS.ID; |
---|
| 967 | Result : out RTEMS.Status_Codes |
---|
| 968 | ); |
---|
| 969 | |
---|
| 970 | |
---|
| 971 | -- |
---|
| 972 | -- Timer Manager |
---|
| 973 | -- |
---|
| 974 | |
---|
| 975 | procedure Timer_Create ( |
---|
| 976 | Name : in RTEMS.Name; |
---|
| 977 | ID : out RTEMS.ID; |
---|
| 978 | Result : out RTEMS.Status_Codes |
---|
| 979 | ); |
---|
| 980 | |
---|
| 981 | procedure Timer_Ident ( |
---|
| 982 | Name : in RTEMS.Name; |
---|
| 983 | ID : out RTEMS.ID; |
---|
| 984 | Result : out RTEMS.Status_Codes |
---|
| 985 | ); |
---|
| 986 | |
---|
| 987 | procedure Timer_Delete ( |
---|
| 988 | ID : in RTEMS.ID; |
---|
| 989 | Result : out RTEMS.Status_Codes |
---|
| 990 | ); |
---|
| 991 | |
---|
| 992 | procedure Timer_Fire_After ( |
---|
| 993 | ID : in RTEMS.ID; |
---|
| 994 | Ticks : in RTEMS.Interval; |
---|
| 995 | Routine : in RTEMS.Timer_Service_Routine; |
---|
| 996 | User_Data : in RTEMS.Address; |
---|
| 997 | Result : out RTEMS.Status_Codes |
---|
| 998 | ); |
---|
| 999 | |
---|
| 1000 | procedure Timer_Fire_When ( |
---|
| 1001 | ID : in RTEMS.ID; |
---|
| 1002 | Wall_Time : in RTEMS.Time_Of_Day; |
---|
| 1003 | Routine : in RTEMS.Timer_Service_Routine; |
---|
| 1004 | User_Data : in RTEMS.Address; |
---|
| 1005 | Result : out RTEMS.Status_Codes |
---|
| 1006 | ); |
---|
| 1007 | |
---|
| 1008 | procedure Timer_Reset ( |
---|
| 1009 | ID : in RTEMS.ID; |
---|
| 1010 | Result : out RTEMS.Status_Codes |
---|
| 1011 | ); |
---|
| 1012 | |
---|
| 1013 | procedure Timer_Cancel ( |
---|
| 1014 | ID : in RTEMS.ID; |
---|
| 1015 | Result : out RTEMS.Status_Codes |
---|
| 1016 | ); |
---|
| 1017 | |
---|
| 1018 | -- |
---|
| 1019 | -- Semaphore Manager |
---|
| 1020 | -- |
---|
| 1021 | |
---|
| 1022 | procedure Semaphore_Create ( |
---|
[d348ad96] | 1023 | Name : in RTEMS.Name; |
---|
| 1024 | Count : in RTEMS.Unsigned32; |
---|
| 1025 | Attribute_Set : in RTEMS.Attribute; |
---|
| 1026 | Priority_Ceiling : in RTEMS.Task_Priority; |
---|
| 1027 | ID : out RTEMS.ID; |
---|
| 1028 | Result : out RTEMS.Status_Codes |
---|
[f3f06f79] | 1029 | ); |
---|
| 1030 | |
---|
| 1031 | procedure Semaphore_Delete ( |
---|
| 1032 | ID : in RTEMS.ID; |
---|
| 1033 | Result : out RTEMS.Status_Codes |
---|
| 1034 | ); |
---|
| 1035 | |
---|
| 1036 | procedure Semaphore_Ident ( |
---|
| 1037 | Name : in RTEMS.Name; |
---|
| 1038 | Node : in RTEMS.Unsigned32; |
---|
| 1039 | ID : out RTEMS.ID; |
---|
| 1040 | Result : out RTEMS.Status_Codes |
---|
| 1041 | ); |
---|
| 1042 | |
---|
| 1043 | procedure Semaphore_Obtain ( |
---|
| 1044 | ID : in RTEMS.ID; |
---|
| 1045 | Option_Set : in RTEMS.Option; |
---|
| 1046 | Timeout : in RTEMS.Interval; |
---|
| 1047 | Result : out RTEMS.Status_Codes |
---|
| 1048 | ); |
---|
| 1049 | |
---|
| 1050 | procedure Semaphore_Release ( |
---|
| 1051 | ID : in RTEMS.ID; |
---|
| 1052 | Result : out RTEMS.Status_Codes |
---|
| 1053 | ); |
---|
| 1054 | |
---|
| 1055 | |
---|
| 1056 | -- |
---|
| 1057 | -- Message Queue Manager |
---|
| 1058 | -- |
---|
| 1059 | |
---|
| 1060 | procedure Message_Queue_Create ( |
---|
| 1061 | Name : in RTEMS.Name; |
---|
| 1062 | Count : in RTEMS.Unsigned32; |
---|
| 1063 | Max_Message_Size : in RTEMS.Unsigned32; |
---|
| 1064 | Attribute_Set : in RTEMS.Attribute; |
---|
| 1065 | ID : out RTEMS.ID; |
---|
| 1066 | Result : out RTEMS.Status_Codes |
---|
| 1067 | ); |
---|
| 1068 | |
---|
| 1069 | procedure Message_Queue_Ident ( |
---|
| 1070 | Name : in RTEMS.Name; |
---|
| 1071 | Node : in RTEMS.Unsigned32; |
---|
| 1072 | ID : out RTEMS.ID; |
---|
| 1073 | Result : out RTEMS.Status_Codes |
---|
| 1074 | ); |
---|
| 1075 | |
---|
| 1076 | procedure Message_Queue_Delete ( |
---|
| 1077 | ID : in RTEMS.ID; |
---|
| 1078 | Result : out RTEMS.Status_Codes |
---|
| 1079 | ); |
---|
| 1080 | |
---|
| 1081 | procedure Message_Queue_Send ( |
---|
| 1082 | ID : in RTEMS.ID; |
---|
| 1083 | Buffer : in RTEMS.Address; |
---|
| 1084 | Size : in RTEMS.Unsigned32; |
---|
| 1085 | Result : out RTEMS.Status_Codes |
---|
| 1086 | ); |
---|
| 1087 | |
---|
| 1088 | procedure Message_Queue_Urgent ( |
---|
| 1089 | ID : in RTEMS.ID; |
---|
| 1090 | Buffer : in RTEMS.Address; |
---|
| 1091 | Size : in RTEMS.Unsigned32; |
---|
| 1092 | Result : out RTEMS.Status_Codes |
---|
| 1093 | ); |
---|
| 1094 | |
---|
| 1095 | procedure Message_Queue_Broadcast ( |
---|
| 1096 | ID : in RTEMS.ID; |
---|
| 1097 | Buffer : in RTEMS.Address; |
---|
| 1098 | Size : in RTEMS.Unsigned32; |
---|
| 1099 | Count : out RTEMS.Unsigned32; |
---|
| 1100 | Result : out RTEMS.Status_Codes |
---|
| 1101 | ); |
---|
| 1102 | |
---|
| 1103 | procedure Message_Queue_Receive ( |
---|
| 1104 | ID : in RTEMS.ID; |
---|
| 1105 | Buffer : in RTEMS.Address; |
---|
| 1106 | Option_Set : in RTEMS.Option; |
---|
| 1107 | Timeout : in RTEMS.Interval; |
---|
| 1108 | Size : out RTEMS.Unsigned32; |
---|
| 1109 | Result : out RTEMS.Status_Codes |
---|
| 1110 | ); |
---|
| 1111 | |
---|
| 1112 | procedure Message_Queue_Flush ( |
---|
| 1113 | ID : in RTEMS.ID; |
---|
| 1114 | Count : out RTEMS.Unsigned32; |
---|
| 1115 | Result : out RTEMS.Status_Codes |
---|
| 1116 | ); |
---|
| 1117 | |
---|
| 1118 | |
---|
| 1119 | -- |
---|
| 1120 | -- Event Manager |
---|
| 1121 | -- |
---|
| 1122 | |
---|
| 1123 | procedure Event_Send ( |
---|
| 1124 | ID : in RTEMS.ID; |
---|
| 1125 | Event_In : in RTEMS.Event_Set; |
---|
| 1126 | Result : out RTEMS.Status_Codes |
---|
| 1127 | ); |
---|
| 1128 | |
---|
| 1129 | procedure Event_Receive ( |
---|
| 1130 | Event_In : in RTEMS.Event_Set; |
---|
| 1131 | Option_Set : in RTEMS.Option; |
---|
| 1132 | Ticks : in RTEMS.Interval; |
---|
| 1133 | Event_Out : out RTEMS.Event_Set; |
---|
| 1134 | Result : out RTEMS.Status_Codes |
---|
| 1135 | ); |
---|
| 1136 | |
---|
| 1137 | -- |
---|
| 1138 | -- Signal Manager |
---|
| 1139 | -- |
---|
| 1140 | |
---|
| 1141 | procedure Signal_Catch ( |
---|
| 1142 | ASR_Handler : in RTEMS.ASR_Handler; |
---|
| 1143 | Mode_Set : in RTEMS.Mode; |
---|
| 1144 | Result : out RTEMS.Status_Codes |
---|
| 1145 | ); |
---|
| 1146 | |
---|
| 1147 | procedure Signal_Send ( |
---|
| 1148 | ID : in RTEMS.ID; |
---|
| 1149 | Signal_Set : in RTEMS.Signal_Set; |
---|
| 1150 | Result : out RTEMS.Status_Codes |
---|
| 1151 | ); |
---|
| 1152 | |
---|
| 1153 | |
---|
| 1154 | -- |
---|
| 1155 | -- Partition Manager |
---|
| 1156 | -- |
---|
| 1157 | |
---|
| 1158 | procedure Partition_Create ( |
---|
| 1159 | Name : in RTEMS.Name; |
---|
| 1160 | Starting_Address : in RTEMS.Address; |
---|
| 1161 | Length : in RTEMS.Unsigned32; |
---|
| 1162 | Buffer_Size : in RTEMS.Unsigned32; |
---|
| 1163 | Attribute_Set : in RTEMS.Attribute; |
---|
| 1164 | ID : out RTEMS.ID; |
---|
| 1165 | Result : out RTEMS.Status_Codes |
---|
| 1166 | ); |
---|
| 1167 | |
---|
| 1168 | procedure Partition_Ident ( |
---|
| 1169 | Name : in RTEMS.Name; |
---|
| 1170 | Node : in RTEMS.Unsigned32; |
---|
| 1171 | ID : out RTEMS.ID; |
---|
| 1172 | Result : out RTEMS.Status_Codes |
---|
| 1173 | ); |
---|
| 1174 | |
---|
| 1175 | procedure Partition_Delete ( |
---|
| 1176 | ID : in RTEMS.ID; |
---|
| 1177 | Result : out RTEMS.Status_Codes |
---|
| 1178 | ); |
---|
| 1179 | |
---|
| 1180 | procedure Partition_Get_Buffer ( |
---|
| 1181 | ID : in RTEMS.ID; |
---|
| 1182 | Buffer : out RTEMS.Address; |
---|
| 1183 | Result : out RTEMS.Status_Codes |
---|
| 1184 | ); |
---|
| 1185 | |
---|
| 1186 | procedure Partition_Return_Buffer ( |
---|
| 1187 | ID : in RTEMS.ID; |
---|
| 1188 | Buffer : in RTEMS.Address; |
---|
| 1189 | Result : out RTEMS.Status_Codes |
---|
| 1190 | ); |
---|
| 1191 | |
---|
| 1192 | |
---|
| 1193 | -- |
---|
| 1194 | -- Region Manager |
---|
| 1195 | -- |
---|
| 1196 | |
---|
| 1197 | procedure Region_Create ( |
---|
| 1198 | Name : in RTEMS.Name; |
---|
| 1199 | Starting_Address : in RTEMS.Address; |
---|
| 1200 | Length : in RTEMS.Unsigned32; |
---|
| 1201 | Page_Size : in RTEMS.Unsigned32; |
---|
| 1202 | Attribute_Set : in RTEMS.Attribute; |
---|
| 1203 | ID : out RTEMS.ID; |
---|
| 1204 | Result : out RTEMS.Status_Codes |
---|
| 1205 | ); |
---|
| 1206 | |
---|
| 1207 | procedure Region_Ident ( |
---|
| 1208 | Name : in RTEMS.Name; |
---|
| 1209 | ID : out RTEMS.ID; |
---|
| 1210 | Result : out RTEMS.Status_Codes |
---|
| 1211 | ); |
---|
| 1212 | |
---|
| 1213 | procedure Region_Delete ( |
---|
| 1214 | ID : in RTEMS.ID; |
---|
| 1215 | Result : out RTEMS.Status_Codes |
---|
| 1216 | ); |
---|
| 1217 | |
---|
| 1218 | procedure Region_Extend ( |
---|
| 1219 | ID : in RTEMS.ID; |
---|
| 1220 | Starting_Address : in RTEMS.Address; |
---|
| 1221 | Length : in RTEMS.Unsigned32; |
---|
| 1222 | Result : out RTEMS.Status_Codes |
---|
| 1223 | ); |
---|
| 1224 | |
---|
| 1225 | procedure Region_Get_Segment ( |
---|
| 1226 | ID : in RTEMS.ID; |
---|
| 1227 | Size : in RTEMS.Unsigned32; |
---|
| 1228 | Option_Set : in RTEMS.Option; |
---|
| 1229 | Timeout : in RTEMS.Interval; |
---|
| 1230 | Segment : out RTEMS.Address; |
---|
| 1231 | Result : out RTEMS.Status_Codes |
---|
| 1232 | ); |
---|
| 1233 | |
---|
| 1234 | procedure Region_Get_Segment_Size ( |
---|
| 1235 | ID : in RTEMS.ID; |
---|
| 1236 | Segment : in RTEMS.Address; |
---|
| 1237 | Size : out RTEMS.Unsigned32; |
---|
| 1238 | Result : out RTEMS.Status_Codes |
---|
| 1239 | ); |
---|
| 1240 | |
---|
| 1241 | procedure Region_Return_Segment ( |
---|
| 1242 | ID : in RTEMS.ID; |
---|
| 1243 | Segment : in RTEMS.Address; |
---|
| 1244 | Result : out RTEMS.Status_Codes |
---|
| 1245 | ); |
---|
| 1246 | |
---|
| 1247 | |
---|
| 1248 | -- |
---|
| 1249 | -- Dual Ported Memory Manager |
---|
| 1250 | -- |
---|
| 1251 | |
---|
| 1252 | procedure Port_Create ( |
---|
| 1253 | Name : in RTEMS.Name; |
---|
| 1254 | Internal_Start : in RTEMS.Address; |
---|
| 1255 | External_Start : in RTEMS.Address; |
---|
| 1256 | Length : in RTEMS.Unsigned32; |
---|
| 1257 | ID : out RTEMS.ID; |
---|
| 1258 | Result : out RTEMS.Status_Codes |
---|
| 1259 | ); |
---|
| 1260 | |
---|
| 1261 | procedure Port_Ident ( |
---|
| 1262 | Name : in RTEMS.Name; |
---|
| 1263 | ID : out RTEMS.ID; |
---|
| 1264 | Result : out RTEMS.Status_Codes |
---|
| 1265 | ); |
---|
| 1266 | |
---|
| 1267 | procedure Port_Delete ( |
---|
| 1268 | ID : in RTEMS.ID; |
---|
| 1269 | Result : out RTEMS.Status_Codes |
---|
| 1270 | ); |
---|
| 1271 | |
---|
| 1272 | procedure Port_External_To_Internal ( |
---|
| 1273 | ID : in RTEMS.ID; |
---|
| 1274 | External : in RTEMS.Address; |
---|
| 1275 | Internal : out RTEMS.Address; |
---|
| 1276 | Result : out RTEMS.Status_Codes |
---|
| 1277 | ); |
---|
| 1278 | |
---|
| 1279 | procedure Port_Internal_To_External ( |
---|
| 1280 | ID : in RTEMS.ID; |
---|
| 1281 | Internal : in RTEMS.Address; |
---|
| 1282 | External : out RTEMS.Address; |
---|
| 1283 | Result : out RTEMS.Status_Codes |
---|
| 1284 | ); |
---|
| 1285 | |
---|
| 1286 | -- |
---|
| 1287 | -- Input/Output Manager |
---|
| 1288 | -- |
---|
| 1289 | |
---|
| 1290 | procedure IO_Initialize ( |
---|
| 1291 | Major : in RTEMS.Device_Major_Number; |
---|
| 1292 | Minor : in RTEMS.Device_Minor_Number; |
---|
| 1293 | Argument : in RTEMS.Address; |
---|
| 1294 | Return_Value : out RTEMS.Unsigned32; |
---|
| 1295 | Result : out RTEMS.Status_Codes |
---|
| 1296 | ); |
---|
| 1297 | |
---|
| 1298 | procedure IO_Register_Name ( |
---|
| 1299 | Name : in String; |
---|
| 1300 | Major : in RTEMS.Device_Major_Number; |
---|
| 1301 | Minor : in RTEMS.Device_Minor_Number; |
---|
| 1302 | Result : out RTEMS.Status_Codes |
---|
| 1303 | ); |
---|
| 1304 | |
---|
| 1305 | procedure IO_Lookup_Name ( |
---|
| 1306 | Name : in String; |
---|
| 1307 | Device_Info : out RTEMS.Driver_Name_t; |
---|
| 1308 | Result : out RTEMS.Status_Codes |
---|
| 1309 | ); |
---|
| 1310 | |
---|
| 1311 | procedure IO_Open ( |
---|
| 1312 | Major : in RTEMS.Device_Major_Number; |
---|
| 1313 | Minor : in RTEMS.Device_Minor_Number; |
---|
| 1314 | Argument : in RTEMS.Address; |
---|
| 1315 | Result : out RTEMS.Status_Codes |
---|
| 1316 | ); |
---|
| 1317 | |
---|
| 1318 | procedure IO_Close ( |
---|
| 1319 | Major : in RTEMS.Device_Major_Number; |
---|
| 1320 | Minor : in RTEMS.Device_Minor_Number; |
---|
| 1321 | Argument : in RTEMS.Address; |
---|
| 1322 | Result : out RTEMS.Status_Codes |
---|
| 1323 | ); |
---|
| 1324 | |
---|
| 1325 | procedure IO_Read ( |
---|
| 1326 | Major : in RTEMS.Device_Major_Number; |
---|
| 1327 | Minor : in RTEMS.Device_Minor_Number; |
---|
| 1328 | Argument : in RTEMS.Address; |
---|
| 1329 | Result : out RTEMS.Status_Codes |
---|
| 1330 | ); |
---|
| 1331 | |
---|
| 1332 | procedure IO_Write ( |
---|
| 1333 | Major : in RTEMS.Device_Major_Number; |
---|
| 1334 | Minor : in RTEMS.Device_Minor_Number; |
---|
| 1335 | Argument : in RTEMS.Address; |
---|
| 1336 | Result : out RTEMS.Status_Codes |
---|
| 1337 | ); |
---|
| 1338 | |
---|
| 1339 | procedure IO_Control ( |
---|
| 1340 | Major : in RTEMS.Device_Major_Number; |
---|
| 1341 | Minor : in RTEMS.Device_Minor_Number; |
---|
| 1342 | Argument : in RTEMS.Address; |
---|
| 1343 | Result : out RTEMS.Status_Codes |
---|
| 1344 | ); |
---|
| 1345 | |
---|
| 1346 | |
---|
| 1347 | -- |
---|
| 1348 | -- Fatal Error Manager |
---|
| 1349 | -- |
---|
| 1350 | |
---|
| 1351 | procedure Fatal_Error_Occurred ( |
---|
| 1352 | The_Error : in RTEMS.Unsigned32 |
---|
| 1353 | ); |
---|
| 1354 | |
---|
| 1355 | |
---|
| 1356 | -- |
---|
| 1357 | -- Rate Monotonic Manager |
---|
| 1358 | -- |
---|
| 1359 | |
---|
| 1360 | procedure Rate_Monotonic_Create ( |
---|
| 1361 | Name : in RTEMS.Name; |
---|
| 1362 | ID : out RTEMS.ID; |
---|
| 1363 | Result : out RTEMS.Status_Codes |
---|
| 1364 | ); |
---|
| 1365 | |
---|
| 1366 | procedure Rate_Monotonic_Ident ( |
---|
| 1367 | Name : in RTEMS.Name; |
---|
| 1368 | ID : out RTEMS.ID; |
---|
| 1369 | Result : out RTEMS.Status_Codes |
---|
| 1370 | ); |
---|
| 1371 | |
---|
| 1372 | procedure Rate_Monotonic_Delete ( |
---|
| 1373 | ID : in RTEMS.ID; |
---|
| 1374 | Result : out RTEMS.Status_Codes |
---|
| 1375 | ); |
---|
| 1376 | |
---|
| 1377 | procedure Rate_Monotonic_Cancel ( |
---|
| 1378 | ID : in RTEMS.ID; |
---|
| 1379 | Result : out RTEMS.Status_Codes |
---|
| 1380 | ); |
---|
| 1381 | |
---|
| 1382 | procedure Rate_Monotonic_Period ( |
---|
| 1383 | ID : in RTEMS.ID; |
---|
| 1384 | Length : in RTEMS.Interval; |
---|
| 1385 | Result : out RTEMS.Status_Codes |
---|
| 1386 | ); |
---|
| 1387 | |
---|
| 1388 | procedure Rate_Monotonic_Get_Status ( |
---|
| 1389 | ID : in RTEMS.ID; |
---|
| 1390 | Status : out RTEMS.Rate_Monotonic_Period_Status; |
---|
| 1391 | Result : out RTEMS.Status_Codes |
---|
| 1392 | ); |
---|
| 1393 | |
---|
| 1394 | -- |
---|
| 1395 | -- Multiprocessing Manager |
---|
| 1396 | -- |
---|
| 1397 | |
---|
| 1398 | procedure Multiprocessing_Announce; |
---|
| 1399 | |
---|
| 1400 | |
---|
| 1401 | -- |
---|
| 1402 | -- Debug Manager |
---|
| 1403 | -- |
---|
| 1404 | |
---|
[d348ad96] | 1405 | Debug_All_Mask : constant RTEMS.Debug_Set := 16#ffffffff#; |
---|
| 1406 | Debug_Region : constant RTEMS.Debug_Set := 16#00000001#; |
---|
| 1407 | |
---|
[f3f06f79] | 1408 | procedure Debug_Enable ( |
---|
| 1409 | To_Be_Enabled : in RTEMS.Debug_Set |
---|
| 1410 | ); |
---|
| 1411 | |
---|
| 1412 | procedure Debug_Disable ( |
---|
| 1413 | To_Be_Disabled : in RTEMS.Debug_Set |
---|
| 1414 | ); |
---|
| 1415 | |
---|
| 1416 | function Debug_Is_Enabled ( |
---|
| 1417 | Level : in RTEMS.Debug_Set |
---|
| 1418 | ) return RTEMS.Boolean; |
---|
| 1419 | |
---|
| 1420 | -- |
---|
| 1421 | -- Some Useful Data Items |
---|
| 1422 | -- |
---|
| 1423 | |
---|
| 1424 | Configuration : RTEMS.Configuration_Table_Pointer; |
---|
| 1425 | pragma Import (C, Configuration, "_Configuration_Table"); |
---|
| 1426 | |
---|
[d766b7fd] | 1427 | |
---|
[f3f06f79] | 1428 | private |
---|
| 1429 | end RTEMS; |
---|