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 |
---|
22 | extern "C" { |
---|
23 | #endif |
---|
24 | |
---|
25 | |
---|
26 | /* ttyS1 entry points */ |
---|
27 | rtems_device_driver tty1_initialize( |
---|
28 | rtems_device_major_number, |
---|
29 | rtems_device_minor_number, |
---|
30 | void * |
---|
31 | ); |
---|
32 | |
---|
33 | rtems_device_driver tty1_open( |
---|
34 | rtems_device_major_number, |
---|
35 | rtems_device_minor_number, |
---|
36 | void * |
---|
37 | ); |
---|
38 | |
---|
39 | rtems_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 */ |
---|
47 | rtems_device_driver tty_close( |
---|
48 | rtems_device_major_number, |
---|
49 | rtems_device_minor_number, |
---|
50 | void * |
---|
51 | ); |
---|
52 | |
---|
53 | |
---|
54 | rtems_device_driver tty_read( |
---|
55 | rtems_device_major_number, |
---|
56 | rtems_device_minor_number, |
---|
57 | void * |
---|
58 | ); |
---|
59 | |
---|
60 | rtems_device_driver tty_write( |
---|
61 | rtems_device_major_number, |
---|
62 | rtems_device_minor_number, |
---|
63 | void * |
---|
64 | ); |
---|
65 | |
---|
66 | |
---|
67 | |
---|
68 | /* tty2 entry points */ |
---|
69 | rtems_device_driver tty2_initialize( |
---|
70 | rtems_device_major_number, |
---|
71 | rtems_device_minor_number, |
---|
72 | void * |
---|
73 | ); |
---|
74 | |
---|
75 | rtems_device_driver tty2_open( |
---|
76 | rtems_device_major_number, |
---|
77 | rtems_device_minor_number, |
---|
78 | void * |
---|
79 | ); |
---|
80 | |
---|
81 | rtems_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 | |
---|