Changeset 58b1e95 in rtems


Ignore:
Timestamp:
Jun 22, 1998, 10:34:34 AM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
4cd4c5a
Parents:
424e23ee
Message:

Corrected spacing

Location:
c/src
Files:
2 edited

Legend:

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

    r424e23ee r58b1e95  
    2727typedef struct _console_fns {
    2828  boolean (*deviceProbe)(int minor);
    29   int (*deviceFirstOpen)(int major, int minor, void *arg);
    30   int (*deviceLastClose)(int major, int minor, void *arg);
    31   int (*deviceRead)(int minor);
    32   int (*deviceWrite)(int minor, const char *buf, int len);
    33   void  (*deviceInitialize)(int minor);
    34   void  (*deviceWritePolled)(int minor, char cChar);
    35   int deviceOutputUsesInterrupts;
     29  int     (*deviceFirstOpen)(int major, int minor, void *arg);
     30  int     (*deviceLastClose)(int major, int minor, void *arg);
     31  int     (*deviceRead)(int minor);
     32  int     (*deviceWrite)(int minor, const char *buf, int len);
     33  void    (*deviceInitialize)(int minor);
     34  void    (*deviceWritePolled)(int minor, char cChar);
     35  int       deviceOutputUsesInterrupts;
    3636} console_fns;
    3737
     
    4242
    4343typedef struct _console_tbl {
    44   char    *sDeviceName;
    45   console_fns *pDeviceFns;
    46   boolean   (*deviceProbe)(int minor);
     44  char          *sDeviceName;
     45  console_fns   *pDeviceFns;
     46  boolean      (*deviceProbe)(int minor);
    4747  console_flow  *pDeviceFlow;
    48   unsigned32  ulMargin;
    49   unsigned32  ulHysteresis;
    50   void    *pDeviceParams;
    51   unsigned32  ulCtrlPort1;
    52   unsigned32  ulCtrlPort2;
    53   unsigned32  ulDataPort;
    54         unsigned8       (*getRegister)(unsigned32 port, unsigned8 register);
    55         void            (*setRegister)(
    56                             unsigned32 port, unsigned8 reg, unsigned8 value);
    57         unsigned8       (*getData)(unsigned32 port);
    58         void            (*setData)(unsigned32 port, unsigned8 value);
    59         unsigned32      ulClock;
    60   unsigned int  ulIntVector;
     48  unsigned32     ulMargin;
     49  unsigned32     ulHysteresis;
     50  void          *pDeviceParams;
     51  unsigned32     ulCtrlPort1;
     52  unsigned32     ulCtrlPort2;
     53  unsigned32     ulDataPort;
     54  unsigned8    (*getRegister)(unsigned32 port, unsigned8 register);
     55  void         (*setRegister)(unsigned32 port, unsigned8 reg, unsigned8 value);
     56  unsigned8    (*getData)(unsigned32 port);
     57  void         (*setData)(unsigned32 port, unsigned8 value);
     58  unsigned32     ulClock;
     59  unsigned int   ulIntVector;
    6160} console_tbl;
    6261
    6362typedef struct _console_data {
    64   void  *termios_data;
    65   volatile boolean  bActive;
     63  void                   *termios_data;
     64  volatile boolean        bActive;
    6665  volatile Ring_buffer_t  TxBuffer;
    6766  /*
    6867   * This field may be used for any purpose required by the driver
    6968   */
    70   void  *pDeviceContext;
     69  void                   *pDeviceContext;
    7170} console_data;
    7271
  • c/src/libchip/serial/serial.h

    r424e23ee r58b1e95  
    2727typedef struct _console_fns {
    2828  boolean (*deviceProbe)(int minor);
    29   int (*deviceFirstOpen)(int major, int minor, void *arg);
    30   int (*deviceLastClose)(int major, int minor, void *arg);
    31   int (*deviceRead)(int minor);
    32   int (*deviceWrite)(int minor, const char *buf, int len);
    33   void  (*deviceInitialize)(int minor);
    34   void  (*deviceWritePolled)(int minor, char cChar);
    35   int deviceOutputUsesInterrupts;
     29  int     (*deviceFirstOpen)(int major, int minor, void *arg);
     30  int     (*deviceLastClose)(int major, int minor, void *arg);
     31  int     (*deviceRead)(int minor);
     32  int     (*deviceWrite)(int minor, const char *buf, int len);
     33  void    (*deviceInitialize)(int minor);
     34  void    (*deviceWritePolled)(int minor, char cChar);
     35  int       deviceOutputUsesInterrupts;
    3636} console_fns;
    3737
     
    4242
    4343typedef struct _console_tbl {
    44   char    *sDeviceName;
    45   console_fns *pDeviceFns;
    46   boolean   (*deviceProbe)(int minor);
     44  char          *sDeviceName;
     45  console_fns   *pDeviceFns;
     46  boolean      (*deviceProbe)(int minor);
    4747  console_flow  *pDeviceFlow;
    48   unsigned32  ulMargin;
    49   unsigned32  ulHysteresis;
    50   void    *pDeviceParams;
    51   unsigned32  ulCtrlPort1;
    52   unsigned32  ulCtrlPort2;
    53   unsigned32  ulDataPort;
    54         unsigned8       (*getRegister)(unsigned32 port, unsigned8 register);
    55         void            (*setRegister)(
    56                             unsigned32 port, unsigned8 reg, unsigned8 value);
    57         unsigned8       (*getData)(unsigned32 port);
    58         void            (*setData)(unsigned32 port, unsigned8 value);
    59         unsigned32      ulClock;
    60   unsigned int  ulIntVector;
     48  unsigned32     ulMargin;
     49  unsigned32     ulHysteresis;
     50  void          *pDeviceParams;
     51  unsigned32     ulCtrlPort1;
     52  unsigned32     ulCtrlPort2;
     53  unsigned32     ulDataPort;
     54  unsigned8    (*getRegister)(unsigned32 port, unsigned8 register);
     55  void         (*setRegister)(unsigned32 port, unsigned8 reg, unsigned8 value);
     56  unsigned8    (*getData)(unsigned32 port);
     57  void         (*setData)(unsigned32 port, unsigned8 value);
     58  unsigned32     ulClock;
     59  unsigned int   ulIntVector;
    6160} console_tbl;
    6261
    6362typedef struct _console_data {
    64   void  *termios_data;
    65   volatile boolean  bActive;
     63  void                   *termios_data;
     64  volatile boolean        bActive;
    6665  volatile Ring_buffer_t  TxBuffer;
    6766  /*
    6867   * This field may be used for any purpose required by the driver
    6968   */
    70   void  *pDeviceContext;
     69  void                   *pDeviceContext;
    7170} console_data;
    7271
Note: See TracChangeset for help on using the changeset viewer.