1 | /* |
---|
2 | * Input/Output Manager |
---|
3 | * |
---|
4 | * |
---|
5 | * COPYRIGHT (c) 1989-1999. |
---|
6 | * On-Line Applications Research Corporation (OAR). |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in the file LICENSE in this distribution or at |
---|
10 | * http://www.OARcorp.com/rtems/license.html. |
---|
11 | * |
---|
12 | * $Id$ |
---|
13 | */ |
---|
14 | |
---|
15 | #include <rtems/system.h> |
---|
16 | #include <rtems/rtems/status.h> |
---|
17 | #include <rtems/io.h> |
---|
18 | #include <rtems/score/isr.h> |
---|
19 | #include <rtems/score/thread.h> |
---|
20 | #include <rtems/score/interr.h> |
---|
21 | |
---|
22 | void _IO_Manager_initialization( |
---|
23 | rtems_driver_address_table *driver_table, |
---|
24 | unsigned32 drivers_in_table, |
---|
25 | unsigned32 number_of_drivers, |
---|
26 | unsigned32 number_of_devices |
---|
27 | ) |
---|
28 | { |
---|
29 | } |
---|
30 | |
---|
31 | void _IO_Initialize_all_drivers( void ) |
---|
32 | { |
---|
33 | } |
---|
34 | |
---|
35 | rtems_status_code rtems_io_register_driver( |
---|
36 | rtems_device_major_number major, |
---|
37 | rtems_driver_address_table *driver_table, |
---|
38 | rtems_device_major_number *registered_major |
---|
39 | ) |
---|
40 | { |
---|
41 | _Internal_error_Occurred( |
---|
42 | INTERNAL_ERROR_RTEMS_API, |
---|
43 | FALSE, |
---|
44 | RTEMS_NOT_CONFIGURED |
---|
45 | ); |
---|
46 | return RTEMS_NOT_CONFIGURED; |
---|
47 | } |
---|
48 | |
---|
49 | rtems_status_code rtems_io_unregister_driver( |
---|
50 | rtems_device_major_number major |
---|
51 | ) |
---|
52 | { |
---|
53 | _Internal_error_Occurred( |
---|
54 | INTERNAL_ERROR_RTEMS_API, |
---|
55 | FALSE, |
---|
56 | RTEMS_NOT_CONFIGURED |
---|
57 | ); |
---|
58 | return RTEMS_NOT_CONFIGURED; |
---|
59 | } |
---|
60 | |
---|
61 | rtems_status_code rtems_io_register_name( |
---|
62 | char *device_name, |
---|
63 | rtems_device_major_number major, |
---|
64 | rtems_device_minor_number minor |
---|
65 | ) |
---|
66 | { |
---|
67 | _Internal_error_Occurred( |
---|
68 | INTERNAL_ERROR_RTEMS_API, |
---|
69 | FALSE, |
---|
70 | RTEMS_NOT_CONFIGURED |
---|
71 | ); |
---|
72 | return RTEMS_NOT_CONFIGURED; |
---|
73 | } |
---|
74 | |
---|
75 | rtems_status_code rtems_io_lookup_name( |
---|
76 | const char *pathname, |
---|
77 | rtems_driver_name_t **rnp |
---|
78 | ) |
---|
79 | { |
---|
80 | _Internal_error_Occurred( |
---|
81 | INTERNAL_ERROR_RTEMS_API, |
---|
82 | FALSE, |
---|
83 | RTEMS_NOT_CONFIGURED |
---|
84 | ); |
---|
85 | return RTEMS_NOT_CONFIGURED; |
---|
86 | } |
---|
87 | |
---|
88 | rtems_status_code rtems_io_initialize( |
---|
89 | rtems_device_major_number major, |
---|
90 | rtems_device_minor_number minor, |
---|
91 | void *argument |
---|
92 | ) |
---|
93 | { |
---|
94 | _Internal_error_Occurred( |
---|
95 | INTERNAL_ERROR_RTEMS_API, |
---|
96 | FALSE, |
---|
97 | RTEMS_NOT_CONFIGURED |
---|
98 | ); |
---|
99 | return RTEMS_NOT_CONFIGURED; |
---|
100 | } |
---|
101 | |
---|
102 | rtems_status_code rtems_io_open( |
---|
103 | rtems_device_major_number major, |
---|
104 | rtems_device_minor_number minor, |
---|
105 | void *argument |
---|
106 | ) |
---|
107 | { |
---|
108 | _Internal_error_Occurred( |
---|
109 | INTERNAL_ERROR_RTEMS_API, |
---|
110 | FALSE, |
---|
111 | RTEMS_NOT_CONFIGURED |
---|
112 | ); |
---|
113 | return RTEMS_NOT_CONFIGURED; |
---|
114 | } |
---|
115 | |
---|
116 | rtems_status_code rtems_io_close( |
---|
117 | rtems_device_major_number major, |
---|
118 | rtems_device_minor_number minor, |
---|
119 | void *argument |
---|
120 | ) |
---|
121 | { |
---|
122 | _Internal_error_Occurred( |
---|
123 | INTERNAL_ERROR_RTEMS_API, |
---|
124 | FALSE, |
---|
125 | RTEMS_NOT_CONFIGURED |
---|
126 | ); |
---|
127 | return RTEMS_NOT_CONFIGURED; |
---|
128 | } |
---|
129 | |
---|
130 | rtems_status_code rtems_io_read( |
---|
131 | rtems_device_major_number major, |
---|
132 | rtems_device_minor_number minor, |
---|
133 | void *argument |
---|
134 | ) |
---|
135 | { |
---|
136 | _Internal_error_Occurred( |
---|
137 | INTERNAL_ERROR_RTEMS_API, |
---|
138 | FALSE, |
---|
139 | RTEMS_NOT_CONFIGURED |
---|
140 | ); |
---|
141 | return RTEMS_NOT_CONFIGURED; |
---|
142 | } |
---|
143 | |
---|
144 | rtems_status_code rtems_io_write( |
---|
145 | rtems_device_major_number major, |
---|
146 | rtems_device_minor_number minor, |
---|
147 | void *argument |
---|
148 | ) |
---|
149 | { |
---|
150 | _Internal_error_Occurred( |
---|
151 | INTERNAL_ERROR_RTEMS_API, |
---|
152 | FALSE, |
---|
153 | RTEMS_NOT_CONFIGURED |
---|
154 | ); |
---|
155 | return RTEMS_NOT_CONFIGURED; |
---|
156 | } |
---|
157 | |
---|
158 | rtems_status_code rtems_io_control( |
---|
159 | rtems_device_major_number major, |
---|
160 | rtems_device_minor_number minor, |
---|
161 | void *argument |
---|
162 | ) |
---|
163 | { |
---|
164 | _Internal_error_Occurred( |
---|
165 | INTERNAL_ERROR_RTEMS_API, |
---|
166 | FALSE, |
---|
167 | RTEMS_NOT_CONFIGURED |
---|
168 | ); |
---|
169 | return RTEMS_NOT_CONFIGURED; |
---|
170 | } |
---|