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

4.104.114.84.9
Last change on this file since cba119c9 was cba119c9, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 17, 2005 at 10:34:02 AM

Remove CVS Log

  • 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 ****************************************************************************/
16
17/* functions */
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22/* ttyS1 entry points */
23rtems_device_driver tty1_initialize(
24  rtems_device_major_number,
25  rtems_device_minor_number,
26  void *
27);
28
29rtems_device_driver tty1_open(
30  rtems_device_major_number,
31  rtems_device_minor_number,
32  void *
33);
34
35rtems_device_driver tty1_control(
36  rtems_device_major_number,
37  rtems_device_minor_number,
38  void *
39);
40
41/* tty1 & tty2 shared entry points */
42rtems_device_driver tty_close(
43  rtems_device_major_number,
44  rtems_device_minor_number,
45  void *
46);
47
48rtems_device_driver tty_read(
49  rtems_device_major_number,
50  rtems_device_minor_number,
51  void *
52);
53
54rtems_device_driver tty_write(
55  rtems_device_major_number,
56  rtems_device_minor_number,
57  void *
58);
59
60/* tty2 entry points */
61rtems_device_driver tty2_initialize(
62  rtems_device_major_number,
63  rtems_device_minor_number,
64  void *
65);
66
67rtems_device_driver tty2_open(
68  rtems_device_major_number,
69  rtems_device_minor_number,
70  void *
71);
72
73rtems_device_driver tty2_control(
74  rtems_device_major_number,
75  rtems_device_minor_number,
76  void *
77);
78
79#define TTY1_DRIVER_TABLE_ENTRY \
80  { tty1_initialize, tty1_open, tty_close, \
81    tty_read, tty_write, tty1_control }
82
83#define TTY2_DRIVER_TABLE_ENTRY \
84  { tty2_initialize, tty2_open, tty_close, \
85    tty_read, tty_write, tty2_control }
86
87#ifdef __cplusplus
88}
89#endif
90/* end of include file */
91
92#endif  /* __tty_drv__  */
Note: See TracBrowser for help on using the repository browser.