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

4.104.114.84.95
Last change on this file since 3299388d was b459526, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 30, 2000 at 8:18:56 AM

2000-08-26 Rosimildo da Silva <rdasilva@…>

  • shared/comm: Added "/dev/ttyS1" & "/dev/ttyS2" support for the i386 BSPs.
  • shared/comm/gdb_glue.c: New file.
  • shared/comm/i386_io.c: New file.
  • shared/comm/tty_drv.c: New file.
  • shared/comm/tty_drv.h: New file.
  • shared/comm/Makefile.am: Account for new files.
  • shared/comm/uart.c: Adds support for sending characters to another "line discipline."
  • Property mode set to 100644
File size: 1.8 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 ****************************************************************************/
19
20/* functions */
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25
26/* ttyS1 entry points */
27rtems_device_driver tty1_initialize(
28  rtems_device_major_number,
29  rtems_device_minor_number,
30  void *
31);
32
33rtems_device_driver tty1_open(
34  rtems_device_major_number,
35  rtems_device_minor_number,
36  void *
37);
38
39rtems_device_driver tty1_control(
40  rtems_device_major_number,
41  rtems_device_minor_number,
42  void *
43);
44
45
46/* tty1 & tty2 shared entry points */
47rtems_device_driver tty_close(
48  rtems_device_major_number,
49  rtems_device_minor_number,
50  void *
51);
52
53
54rtems_device_driver tty_read(
55  rtems_device_major_number,
56  rtems_device_minor_number,
57  void *
58);
59
60rtems_device_driver tty_write(
61  rtems_device_major_number,
62  rtems_device_minor_number,
63  void *
64);
65
66
67
68/* tty2 entry points */
69rtems_device_driver tty2_initialize(
70  rtems_device_major_number,
71  rtems_device_minor_number,
72  void *
73);
74
75rtems_device_driver tty2_open(
76  rtems_device_major_number,
77  rtems_device_minor_number,
78  void *
79);
80
81rtems_device_driver tty2_control(
82  rtems_device_major_number,
83  rtems_device_minor_number,
84  void *
85);
86
87
88
89#define TTY1_DRIVER_TABLE_ENTRY \
90  { tty1_initialize, tty1_open, tty_close, \
91    tty_read, tty_write, tty1_control }
92
93
94#define TTY2_DRIVER_TABLE_ENTRY \
95  { tty2_initialize, tty2_open, tty_close, \
96    tty_read, tty_write, tty2_control }
97
98
99
100#ifdef __cplusplus
101}
102#endif
103/* end of include file */
104
105#endif  /* __tty_drv__  */
106
107
Note: See TracBrowser for help on using the repository browser.