RTEMS
types.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 
11 /*
12  * Copyright (C) 2009, 2020 embedded brains GmbH (http://www.embedded-brains.de)
13  * Copyright (C) 2006, 2008 On-Line Applications Research Corporation (OAR)
14  *
15  * Redistribution and use in source and binary forms, with or without
16  * modification, are permitted provided that the following conditions
17  * are met:
18  * 1. Redistributions of source code must retain the above copyright
19  * notice, this list of conditions and the following disclaimer.
20  * 2. Redistributions in binary form must reproduce the above copyright
21  * notice, this list of conditions and the following disclaimer in the
22  * documentation and/or other materials provided with the distribution.
23  *
24  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
28  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34  * POSSIBILITY OF SUCH DAMAGE.
35  */
36 
37 /*
38  * Do not manually edit this file. It is part of the RTEMS quality process
39  * and was automatically generated.
40  *
41  * If you find something that needs to be fixed or worded better please
42  * post a report to an RTEMS mailing list or raise a bug report:
43  *
44  * https://docs.rtems.org/branches/master/user/support/bugs.html
45  *
46  * For information on updating and regenerating please refer to:
47  *
48  * https://docs.rtems.org/branches/master/eng/req/howto.html
49  */
50 
51 /* Generated from spec:/rtems/type/if/header */
52 
53 #ifndef _RTEMS_RTEMS_TYPES_H
54 #define _RTEMS_RTEMS_TYPES_H
55 
56 #include <stdint.h>
57 #include <sys/_timespec.h>
58 #include <sys/_timeval.h>
59 #include <sys/cpuset.h>
60 #include <rtems/rtems/modes.h>
61 #include <rtems/score/mppkt.h>
62 #include <rtems/score/object.h>
64 
65 #if defined(RTEMS_MULTIPROCESSING)
66  #include <rtems/score/mpci.h>
67 #endif
68 
69 #ifdef __cplusplus
70 extern "C" {
71 #endif
72 
73 /* Generated from spec:/rtems/type/if/group */
74 
83 /* Generated from spec:/rtems/type/if/interval */
84 
91 
92 /* Generated from spec:/rtems/type/if/id */
93 
100 
101 /* Generated from spec:/rtems/type/if/id-none */
102 
110 #define RTEMS_ID_NONE OBJECTS_ID_NONE
111 
112 #if defined(RTEMS_MULTIPROCESSING)
113  /* Generated from spec:/rtems/type/if/mp-packet-classes */
114 
120  typedef MP_packet_Classes rtems_mp_packet_classes;
121 #endif
122 
123 #if defined(RTEMS_MULTIPROCESSING)
124  /* Generated from spec:/rtems/type/if/mpci-entry */
125 
131  typedef MPCI_Entry rtems_mpci_entry;
132 #endif
133 
134 #if defined(RTEMS_MULTIPROCESSING)
135  /* Generated from spec:/rtems/type/if/mpci-get-packet-entry */
136 
143  typedef MPCI_get_packet_entry rtems_mpci_get_packet_entry;
144 #endif
145 
146 #if defined(RTEMS_MULTIPROCESSING)
147  /* Generated from spec:/rtems/type/if/mpci-initialization-entry */
148 
155  typedef MPCI_initialization_entry rtems_mpci_initialization_entry;
156 #endif
157 
158 #if defined(RTEMS_MULTIPROCESSING)
159  /* Generated from spec:/rtems/type/if/mpci-receive-packet-entry */
160 
167  typedef MPCI_receive_entry rtems_mpci_receive_packet_entry;
168 #endif
169 
170 #if defined(RTEMS_MULTIPROCESSING)
171  /* Generated from spec:/rtems/type/if/mpci-return-packet-entry */
172 
179  typedef MPCI_return_packet_entry rtems_mpci_return_packet_entry;
180 #endif
181 
182 #if defined(RTEMS_MULTIPROCESSING)
183  /* Generated from spec:/rtems/type/if/mpci-send-packet-entry */
184 
191  typedef MPCI_send_entry rtems_mpci_send_packet_entry;
192 #endif
193 
194 #if defined(RTEMS_MULTIPROCESSING)
195  /* Generated from spec:/rtems/type/if/mpci-table */
196 
202  typedef MPCI_Control rtems_mpci_table;
203 #endif
204 
205 #if defined(RTEMS_MULTIPROCESSING)
206  /* Generated from spec:/rtems/type/if/multiprocessing-table */
207 
213  typedef MPCI_Configuration rtems_multiprocessing_table;
214 #endif
215 
216 /* Generated from spec:/rtems/type/if/name */
217 
227 typedef uint32_t rtems_name;
228 
229 /* Generated from spec:/rtems/type/if/no-timeout */
230 
237 #define RTEMS_NO_TIMEOUT ( (rtems_interval) WATCHDOG_NO_TIMEOUT )
238 
239 #if defined(RTEMS_MULTIPROCESSING)
240  /* Generated from spec:/rtems/type/if/packet-prefix */
241 
248  typedef MP_packet_Prefix rtems_packet_prefix;
249 #endif
250 
251 /* Generated from spec:/rtems/type/if/time-of-day */
252 
258 typedef struct {
262  uint32_t year;
263 
268  uint32_t month;
269 
273  uint32_t day;
274 
278  uint32_t hour;
279 
284  uint32_t minute;
285 
290  uint32_t second;
291 
296  uint32_t ticks;
298 
299 #ifdef __cplusplus
300 }
301 #endif
302 
303 #endif /* _RTEMS_RTEMS_TYPES_H */
uint32_t Watchdog_Interval
Type is used to specify the length of intervals.
Definition: watchdogticks.h:38
This header file defines the task modes of the Task Manager API.
uint32_t rtems_name
This type is used to represent a Classic API object name.
Definition: types.h:227
Constants and Structures Associated with the Object Handler.
MP_packet_Classes
Definition: mppkt.h:56
This type is used to represent the calendar time in the Classic API.
Definition: types.h:258
Specification for the Packet Handler.
uint32_t day
This member represents the day of the month with values from 1 to 31.
Definition: types.h:273
Watchdog_Interval rtems_interval
This type is used to represent clock tick intervals.
Definition: types.h:90
Objects_Id rtems_id
Values of this type identify an RTEMS object.
Definition: types.h:99
uint32_t month
This member represents the month of the year with values from 1 to 12.
Definition: types.h:268
Constants for the watchdog ticks.
uint32_t Objects_Id
Definition: object.h:80
uint32_t ticks
This member represents the clock tick of the second with values from 0 to rtems_clock_get_ticks_per_s...
Definition: types.h:296
uint32_t hour
This member represents the hour of the day with values from 0 to 23.
Definition: types.h:278
uint32_t second
This member represents the second of the minute with values from 0 to 59.
Definition: types.h:290
uint32_t minute
This member represents the minute of the hour with values from 0 to 59.
Definition: types.h:284
uint32_t year
This member represents the year A.D.
Definition: types.h:262