RTEMS  5.1
tty_drv.h
Go to the documentation of this file.
1 
7 #ifndef __tty_drv__
8 #define __tty_drv__
9 /***************************************************************************
10  *
11  * Copyright (c) 1999 ConnectTel, Inc. All Rights Reserved.
12  *
13  * MODULE DESCRIPTION: Prototype routines for the ttySx driver.
14  *
15  * by: Rosimildo da Silva:
16  * rdasilva@connecttel.com
17  * http://www.connecttel.com
18  *
19  ****************************************************************************/
20 
28 /* functions */
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
35  rtems_device_major_number,
36  rtems_device_minor_number,
37  void *
38 );
39 
40 rtems_device_driver tty1_open(
41  rtems_device_major_number,
42  rtems_device_minor_number,
43  void *
44 );
45 
46 rtems_device_driver tty1_control(
47  rtems_device_major_number,
48  rtems_device_minor_number,
49  void *
50 );
51 
54  rtems_device_major_number,
55  rtems_device_minor_number,
56  void *
57 );
58 
59 rtems_device_driver tty_read(
60  rtems_device_major_number,
61  rtems_device_minor_number,
62  void *
63 );
64 
65 rtems_device_driver tty_write(
66  rtems_device_major_number,
67  rtems_device_minor_number,
68  void *
69 );
70 
73  rtems_device_major_number,
74  rtems_device_minor_number,
75  void *
76 );
77 
78 rtems_device_driver tty2_open(
79  rtems_device_major_number,
80  rtems_device_minor_number,
81  void *
82 );
83 
84 rtems_device_driver tty2_control(
85  rtems_device_major_number,
86  rtems_device_minor_number,
87  void *
88 );
89 
90 #define TTY1_DRIVER_TABLE_ENTRY \
91  { tty1_initialize, tty1_open, tty_close, \
92  tty_read, tty_write, tty1_control }
93 
94 #define TTY2_DRIVER_TABLE_ENTRY \
95  { tty2_initialize, tty2_open, tty_close, \
96  tty_read, tty_write, tty2_control }
97 
100 #ifdef __cplusplus
101 }
102 #endif
103 
104 #endif /* __tty_drv__ */
rtems_status_code
Classic API Status.
Definition: status.h:43
rtems_device_driver tty_close(rtems_device_major_number, rtems_device_minor_number, void *)
tty1 & tty2 shared entry points
Definition: tty_drv.c:162
rtems_device_driver tty2_initialize(rtems_device_major_number, rtems_device_minor_number, void *)
tty2 entry points
Definition: tty_drv.c:286
rtems_device_driver tty1_initialize(rtems_device_major_number, rtems_device_minor_number, void *)
ttyS1 entry points
Definition: tty_drv.c:48