RTEMS  5.1
types.h
Go to the documentation of this file.
1 
11 /* COPYRIGHT (c) 1989-2009.
12  * On-Line Applications Research Corporation (OAR).
13  *
14  * The license and distribution terms for this file may be
15  * found in the file LICENSE in this distribution or at
16  * http://www.rtems.org/license/LICENSE.
17  */
18 
19 #ifndef _RTEMS_RTEMS_TYPES_H
20 #define _RTEMS_RTEMS_TYPES_H
21 
22 /*
23  * RTEMS basic type definitions
24  */
25 
26 #include <sys/cpuset.h>
27 #include <sys/_timespec.h>
28 #include <sys/_timeval.h>
29 #include <stdint.h>
30 #include <rtems/score/heapinfo.h>
31 #include <rtems/score/object.h>
33 #include <rtems/rtems/modes.h>
34 #if defined(RTEMS_MULTIPROCESSING)
35 #include <rtems/score/mpci.h>
36 #endif
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
47 #ifdef RTEMS_DEPRECATED_TYPES
48 
53 typedef single_precision rtems_single RTEMS_DEPRECATED;
54 
60 typedef double_precision rtems_double RTEMS_DEPRECATED;
61 
67 typedef boolean rtems_boolean RTEMS_DEPRECATED;
68 #endif
69 
77 typedef uint32_t rtems_name;
78 
84 
90 #define RTEMS_ID_NONE OBJECTS_ID_NONE
91 
95 typedef Context_Control rtems_context RTEMS_DEPRECATED;
96 
97 #if (CPU_HARDWARE_FP == TRUE) || (CPU_SOFTWARE_FP == TRUE)
98 
101 typedef Context_Control_fp rtems_context_fp RTEMS_DEPRECATED;
102 #endif
103 
104 #if (CPU_ISR_PASSES_FRAME_POINTER == TRUE)
105 
115 #endif
116 
121 typedef Heap_Information_block region_information_block RTEMS_DEPRECATED;
122 
128 
135 typedef struct timespec rtems_thread_cpu_usage_t RTEMS_DEPRECATED;
136 
141 typedef struct {
145  uint32_t year;
149  uint32_t month;
153  uint32_t day;
157  uint32_t hour;
161  uint32_t minute;
165  uint32_t second;
169  uint32_t ticks;
171 
172 /*
173  * MPCI related entries
174  */
175 #if defined(RTEMS_MULTIPROCESSING)
176 
180 typedef MP_packet_Classes rtems_mp_packet_classes;
181 
185 typedef MP_packet_Prefix rtems_packet_prefix;
186 
191 typedef MPCI_initialization_entry rtems_mpci_initialization_entry;
192 
196 typedef MPCI_get_packet_entry rtems_mpci_get_packet_entry;
197 
202 typedef MPCI_return_packet_entry rtems_mpci_return_packet_entry;
203 
207 typedef MPCI_send_entry rtems_mpci_send_packet_entry;
208 
212 typedef MPCI_receive_entry rtems_mpci_receive_packet_entry;
213 
217 typedef MPCI_Entry rtems_mpci_entry;
218 
222 typedef MPCI_Control rtems_mpci_table;
223 
227 typedef MPCI_Configuration rtems_multiprocessing_table;
228 
229 #endif
230 
233 #ifdef __cplusplus
234 }
235 #endif
236 
237 #endif
238 /* end of include file */
Context_Control rtems_context RTEMS_DEPRECATED
Public name for task context area.
Definition: types.h:95
Definition: mppkt.h:85
MPCI_Entry(* MPCI_return_packet_entry)(MP_packet_Prefix *)
Definition: mpci.h:77
CPU_Interrupt_frame rtems_interrupt_frame
Defines the format of the interrupt stack frame as it appears to a user ISR.
Definition: types.h:114
uint32_t Watchdog_Interval
Type is used to specify the length of intervals.
Definition: watchdogticks.h:38
Watchdog_Interval rtems_interval
Used to manage and manipulate intervals specified by clock ticks.
Definition: types.h:127
Thread register context.
Definition: cpu.h:194
uint32_t rtems_name
Classic API object name type.
Definition: types.h:77
Constants and Structures Associated with the Object Handler.
Interrupt stack frame (ISF).
Definition: cpu.h:191
Information block returned by _Heap_Get_information().
Definition: heapinfo.h:145
MP_packet_Classes
Definition: mppkt.h:56
MPCI_Entry(* MPCI_receive_entry)(MP_packet_Prefix **)
Definition: mpci.h:99
void MPCI_Entry
Definition: mpci.h:54
MPCI_Entry(* MPCI_get_packet_entry)(MP_packet_Prefix **)
Definition: mpci.h:67
Data structure to manage and manipulate calendar time.
Definition: types.h:141
Definition: mpci.h:111
MPCI_Entry(* MPCI_send_entry)(uint32_t, MP_packet_Prefix *)
Definition: mpci.h:87
Heap Handler Information API.
uint32_t day
Day, 1 .. 31.
Definition: types.h:153
MPCI Layer API.
SPARC basic context.
Definition: cpu.h:194
MPCI_Entry(* MPCI_initialization_entry)(void)
Definition: mpci.h:60
uint32_t month
Month, 1 .. 12.
Definition: types.h:149
Constants for the watchdog ticks.
uint32_t Objects_Id
Definition: object.h:80
Objects_Id rtems_id
Used to manage and manipulate RTEMS object identifiers.
Definition: types.h:83
Definition: mpci.h:137
uint32_t ticks
Elapsed ticks between seconds.
Definition: types.h:169
uint32_t hour
Hour, 0 .. 23.
Definition: types.h:157
uint32_t second
Second, 0 .. 59.
Definition: types.h:165
uint32_t minute
Minute, 0 .. 59.
Definition: types.h:161
uint32_t year
Year, A.D.
Definition: types.h:145