Changeset 4cd4c5a in rtems


Ignore:
Timestamp:
Jun 22, 1998, 11:07:51 AM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
36152b0e
Parents:
58b1e95
Message:

Moved set and get Register and Data type defininitions to serial.h.

Cleaned up spacing.

Location:
c/src
Files:
8 edited

Legend:

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

    r58b1e95 r4cd4c5a  
    7171
    7272/*
    73  *  Types for get and set register routines
    74  */
    75 
    76 typedef unsigned8 (*getRegister_f)(unsigned32 port, unsigned8 register);
    77 typedef void      (*setRegister_f)(
    78                             unsigned32 port, unsigned8 reg, unsigned8 value);
    79 /*
    8073 *  Console Device Driver Entry Points
    8174 */
     
    8376{
    8477  /*
    85    * If the configuration dependant probe has located the device then
     78   * If the configuration dependent probe has located the device then
    8679   * assume it is there
    8780   */
  • c/src/lib/libchip/serial/ns16550.h

    r58b1e95 r4cd4c5a  
    2525 * Driver function table
    2626 */
     27
    2728extern console_fns ns16550_fns;
    2829extern console_fns ns16550_fns_polled;
     
    3132 * Flow control function tables
    3233 */
     34
    3335extern console_flow ns16550_flow_RTSCTS;
    3436extern console_flow ns16550_flow_DTRCTS;
  • c/src/lib/libchip/serial/ns16550_p.h

    r58b1e95 r4cd4c5a  
    3838} SP_READ_REGISTERS, *PSP_READ_REGISTERS;
    3939
    40 
    4140#define NS16550_RECEIVE_BUFFER   0
    4241#define NS16550_INTERRUPT_ENABLE 1
  • c/src/lib/libchip/serial/z85c30.c

    r58b1e95 r4cd4c5a  
    8585extern void set_vector( rtems_isr_entry, rtems_vector_number, int );
    8686
    87 /*
    88  *  Types for get and set register routines
    89  */
    90 
    91 typedef unsigned8 (*getRegister_f)(unsigned32 port, unsigned8 register);
    92 typedef void      (*setRegister_f)(
    93                             unsigned32 port, unsigned8 reg, unsigned8 value);
    94 typedef unsigned8 (*getData_f)(unsigned32 port);
    95 typedef void      (*setData_f)(unsigned32 port, unsigned8 value);
    9687
    9788
     
    300291{
    301292  /*
    302    * If the configuration dependant probe has located the device then
     293   * If the configuration dependent probe has located the device then
    303294   * assume it is there
    304295   */
     
    508499  getReg     = Console_Port_Tbl[minor].getRegister;
    509500  getData    = Console_Port_Tbl[minor].getData;
    510   getData    = Console_Port_Tbl[minor].getData;
     501  setData    = Console_Port_Tbl[minor].setData;
    511502
    512503  /*
  • c/src/libchip/serial/ns16550.c

    r58b1e95 r4cd4c5a  
    7171
    7272/*
    73  *  Types for get and set register routines
    74  */
    75 
    76 typedef unsigned8 (*getRegister_f)(unsigned32 port, unsigned8 register);
    77 typedef void      (*setRegister_f)(
    78                             unsigned32 port, unsigned8 reg, unsigned8 value);
    79 /*
    8073 *  Console Device Driver Entry Points
    8174 */
     
    8376{
    8477  /*
    85    * If the configuration dependant probe has located the device then
     78   * If the configuration dependent probe has located the device then
    8679   * assume it is there
    8780   */
  • c/src/libchip/serial/ns16550.h

    r58b1e95 r4cd4c5a  
    2525 * Driver function table
    2626 */
     27
    2728extern console_fns ns16550_fns;
    2829extern console_fns ns16550_fns_polled;
     
    3132 * Flow control function tables
    3233 */
     34
    3335extern console_flow ns16550_flow_RTSCTS;
    3436extern console_flow ns16550_flow_DTRCTS;
  • c/src/libchip/serial/ns16550_p.h

    r58b1e95 r4cd4c5a  
    3838} SP_READ_REGISTERS, *PSP_READ_REGISTERS;
    3939
    40 
    4140#define NS16550_RECEIVE_BUFFER   0
    4241#define NS16550_INTERRUPT_ENABLE 1
  • c/src/libchip/serial/z85c30.c

    r58b1e95 r4cd4c5a  
    8585extern void set_vector( rtems_isr_entry, rtems_vector_number, int );
    8686
    87 /*
    88  *  Types for get and set register routines
    89  */
    90 
    91 typedef unsigned8 (*getRegister_f)(unsigned32 port, unsigned8 register);
    92 typedef void      (*setRegister_f)(
    93                             unsigned32 port, unsigned8 reg, unsigned8 value);
    94 typedef unsigned8 (*getData_f)(unsigned32 port);
    95 typedef void      (*setData_f)(unsigned32 port, unsigned8 value);
    9687
    9788
     
    300291{
    301292  /*
    302    * If the configuration dependant probe has located the device then
     293   * If the configuration dependent probe has located the device then
    303294   * assume it is there
    304295   */
     
    508499  getReg     = Console_Port_Tbl[minor].getRegister;
    509500  getData    = Console_Port_Tbl[minor].getData;
    510   getData    = Console_Port_Tbl[minor].getData;
     501  setData    = Console_Port_Tbl[minor].setData;
    511502
    512503  /*
Note: See TracChangeset for help on using the changeset viewer.