RTEMS  5.0.0
devnull.h
Go to the documentation of this file.
1 
10 /*
11  * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
12  *
13  * COPYRIGHT (c) 1989-2000.
14  * On-Line Applications Research Corporation (OAR).
15  *
16  * The license and distribution terms for this file may be
17  * found in the file LICENSE in this distribution or at
18  * http://www.rtems.org/license/LICENSE.
19  */
20 
21 #ifndef _RTEMS_DEVNULL_H
22 #define _RTEMS_DEVNULL_H
23 
24 #include <rtems/io.h>
25 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 #define DEVNULL_DRIVER_TABLE_ENTRY \
38  { null_initialize, null_open, null_close, null_read, \
39  null_write, null_control }
40 
41 #define NULL_SUCCESSFUL RTEMS_SUCCESSFUL
42 
43 rtems_device_driver null_initialize(
44  rtems_device_major_number,
45  rtems_device_minor_number,
46  void *
47 );
48 
49 rtems_device_driver null_open(
50  rtems_device_major_number,
51  rtems_device_minor_number,
52  void *
53 );
54 
55 rtems_device_driver null_close(
56  rtems_device_major_number,
57  rtems_device_minor_number,
58  void *
59 );
60 
61 rtems_device_driver null_read(
62  rtems_device_major_number,
63  rtems_device_minor_number,
64  void *
65 );
66 
67 rtems_device_driver null_write(
68  rtems_device_major_number,
69  rtems_device_minor_number,
70  void *
71 );
72 
73 rtems_device_driver null_control(
74  rtems_device_major_number,
75  rtems_device_minor_number,
76  void *
77 );
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif
84 /* end of include file */
rtems_status_code
Classic API Status.
Definition: status.h:43
Classic Input/Output Manager API.