RTEMS 6.1-rc5
Loading...
Searching...
No Matches
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
30extern "C" {
31#endif
32
37 void *
38);
39
40rtems_device_driver tty1_open(
43 void *
44);
45
46rtems_device_driver tty1_control(
49 void *
50);
51
56 void *
57);
58
59rtems_device_driver tty_read(
62 void *
63);
64
65rtems_device_driver tty_write(
68 void *
69);
70
75 void *
76);
77
78rtems_device_driver tty2_open(
81 void *
82);
83
84rtems_device_driver tty2_control(
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__ */
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition: io.h:103
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition: io.h:115
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
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 tty1_initialize(rtems_device_major_number, rtems_device_minor_number, void *)
ttyS1 entry points
Definition: tty_drv.c:48
rtems_device_driver tty2_initialize(rtems_device_major_number, rtems_device_minor_number, void *)
tty2 entry points
Definition: tty_drv.c:286