1 | #ifdef ppc405 |
---|
2 | #ifndef __tty_drv__ |
---|
3 | #define __tty_drv__ |
---|
4 | |
---|
5 | /* functions */ |
---|
6 | #ifdef __cplusplus |
---|
7 | extern "C" { |
---|
8 | #endif |
---|
9 | |
---|
10 | |
---|
11 | /* ttyS1 entry points */ |
---|
12 | rtems_device_driver tty0_initialize( |
---|
13 | rtems_device_major_number, |
---|
14 | rtems_device_minor_number, |
---|
15 | void * |
---|
16 | ); |
---|
17 | |
---|
18 | rtems_device_driver tty0_open( |
---|
19 | rtems_device_major_number, |
---|
20 | rtems_device_minor_number, |
---|
21 | void * |
---|
22 | ); |
---|
23 | |
---|
24 | rtems_device_driver tty0_control( |
---|
25 | rtems_device_major_number, |
---|
26 | rtems_device_minor_number, |
---|
27 | void * |
---|
28 | ); |
---|
29 | |
---|
30 | |
---|
31 | /* tty1 & tty2 shared entry points */ |
---|
32 | rtems_device_driver tty0_close( |
---|
33 | rtems_device_major_number, |
---|
34 | rtems_device_minor_number, |
---|
35 | void * |
---|
36 | ); |
---|
37 | |
---|
38 | |
---|
39 | rtems_device_driver tty0_read( |
---|
40 | rtems_device_major_number, |
---|
41 | rtems_device_minor_number, |
---|
42 | void * |
---|
43 | ); |
---|
44 | |
---|
45 | rtems_device_driver tty0_write( |
---|
46 | rtems_device_major_number, |
---|
47 | rtems_device_minor_number, |
---|
48 | void * |
---|
49 | ); |
---|
50 | |
---|
51 | |
---|
52 | #define TTY0_DRIVER_TABLE_ENTRY \ |
---|
53 | { tty0_initialize, tty0_open, tty0_close, \ |
---|
54 | tty0_read, tty0_write, tty0_control } |
---|
55 | |
---|
56 | |
---|
57 | #ifdef __cplusplus |
---|
58 | } |
---|
59 | #endif |
---|
60 | /* end of include file */ |
---|
61 | |
---|
62 | #endif /* __tty_drv__ */ |
---|
63 | #endif /* ppc405 */ |
---|