[b459526] | 1 | #ifndef __tty_drv__ |
---|
| 2 | #define __tty_drv__ |
---|
| 3 | /*************************************************************************** |
---|
| 4 | * |
---|
| 5 | * $Header$ |
---|
| 6 | * |
---|
| 7 | * Copyright (c) 1999 ConnectTel, Inc. All Rights Reserved. |
---|
[6128a4a] | 8 | * |
---|
[b459526] | 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 |
---|
| 19 | extern "C" { |
---|
| 20 | #endif |
---|
| 21 | |
---|
| 22 | /* ttyS1 entry points */ |
---|
| 23 | rtems_device_driver tty1_initialize( |
---|
| 24 | rtems_device_major_number, |
---|
| 25 | rtems_device_minor_number, |
---|
| 26 | void * |
---|
| 27 | ); |
---|
| 28 | |
---|
| 29 | rtems_device_driver tty1_open( |
---|
| 30 | rtems_device_major_number, |
---|
| 31 | rtems_device_minor_number, |
---|
| 32 | void * |
---|
| 33 | ); |
---|
| 34 | |
---|
| 35 | rtems_device_driver tty1_control( |
---|
| 36 | rtems_device_major_number, |
---|
| 37 | rtems_device_minor_number, |
---|
| 38 | void * |
---|
| 39 | ); |
---|
| 40 | |
---|
| 41 | /* tty1 & tty2 shared entry points */ |
---|
| 42 | rtems_device_driver tty_close( |
---|
| 43 | rtems_device_major_number, |
---|
| 44 | rtems_device_minor_number, |
---|
| 45 | void * |
---|
| 46 | ); |
---|
| 47 | |
---|
| 48 | rtems_device_driver tty_read( |
---|
| 49 | rtems_device_major_number, |
---|
| 50 | rtems_device_minor_number, |
---|
| 51 | void * |
---|
| 52 | ); |
---|
| 53 | |
---|
| 54 | rtems_device_driver tty_write( |
---|
| 55 | rtems_device_major_number, |
---|
| 56 | rtems_device_minor_number, |
---|
| 57 | void * |
---|
| 58 | ); |
---|
| 59 | |
---|
| 60 | /* tty2 entry points */ |
---|
| 61 | rtems_device_driver tty2_initialize( |
---|
| 62 | rtems_device_major_number, |
---|
| 63 | rtems_device_minor_number, |
---|
| 64 | void * |
---|
| 65 | ); |
---|
| 66 | |
---|
| 67 | rtems_device_driver tty2_open( |
---|
| 68 | rtems_device_major_number, |
---|
| 69 | rtems_device_minor_number, |
---|
| 70 | void * |
---|
| 71 | ); |
---|
| 72 | |
---|
| 73 | rtems_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__ */ |
---|