1 | /* rtems.h |
---|
2 | * |
---|
3 | * This include file contains information about RTEMS executive that |
---|
4 | * is required by the application and is CPU independent. It includes |
---|
5 | * two (2) CPU dependent files to tailor its data structures for a |
---|
6 | * particular processor. |
---|
7 | * |
---|
8 | * COPYRIGHT (c) 1989-1999. |
---|
9 | * On-Line Applications Research Corporation (OAR). |
---|
10 | * |
---|
11 | * The license and distribution terms for this file may be |
---|
12 | * found in the file LICENSE in this distribution or at |
---|
13 | * http://www.rtems.com/license/LICENSE. |
---|
14 | * |
---|
15 | * $Id$ |
---|
16 | */ |
---|
17 | |
---|
18 | #ifndef __RTEMS_RTEMS_GENERIC_h |
---|
19 | #define __RTEMS_RTEMS_GENERIC_h |
---|
20 | |
---|
21 | #ifdef __cplusplus |
---|
22 | extern "C" { |
---|
23 | #endif |
---|
24 | |
---|
25 | /* |
---|
26 | * Unless told otherwise, the RTEMS include files will hide some stuff |
---|
27 | * from normal application code. Defining this crosses a boundary which |
---|
28 | * is undesirable since it means your application is using RTEMS features |
---|
29 | * which are not included in the formally defined and supported API. |
---|
30 | * Define this at your own risk. |
---|
31 | */ |
---|
32 | |
---|
33 | #if (!defined(__RTEMS_VIOLATE_KERNEL_VISIBILITY__)) && (!defined(__RTEMS_INSIDE__)) |
---|
34 | #define __RTEMS_APPLICATION__ |
---|
35 | #endif |
---|
36 | |
---|
37 | #include <rtems/system.h> |
---|
38 | #include <rtems/rtems/status.h> |
---|
39 | #include <rtems/rtems/types.h> |
---|
40 | |
---|
41 | #include <rtems/config.h> |
---|
42 | #include <rtems/init.h> |
---|
43 | #include <rtems/rtems/options.h> |
---|
44 | #include <rtems/rtems/tasks.h> |
---|
45 | #include <rtems/rtems/intr.h> |
---|
46 | #include <rtems/rtems/cache.h> |
---|
47 | #include <rtems/rtems/clock.h> |
---|
48 | #include <rtems/extension.h> |
---|
49 | #include <rtems/rtems/timer.h> |
---|
50 | #include <rtems/rtems/sem.h> |
---|
51 | #include <rtems/rtems/message.h> |
---|
52 | #include <rtems/rtems/event.h> |
---|
53 | #include <rtems/rtems/signal.h> |
---|
54 | #include <rtems/rtems/event.h> |
---|
55 | #include <rtems/rtems/part.h> |
---|
56 | #include <rtems/rtems/region.h> |
---|
57 | #include <rtems/rtems/dpmem.h> |
---|
58 | #include <rtems/io.h> |
---|
59 | #include <rtems/fatal.h> |
---|
60 | #include <rtems/rtems/ratemon.h> |
---|
61 | #if defined(RTEMS_MULTIPROCESSING) |
---|
62 | #include <rtems/rtems/mp.h> |
---|
63 | #endif |
---|
64 | |
---|
65 | #include <rtems/rtems/support.h> |
---|
66 | #include <rtems/score/sysstate.h> |
---|
67 | |
---|
68 | #define RTEMS_HAS_HARDWARE_FP CPU_HARDWARE_FP |
---|
69 | |
---|
70 | /* |
---|
71 | * The following define the constants which may be used in name searches. |
---|
72 | */ |
---|
73 | |
---|
74 | #define RTEMS_SEARCH_ALL_NODES OBJECTS_SEARCH_ALL_NODES |
---|
75 | #define RTEMS_SEARCH_OTHER_NODES OBJECTS_SEARCH_OTHER_NODES |
---|
76 | #define RTEMS_SEARCH_LOCAL_NODE OBJECTS_SEARCH_LOCAL_NODE |
---|
77 | #define RTEMS_WHO_AM_I OBJECTS_WHO_AM_I |
---|
78 | |
---|
79 | /* |
---|
80 | * Parameters and return id's for _Objects_Get_next |
---|
81 | */ |
---|
82 | |
---|
83 | #define RTEMS_OBJECT_ID_INITIAL_INDEX OBJECTS_ID_INITIAL_INDEX |
---|
84 | #define RTEMS_OBJECT_ID_FINAL_INDEX OBJECTS_ID_FINAL_INDEX |
---|
85 | #define RTEMS_OBJECT_ID_INITIAL(api, class, node) OBJECTS_ID_INITIAL(api, class, node) |
---|
86 | |
---|
87 | #define RTEMS_OBJECT_ID_FINAL OBJECTS_ID_FINAL |
---|
88 | |
---|
89 | /* |
---|
90 | * The following constant defines the minimum stack size which every |
---|
91 | * thread must exceed. |
---|
92 | */ |
---|
93 | |
---|
94 | #define RTEMS_MINIMUM_STACK_SIZE STACK_MINIMUM_SIZE |
---|
95 | |
---|
96 | /* |
---|
97 | * Constant for indefinite wait. (actually an illegal interval) |
---|
98 | */ |
---|
99 | |
---|
100 | #define RTEMS_NO_TIMEOUT WATCHDOG_NO_TIMEOUT |
---|
101 | |
---|
102 | /* |
---|
103 | * An MPCI must support packets of at least this size. |
---|
104 | */ |
---|
105 | |
---|
106 | #define RTEMS_MINIMUM_PACKET_SIZE MP_PACKET_MINIMUM_PACKET_SIZE |
---|
107 | |
---|
108 | /* |
---|
109 | * The following constant defines the number of uint32_t 's |
---|
110 | * in a packet which must be converted to native format in a |
---|
111 | * heterogeneous system. In packets longer than |
---|
112 | * MP_PACKET_MINIMUN_HETERO_CONVERSION uint32_t 's, some of the "extra" data |
---|
113 | * may a user message buffer which is not automatically endian swapped. |
---|
114 | */ |
---|
115 | |
---|
116 | #define RTEMS_MINIMUN_HETERO_CONVERSION MP_PACKET_MINIMUN_HETERO_CONVERSION |
---|
117 | |
---|
118 | /* |
---|
119 | * rtems_object_id_to_name |
---|
120 | * |
---|
121 | * This directive returns the name associated with the specified |
---|
122 | * object ID. |
---|
123 | * |
---|
124 | * Input parameters: |
---|
125 | * id - message queue id |
---|
126 | * |
---|
127 | * Output parameters: |
---|
128 | * *name - user defined object name |
---|
129 | * RTEMS_SUCCESSFUL - if successful |
---|
130 | * error code - if unsuccessful |
---|
131 | */ |
---|
132 | |
---|
133 | rtems_status_code rtems_object_id_to_name( |
---|
134 | rtems_id id, |
---|
135 | rtems_name *name |
---|
136 | ); |
---|
137 | |
---|
138 | #ifdef __cplusplus |
---|
139 | } |
---|
140 | #endif |
---|
141 | |
---|
142 | #endif |
---|
143 | /* end of include file */ |
---|