RTEMS: cpukit/include/rtems/rtems/types.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
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>
32#include <rtems/score/watchdogticks.h>
33#include <rtems/rtems/modes.h>
34#if defined(RTEMS_MULTIPROCESSING)
35#include <rtems/score/mpci.h>
36#endif
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
47#ifdef RTEMS_DEPRECATED_TYPES
53typedef single_precision rtems_single RTEMS_DEPRECATED;
54
60typedef double_precision rtems_double RTEMS_DEPRECATED;
61
67typedef boolean rtems_boolean RTEMS_DEPRECATED;
68#endif
69
77 typedef uint32_t rtems_name;
78
83 typedef Objects_Id rtems_id;
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)
101typedef Context_Control_fp rtems_context_fp RTEMS_DEPRECATED;
102#endif
103
104#if (CPU_ISR_PASSES_FRAME_POINTER == TRUE)
114 typedef CPU_Interrupt_frame rtems_interrupt_frame;
115#endif
116
121typedef Heap_Information_block region_information_block RTEMS_DEPRECATED;
122
127 typedef Watchdog_Interval rtems_interval;
128
135typedef 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;
170} rtems_time_of_day;
171
172/*
173 * MPCI related entries
174 */
175#if defined(RTEMS_MULTIPROCESSING)
180typedef MP_packet_Classes rtems_mp_packet_classes;
181
185typedef MP_packet_Prefix rtems_packet_prefix;
186
191typedef MPCI_initialization_entry rtems_mpci_initialization_entry;
192
196typedef MPCI_get_packet_entry rtems_mpci_get_packet_entry;
197
202typedef MPCI_return_packet_entry rtems_mpci_return_packet_entry;
203
207typedef MPCI_send_entry rtems_mpci_send_packet_entry;
208
212typedef MPCI_receive_entry rtems_mpci_receive_packet_entry;
213
217typedef MPCI_Entry rtems_mpci_entry;
218
222typedef MPCI_Control rtems_mpci_table;
223
227typedef MPCI_Configuration rtems_multiprocessing_table;
228
229#endif
230
233#ifdef __cplusplus
234}
235#endif
236
237#endif
238/* end of include file */
mpci.h
MPCI Layer API.
rtems_name
uint32_t rtems_name
Classic API object name type.
Definition: types.h:77
rtems_interrupt_frame
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
RTEMS_DEPRECATED
Context_Control rtems_context RTEMS_DEPRECATED
Public name for task context area.
Definition: types.h:95
rtems_id
Objects_Id rtems_id
Used to manage and manipulate RTEMS object identifiers.
Definition: types.h:83
rtems_interval
Watchdog_Interval rtems_interval
Used to manage and manipulate intervals specified by clock ticks.
Definition: types.h:127
MPCI_Entry
void MPCI_Entry
Definition: mpci.h:54
MPCI_get_packet_entry
MPCI_Entry(* MPCI_get_packet_entry)(MP_packet_Prefix **)
Definition: mpci.h:67
MPCI_return_packet_entry
MPCI_Entry(* MPCI_return_packet_entry)(MP_packet_Prefix *)
Definition: mpci.h:77
MPCI_send_entry
MPCI_Entry(* MPCI_send_entry)(uint32_t, MP_packet_Prefix *)
Definition: mpci.h:87
MPCI_receive_entry
MPCI_Entry(* MPCI_receive_entry)(MP_packet_Prefix **)
Definition: mpci.h:99
MPCI_initialization_entry
MPCI_Entry(* MPCI_initialization_entry)(void)
Definition: mpci.h:60
MP_packet_Classes
MP_packet_Classes
Definition: mppkt.h:56
Objects_Id
uint32_t Objects_Id
Definition: object.h:80
Watchdog_Interval
uint32_t Watchdog_Interval
Type is used to specify the length of intervals.
Definition: watchdogticks.h:38
heapinfo.h
Heap Handler Information API.
modes.h
object.h
Constants and Structures Associated with the Object Handler.
CPU_Interrupt_frame
Interrupt stack frame (ISF).
Definition: cpu.h:191
Context_Control_fp
SPARC basic context.
Definition: cpu.h:194
Context_Control
Thread register context.
Definition: cpu.h:194
Heap_Information_block
Information block returned by _Heap_Get_information().
Definition: heapinfo.h:145
MPCI_Configuration
Definition: mpci.h:137
MPCI_Control
Definition: mpci.h:111
MP_packet_Prefix
Definition: mppkt.h:85
rtems_time_of_day
Data structure to manage and manipulate calendar time.
Definition: types.h:141
rtems_time_of_day::ticks
uint32_t ticks
Elapsed ticks between seconds.
Definition: types.h:169
rtems_time_of_day::hour
uint32_t hour
Hour, 0 .. 23.
Definition: types.h:157
rtems_time_of_day::minute
uint32_t minute
Minute, 0 .. 59.
Definition: types.h:161
rtems_time_of_day::day
uint32_t day
Day, 1 .. 31.
Definition: types.h:153
rtems_time_of_day::second
uint32_t second
Second, 0 .. 59.
Definition: types.h:165
rtems_time_of_day::month
uint32_t month
Month, 1 .. 12.
Definition: types.h:149
rtems_time_of_day::year
uint32_t year
Year, A.D.
Definition: types.h:145
watchdogticks.h
Constants for the watchdog ticks.