source: rtems/cpukit/libmisc/devnull/devzero.h @ f3255a6

4.115
Last change on this file since f3255a6 was f3255a6, checked in by Mathew Kallada <matkallada@…>, on 12/28/12 at 17:30:27

Header File Doxygen Enhancement Task #11

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/**
2 * @file rtems/devzero.h
3 *
4 * @brief Interface to the RTEMS /dev/zero Device Driver
5 *
6 * This include file defines the interface to the RTEMS /dev/zero
7 * device driver.
8 */
9
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.com/license/LICENSE.
22 */
23
24#ifndef _RTEMS_DEVZERO_H
25#define _RTEMS_DEVZERO_H
26
27#include <rtems/io.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif /* __cplusplus */
32
33#define DEVZERO_DEVICE_NAME "/dev/zero"
34
35#define DEVZERO_DRIVER_TABLE_ENTRY \
36  { \
37    dev_zero_initialize, \
38    dev_zero_open, \
39    dev_zero_close, \
40    dev_zero_read, \
41    dev_zero_write, \
42    dev_zero_control \
43  }
44
45rtems_device_driver dev_zero_initialize(
46  rtems_device_major_number major,
47  rtems_device_minor_number minor,
48  void *arg
49);
50
51rtems_device_driver dev_zero_open(
52  rtems_device_major_number major,
53  rtems_device_minor_number minor,
54  void *arg
55);
56
57rtems_device_driver dev_zero_close(
58  rtems_device_major_number major,
59  rtems_device_minor_number minor,
60  void *arg
61);
62
63rtems_device_driver dev_zero_read(
64  rtems_device_major_number major,
65  rtems_device_minor_number minor,
66  void *arg
67);
68
69rtems_device_driver dev_zero_write(
70  rtems_device_major_number major,
71  rtems_device_minor_number minor,
72  void *arg
73);
74
75rtems_device_driver dev_zero_control(
76  rtems_device_major_number major,
77  rtems_device_minor_number minor,
78  void *arg
79);
80
81#ifdef __cplusplus
82}
83#endif /* __cplusplus */
84
85#endif /* _RTEMS_DEVZERO_H */
Note: See TracBrowser for help on using the repository browser.