1 | /* null.h |
---|
2 | * |
---|
3 | * Null device driver, derived from rtems' stub driver. |
---|
4 | * |
---|
5 | * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) |
---|
6 | * |
---|
7 | * COPYRIGHT (c) 1989-1999. |
---|
8 | * On-Line Applications Research Corporation (OAR). |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.OARcorp.com/rtems/license.html. |
---|
13 | * |
---|
14 | * $Id$ |
---|
15 | */ |
---|
16 | |
---|
17 | #ifndef __NULL_DRIVER_h |
---|
18 | #define __NULL_DRIVER_h |
---|
19 | |
---|
20 | #ifdef __cplusplus |
---|
21 | extern "C" { |
---|
22 | #endif |
---|
23 | |
---|
24 | #define DEVNULL_DRIVER_TABLE_ENTRY \ |
---|
25 | { null_initialize, null_open, null_close, null_read, \ |
---|
26 | null_write, null_control } |
---|
27 | |
---|
28 | #define NULL_SUCCESSFUL RTEMS_SUCCESSFUL |
---|
29 | |
---|
30 | rtems_device_driver null_initialize( |
---|
31 | rtems_device_major_number, |
---|
32 | rtems_device_minor_number, |
---|
33 | void * |
---|
34 | ); |
---|
35 | |
---|
36 | rtems_device_driver null_open( |
---|
37 | rtems_device_major_number, |
---|
38 | rtems_device_minor_number, |
---|
39 | void * |
---|
40 | ); |
---|
41 | |
---|
42 | rtems_device_driver null_close( |
---|
43 | rtems_device_major_number, |
---|
44 | rtems_device_minor_number, |
---|
45 | void * |
---|
46 | ); |
---|
47 | |
---|
48 | rtems_device_driver null_read( |
---|
49 | rtems_device_major_number, |
---|
50 | rtems_device_minor_number, |
---|
51 | void * |
---|
52 | ); |
---|
53 | |
---|
54 | rtems_device_driver null_write( |
---|
55 | rtems_device_major_number, |
---|
56 | rtems_device_minor_number, |
---|
57 | void * |
---|
58 | ); |
---|
59 | |
---|
60 | rtems_device_driver null_control( |
---|
61 | rtems_device_major_number, |
---|
62 | rtems_device_minor_number, |
---|
63 | void * |
---|
64 | ); |
---|
65 | |
---|
66 | #ifdef __cplusplus |
---|
67 | } |
---|
68 | #endif |
---|
69 | |
---|
70 | #endif |
---|
71 | /* end of include file */ |
---|