RTEMS  5.0.0
devzero.h
Go to the documentation of this file.
1 
10 /*
11  * Copyright (c) 2011 embedded brains GmbH. All rights reserved.
12  *
13  * embedded brains GmbH
14  * Obere Lagerstr. 30
15  * 82178 Puchheim
16  * Germany
17  * <rtems@embedded-brains.de>
18  *
19  * The license and distribution terms for this file may be
20  * found in the file LICENSE in this distribution or at
21  * http://www.rtems.org/license/LICENSE.
22  */
23 
24 #ifndef _RTEMS_DEVZERO_H
25 #define _RTEMS_DEVZERO_H
26 
27 #include <rtems/io.h>
28 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif /* __cplusplus */
39 
40 #define DEVZERO_DEVICE_NAME "/dev/zero"
41 
42 #define DEVZERO_DRIVER_TABLE_ENTRY \
43  { \
44  dev_zero_initialize, \
45  dev_zero_open, \
46  dev_zero_close, \
47  dev_zero_read, \
48  dev_zero_write, \
49  dev_zero_control \
50  }
51 
52 rtems_device_driver dev_zero_initialize(
53  rtems_device_major_number major,
54  rtems_device_minor_number minor,
55  void *arg
56 );
57 
58 rtems_device_driver dev_zero_open(
59  rtems_device_major_number major,
60  rtems_device_minor_number minor,
61  void *arg
62 );
63 
64 rtems_device_driver dev_zero_close(
65  rtems_device_major_number major,
66  rtems_device_minor_number minor,
67  void *arg
68 );
69 
70 rtems_device_driver dev_zero_read(
71  rtems_device_major_number major,
72  rtems_device_minor_number minor,
73  void *arg
74 );
75 
76 rtems_device_driver dev_zero_write(
77  rtems_device_major_number major,
78  rtems_device_minor_number minor,
79  void *arg
80 );
81 
82 rtems_device_driver dev_zero_control(
83  rtems_device_major_number major,
84  rtems_device_minor_number minor,
85  void *arg
86 );
87 
88 #ifdef __cplusplus
89 }
90 #endif /* __cplusplus */
91 
92 #endif /* _RTEMS_DEVZERO_H */
rtems_status_code
Classic API Status.
Definition: status.h:43
Classic Input/Output Manager API.