OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [libmisc/] [devnull/] [devnull.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*  devnull.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-2000.
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
 *  devnull.h,v 1.1 2001/01/05 13:26:51 joel Exp
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 */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.