source: rtems/c/src/exec/sapi/optman/no-io.c @ 3b76313

4.104.114.84.95
Last change on this file since 3b76313 was 3b76313, checked in by Joel Sherrill <joel.sherrill@…>, on 04/19/96 at 21:09:20

modified to generate fatal error when an unconfigured directive is invoked.

  • Property mode set to 100644
File size: 2.9 KB
Line 
1/*
2 *  Input/Output Manager
3 *
4 *
5 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
6 *  On-Line Applications Research Corporation (OAR).
7 *  All rights assigned to U.S. Government, 1994.
8 *
9 *  This material may be reproduced by or for the U.S. Government pursuant
10 *  to the copyright license under the clause at DFARS 252.227-7013.  This
11 *  notice must appear in all copies of this file and its derivatives.
12 *
13 *  $Id$
14 */
15
16#include <rtems/system.h>
17#include <rtems/rtems/status.h>
18#include <rtems/config.h>
19#include <rtems/io.h>
20#include <rtems/score/isr.h>
21#include <rtems/score/thread.h>
22#include <rtems/score/interr.h>
23
24void _IO_Manager_initialization(
25  rtems_driver_address_table *driver_table,
26  unsigned32                  number_of_drivers,
27  unsigned32                  number_of_devices
28)
29{
30}
31
32void _IO_Initialize_all_drivers( void )
33{
34}
35
36rtems_status_code rtems_io_register_name(
37    char *device_name,
38    rtems_device_major_number major,
39    rtems_device_minor_number minor
40)
41{
42  _Internal_error_Occurred(
43    INTERNAL_ERROR_RTEMS_API,
44    FALSE,
45    RTEMS_NOT_CONFIGURED
46  );
47  return RTEMS_NOT_CONFIGURED;
48}
49
50rtems_status_code rtems_io_lookup_name(
51    const char *pathname,
52    rtems_driver_name_t **rnp
53)
54{
55  _Internal_error_Occurred(
56    INTERNAL_ERROR_RTEMS_API,
57    FALSE,
58    RTEMS_NOT_CONFIGURED
59  );
60  return RTEMS_NOT_CONFIGURED;
61}
62
63rtems_status_code rtems_io_initialize(
64  rtems_device_major_number  major,
65  rtems_device_minor_number  minor,
66  void             *argument
67)
68{
69  _Internal_error_Occurred(
70    INTERNAL_ERROR_RTEMS_API,
71    FALSE,
72    RTEMS_NOT_CONFIGURED
73  );
74  return RTEMS_NOT_CONFIGURED;
75}
76
77rtems_status_code rtems_io_open(
78  rtems_device_major_number  major,
79  rtems_device_minor_number  minor,
80  void             *argument
81)
82{
83  _Internal_error_Occurred(
84    INTERNAL_ERROR_RTEMS_API,
85    FALSE,
86    RTEMS_NOT_CONFIGURED
87  );
88  return RTEMS_NOT_CONFIGURED;
89}
90
91rtems_status_code rtems_io_close(
92  rtems_device_major_number  major,
93  rtems_device_minor_number  minor,
94  void             *argument
95)
96{
97  _Internal_error_Occurred(
98    INTERNAL_ERROR_RTEMS_API,
99    FALSE,
100    RTEMS_NOT_CONFIGURED
101  );
102  return RTEMS_NOT_CONFIGURED;
103}
104
105rtems_status_code rtems_io_read(
106  rtems_device_major_number  major,
107  rtems_device_minor_number  minor,
108  void             *argument
109)
110{
111  _Internal_error_Occurred(
112    INTERNAL_ERROR_RTEMS_API,
113    FALSE,
114    RTEMS_NOT_CONFIGURED
115  );
116  return RTEMS_NOT_CONFIGURED;
117}
118
119rtems_status_code rtems_io_write(
120  rtems_device_major_number  major,
121  rtems_device_minor_number  minor,
122  void             *argument
123)
124{
125  _Internal_error_Occurred(
126    INTERNAL_ERROR_RTEMS_API,
127    FALSE,
128    RTEMS_NOT_CONFIGURED
129  );
130  return RTEMS_NOT_CONFIGURED;
131}
132
133rtems_status_code rtems_io_control(
134  rtems_device_major_number  major,
135  rtems_device_minor_number  minor,
136  void             *argument
137)
138{
139  _Internal_error_Occurred(
140    INTERNAL_ERROR_RTEMS_API,
141    FALSE,
142    RTEMS_NOT_CONFIGURED
143  );
144  return RTEMS_NOT_CONFIGURED;
145}
Note: See TracBrowser for help on using the repository browser.