Changeset c0573d7 in rtems


Ignore:
Timestamp:
07/15/98 21:40:42 (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
38e717f
Parents:
0f61336
Message:

Added comment to remove use of TxBuffer? ring buffer in all libchip drivers.
The scheme used in the mc68681 is the one to follow.

Location:
c/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libchip/serial/serial.h

    r0f61336 rc0573d7  
    5353} console_flow;
    5454
     55typedef enum {
     56  SERIAL_MC68681,              /* Motorola MC68681 or Exar 88681 */
     57  SERIAL_NS16550,              /* National Semiconductor NS16550 */
     58  SERIAL_Z85C30,               /* Zilog Z85C30 */
     59  SERIAL_CUSTOM                /* BSP specific driver */
     60
     61} console_devs;
     62
    5563/*
    5664 * Each field is interpreted thus:
    5765 *
    5866 * sDeviceName  This is the name of the device.
     67 *
     68 * deviceType   This indicates the chip type.  It is especially important when
     69 *              multiple devices share the same interrupt vector and must be
     70 *              distinguished.
    5971 *
    6072 * pDeviceFns   This is a pointer to the set of driver routines to use.
     
    113125typedef struct _console_tbl {
    114126  char          *sDeviceName;
     127  console_devs   deviceType;
    115128  console_fns   *pDeviceFns;
    116129  boolean      (*deviceProbe)(int minor);
     
    133146  void                   *termios_data;
    134147  volatile boolean        bActive;
    135   volatile Ring_buffer_t  TxBuffer;
     148  volatile Ring_buffer_t  TxBuffer;  /* XXX remove from other drivers */
    136149  /*
    137150   * This field may be used for any purpose required by the driver
  • c/src/libchip/serial/serial.h

    r0f61336 rc0573d7  
    5353} console_flow;
    5454
     55typedef enum {
     56  SERIAL_MC68681,              /* Motorola MC68681 or Exar 88681 */
     57  SERIAL_NS16550,              /* National Semiconductor NS16550 */
     58  SERIAL_Z85C30,               /* Zilog Z85C30 */
     59  SERIAL_CUSTOM                /* BSP specific driver */
     60
     61} console_devs;
     62
    5563/*
    5664 * Each field is interpreted thus:
    5765 *
    5866 * sDeviceName  This is the name of the device.
     67 *
     68 * deviceType   This indicates the chip type.  It is especially important when
     69 *              multiple devices share the same interrupt vector and must be
     70 *              distinguished.
    5971 *
    6072 * pDeviceFns   This is a pointer to the set of driver routines to use.
     
    113125typedef struct _console_tbl {
    114126  char          *sDeviceName;
     127  console_devs   deviceType;
    115128  console_fns   *pDeviceFns;
    116129  boolean      (*deviceProbe)(int minor);
     
    133146  void                   *termios_data;
    134147  volatile boolean        bActive;
    135   volatile Ring_buffer_t  TxBuffer;
     148  volatile Ring_buffer_t  TxBuffer;  /* XXX remove from other drivers */
    136149  /*
    137150   * This field may be used for any purpose required by the driver
Note: See TracChangeset for help on using the changeset viewer.