source: rtems/c/src/lib/libbsp/i386/shared/comm/tty_drv.h @ f05b2ac

4.104.114.84.95
Last change on this file since f05b2ac was f05b2ac, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/21/04 at 16:01:48

Remove duplicate white lines.

  • Property mode set to 100644
File size: 2.5 KB
Line 
1#ifndef __tty_drv__
2#define __tty_drv__
3/***************************************************************************
4 *
5 * $Header$
6 *
7 * Copyright (c) 1999 ConnectTel, Inc. All Rights Reserved.
8 *
9 * MODULE DESCRIPTION: Prototype routines for the ttySx driver.
10 *
11 * by: Rosimildo da Silva:
12 *     rdasilva@connecttel.com
13 *     http://www.connecttel.com
14 *
15 * MODIFICATION/HISTORY:
16 *
17 * $Log$
18 * Revision 1.3  2004/04/21 10:42:44  ralf
19 * Remove stray white spaces.
20 *
21 * Revision 1.2  2004/04/15 13:26:12  ralf
22 * Remove stray white spaces.
23 *
24 * Revision 1.1  2000/08/30 08:18:56  joel
25 * 2000-08-26  Rosimildo da Silva  <rdasilva@connecttel.com>
26 *
27 *      * shared/comm: Added "/dev/ttyS1" & "/dev/ttyS2" support for
28 *      the i386 BSPs.
29 *      * shared/comm/gdb_glue.c: New file.
30 *      * shared/comm/i386_io.c: New file.
31 *      * shared/comm/tty_drv.c: New file.
32 *      * shared/comm/tty_drv.h: New file.
33 *      * shared/comm/Makefile.am: Account for new files.
34 *      * shared/comm/uart.c: Adds support for sending characters to
35 *      another "line discipline."
36 *
37 ****************************************************************************/
38
39/* functions */
40#ifdef __cplusplus
41extern "C" {
42#endif
43
44/* ttyS1 entry points */
45rtems_device_driver tty1_initialize(
46  rtems_device_major_number,
47  rtems_device_minor_number,
48  void *
49);
50
51rtems_device_driver tty1_open(
52  rtems_device_major_number,
53  rtems_device_minor_number,
54  void *
55);
56
57rtems_device_driver tty1_control(
58  rtems_device_major_number,
59  rtems_device_minor_number,
60  void *
61);
62
63/* tty1 & tty2 shared entry points */
64rtems_device_driver tty_close(
65  rtems_device_major_number,
66  rtems_device_minor_number,
67  void *
68);
69
70rtems_device_driver tty_read(
71  rtems_device_major_number,
72  rtems_device_minor_number,
73  void *
74);
75
76rtems_device_driver tty_write(
77  rtems_device_major_number,
78  rtems_device_minor_number,
79  void *
80);
81
82/* tty2 entry points */
83rtems_device_driver tty2_initialize(
84  rtems_device_major_number,
85  rtems_device_minor_number,
86  void *
87);
88
89rtems_device_driver tty2_open(
90  rtems_device_major_number,
91  rtems_device_minor_number,
92  void *
93);
94
95rtems_device_driver tty2_control(
96  rtems_device_major_number,
97  rtems_device_minor_number,
98  void *
99);
100
101#define TTY1_DRIVER_TABLE_ENTRY \
102  { tty1_initialize, tty1_open, tty_close, \
103    tty_read, tty_write, tty1_control }
104
105#define TTY2_DRIVER_TABLE_ENTRY \
106  { tty2_initialize, tty2_open, tty_close, \
107    tty_read, tty_write, tty2_control }
108
109#ifdef __cplusplus
110}
111#endif
112/* end of include file */
113
114#endif  /* __tty_drv__  */
Note: See TracBrowser for help on using the repository browser.