Changeset 36152b0e in rtems


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

Moved get and set register/data typedefs to this file.

Location:
c/src
Files:
2 edited

Legend:

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

    r4cd4c5a r36152b0e  
    2424
    2525#include <ringbuf.h>
     26
     27/*
     28 *  Types for get and set register routines
     29 */
     30
     31typedef unsigned8 (*getRegister_f)(unsigned32 port, unsigned8 register);
     32typedef void      (*setRegister_f)(
     33                            unsigned32 port, unsigned8 reg, unsigned8 value);
     34typedef unsigned8 (*getData_f)(unsigned32 port);
     35typedef void      (*setData_f)(unsigned32 port, unsigned8 value);
    2636
    2737typedef struct _console_fns {
     
    5262  unsigned32     ulCtrlPort2;
    5363  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);
     64  getRegister_f  getRegister;
     65  setRegister_f  setRegister;
     66  getData_f      getData;
     67  setData_f      setData;
    5868  unsigned32     ulClock;
    5969  unsigned int   ulIntVector;
  • c/src/libchip/serial/serial.h

    r4cd4c5a r36152b0e  
    2424
    2525#include <ringbuf.h>
     26
     27/*
     28 *  Types for get and set register routines
     29 */
     30
     31typedef unsigned8 (*getRegister_f)(unsigned32 port, unsigned8 register);
     32typedef void      (*setRegister_f)(
     33                            unsigned32 port, unsigned8 reg, unsigned8 value);
     34typedef unsigned8 (*getData_f)(unsigned32 port);
     35typedef void      (*setData_f)(unsigned32 port, unsigned8 value);
    2636
    2737typedef struct _console_fns {
     
    5262  unsigned32     ulCtrlPort2;
    5363  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);
     64  getRegister_f  getRegister;
     65  setRegister_f  setRegister;
     66  getData_f      getData;
     67  setData_f      setData;
    5868  unsigned32     ulClock;
    5969  unsigned int   ulIntVector;
Note: See TracChangeset for help on using the changeset viewer.