Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:40

0001 /**
0002  * @file
0003  * @ingroup i386_tty
0004  * @brief ttySx driver
0005  */
0006 
0007 #ifndef __tty_drv__
0008 #define __tty_drv__
0009 /***************************************************************************
0010  *
0011  * Copyright (c) 1999 ConnectTel, Inc. All Rights Reserved.
0012  *
0013  * MODULE DESCRIPTION: Prototype routines for the ttySx driver.
0014  *
0015  * by: Rosimildo da Silva:
0016  *     rdasilva@connecttel.com
0017  *     http://www.connecttel.com
0018  *
0019  ****************************************************************************/
0020 
0021 /**
0022  * @defgroup i386_tty ttSx
0023  * @ingroup i386_comm
0024  * @brief i386 tySx driver
0025  * @{
0026  */
0027 
0028 /* functions */
0029 #ifdef __cplusplus
0030 extern "C" {
0031 #endif
0032 
0033 /** @brief ttyS1 entry points */
0034 rtems_device_driver tty1_initialize(
0035   rtems_device_major_number,
0036   rtems_device_minor_number,
0037   void *
0038 );
0039 
0040 rtems_device_driver tty1_open(
0041   rtems_device_major_number,
0042   rtems_device_minor_number,
0043   void *
0044 );
0045 
0046 rtems_device_driver tty1_control(
0047   rtems_device_major_number,
0048   rtems_device_minor_number,
0049   void *
0050 );
0051 
0052 /** @brief tty1 & tty2 shared entry points */
0053 rtems_device_driver tty_close(
0054   rtems_device_major_number,
0055   rtems_device_minor_number,
0056   void *
0057 );
0058 
0059 rtems_device_driver tty_read(
0060   rtems_device_major_number,
0061   rtems_device_minor_number,
0062   void *
0063 );
0064 
0065 rtems_device_driver tty_write(
0066   rtems_device_major_number,
0067   rtems_device_minor_number,
0068   void *
0069 );
0070 
0071 /** @brief tty2 entry points */
0072 rtems_device_driver tty2_initialize(
0073   rtems_device_major_number,
0074   rtems_device_minor_number,
0075   void *
0076 );
0077 
0078 rtems_device_driver tty2_open(
0079   rtems_device_major_number,
0080   rtems_device_minor_number,
0081   void *
0082 );
0083 
0084 rtems_device_driver tty2_control(
0085   rtems_device_major_number,
0086   rtems_device_minor_number,
0087   void *
0088 );
0089 
0090 #define TTY1_DRIVER_TABLE_ENTRY \
0091   { tty1_initialize, tty1_open, tty_close, \
0092     tty_read, tty_write, tty1_control }
0093 
0094 #define TTY2_DRIVER_TABLE_ENTRY \
0095   { tty2_initialize, tty2_open, tty_close, \
0096     tty_read, tty_write, tty2_control }
0097 
0098 /** @} */
0099 
0100 #ifdef __cplusplus
0101 }
0102 #endif
0103 
0104 #endif  /* __tty_drv__  */