[f8b27df9] | 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-1998. |
---|
| 8 | * On-Line Applications Research Corporation (OAR). |
---|
| 9 | * Copyright assigned to U.S. Government, 1994. |
---|
| 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.OARcorp.com/rtems/license.html. |
---|
| 14 | * |
---|
| 15 | * $Id$ |
---|
| 16 | */ |
---|
| 17 | |
---|
| 18 | #ifndef __NULL_DRIVER_h |
---|
| 19 | #define __NULL_DRIVER_h |
---|
| 20 | |
---|
| 21 | #ifdef __cplusplus |
---|
| 22 | extern "C" { |
---|
| 23 | #endif |
---|
| 24 | |
---|
| 25 | #define DEVNULL_DRIVER_TABLE_ENTRY \ |
---|
| 26 | { null_initialize, null_open, null_close, null_read, \ |
---|
| 27 | null_write, null_control } |
---|
| 28 | |
---|
| 29 | #define NULL_SUCCESSFUL RTEMS_SUCCESSFUL |
---|
| 30 | |
---|
| 31 | rtems_device_driver null_initialize( |
---|
| 32 | rtems_device_major_number, |
---|
| 33 | rtems_device_minor_number, |
---|
| 34 | void * |
---|
| 35 | ); |
---|
| 36 | |
---|
| 37 | rtems_device_driver null_open( |
---|
| 38 | rtems_device_major_number, |
---|
| 39 | rtems_device_minor_number, |
---|
| 40 | void * |
---|
| 41 | ); |
---|
| 42 | |
---|
| 43 | rtems_device_driver null_close( |
---|
| 44 | rtems_device_major_number, |
---|
| 45 | rtems_device_minor_number, |
---|
| 46 | void * |
---|
| 47 | ); |
---|
| 48 | |
---|
| 49 | rtems_device_driver null_read( |
---|
| 50 | rtems_device_major_number, |
---|
| 51 | rtems_device_minor_number, |
---|
| 52 | void * |
---|
| 53 | ); |
---|
| 54 | |
---|
| 55 | rtems_device_driver null_write( |
---|
| 56 | rtems_device_major_number, |
---|
| 57 | rtems_device_minor_number, |
---|
| 58 | void * |
---|
| 59 | ); |
---|
| 60 | |
---|
| 61 | rtems_device_driver null_control( |
---|
| 62 | rtems_device_major_number, |
---|
| 63 | rtems_device_minor_number, |
---|
| 64 | void * |
---|
| 65 | ); |
---|
| 66 | |
---|
| 67 | #ifdef __cplusplus |
---|
| 68 | } |
---|
| 69 | #endif |
---|
| 70 | |
---|
| 71 | #endif |
---|
| 72 | /* end of include file */ |
---|