1 | #ifndef __tty_drv__ |
---|
2 | #define __tty_drv__ |
---|
3 | /*************************************************************************** |
---|
4 | * |
---|
5 | * Copyright (c) 1999 ConnectTel, Inc. All Rights Reserved. |
---|
6 | * |
---|
7 | * MODULE DESCRIPTION: Prototype routines for the ttySx driver. |
---|
8 | * |
---|
9 | * by: Rosimildo da Silva: |
---|
10 | * rdasilva@connecttel.com |
---|
11 | * http://www.connecttel.com |
---|
12 | * |
---|
13 | ****************************************************************************/ |
---|
14 | |
---|
15 | |
---|
16 | /* functions */ |
---|
17 | #ifdef __cplusplus |
---|
18 | extern "C" { |
---|
19 | #endif |
---|
20 | |
---|
21 | /* ttyS1 entry points */ |
---|
22 | rtems_device_driver tty1_initialize( |
---|
23 | rtems_device_major_number, |
---|
24 | rtems_device_minor_number, |
---|
25 | void * |
---|
26 | ); |
---|
27 | |
---|
28 | rtems_device_driver tty1_open( |
---|
29 | rtems_device_major_number, |
---|
30 | rtems_device_minor_number, |
---|
31 | void * |
---|
32 | ); |
---|
33 | |
---|
34 | rtems_device_driver tty1_control( |
---|
35 | rtems_device_major_number, |
---|
36 | rtems_device_minor_number, |
---|
37 | void * |
---|
38 | ); |
---|
39 | |
---|
40 | /* tty1 & tty2 shared entry points */ |
---|
41 | rtems_device_driver tty_close( |
---|
42 | rtems_device_major_number, |
---|
43 | rtems_device_minor_number, |
---|
44 | void * |
---|
45 | ); |
---|
46 | |
---|
47 | rtems_device_driver tty_read( |
---|
48 | rtems_device_major_number, |
---|
49 | rtems_device_minor_number, |
---|
50 | void * |
---|
51 | ); |
---|
52 | |
---|
53 | rtems_device_driver tty_write( |
---|
54 | rtems_device_major_number, |
---|
55 | rtems_device_minor_number, |
---|
56 | void * |
---|
57 | ); |
---|
58 | |
---|
59 | /* tty2 entry points */ |
---|
60 | rtems_device_driver tty2_initialize( |
---|
61 | rtems_device_major_number, |
---|
62 | rtems_device_minor_number, |
---|
63 | void * |
---|
64 | ); |
---|
65 | |
---|
66 | rtems_device_driver tty2_open( |
---|
67 | rtems_device_major_number, |
---|
68 | rtems_device_minor_number, |
---|
69 | void * |
---|
70 | ); |
---|
71 | |
---|
72 | rtems_device_driver tty2_control( |
---|
73 | rtems_device_major_number, |
---|
74 | rtems_device_minor_number, |
---|
75 | void * |
---|
76 | ); |
---|
77 | |
---|
78 | #define TTY1_DRIVER_TABLE_ENTRY \ |
---|
79 | { tty1_initialize, tty1_open, tty_close, \ |
---|
80 | tty_read, tty_write, tty1_control } |
---|
81 | |
---|
82 | #define TTY2_DRIVER_TABLE_ENTRY \ |
---|
83 | { tty2_initialize, tty2_open, tty_close, \ |
---|
84 | tty_read, tty_write, tty2_control } |
---|
85 | |
---|
86 | #ifdef __cplusplus |
---|
87 | } |
---|
88 | #endif |
---|
89 | |
---|
90 | #endif /* __tty_drv__ */ |
---|