Changeset c95e927 in rtems for c/src/libchip/rtc/icm7170.h


Ignore:
Timestamp:
Jul 29, 1998, 12:18:11 AM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
6a0f5ac2
Parents:
ee306fd
Message:

Added prototype for default register access routines to header files.

Corrected prototypes to reflect unsigned32 values being passed around
instead of unsigned8's.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/rtc/icm7170.h

    ree306fd rc95e927  
    4949extern rtc_fns icm7170_fns;
    5050
     51/*
     52 * Default register access routines
     53 */
     54
     55unsigned32 icm7170_get_register(    /* registers are at 1 byte boundaries */
     56  unsigned32  ulCtrlPort,           /*   and accessed as bytes            */
     57  unsigned8   ucRegNum
     58);
     59
     60void  icm7170_set_register(
     61  unsigned32  ulCtrlPort,
     62  unsigned8   ucRegNum,
     63  unsigned32  ucData
     64);
     65
     66unsigned32 icm7170_get_register_2(  /* registers are at 2 byte boundaries */
     67  unsigned32  ulCtrlPort,           /*   and accessed as bytes            */
     68  unsigned8   ucRegNum
     69);
     70
     71void  icm7170_set_register_2(
     72  unsigned32  ulCtrlPort,
     73  unsigned8   ucRegNum,
     74  unsigned32  ucData
     75);
     76
     77unsigned32 icm7170_get_register_4(  /* registers are at 4 byte boundaries */
     78  unsigned32  ulCtrlPort,           /*   and accessed as bytes            */
     79  unsigned8   ucRegNum
     80);
     81
     82void  icm7170_set_register_4(
     83  unsigned32  ulCtrlPort,
     84  unsigned8   ucRegNum,
     85  unsigned32  ucData
     86);
     87
     88unsigned32 icm7170_get_register_8(  /* registers are at 8 byte boundaries */
     89  unsigned32  ulCtrlPort,           /*   and accessed as bytes            */
     90  unsigned8   ucRegNum
     91);
     92
     93void  icm7170_set_register_8(
     94  unsigned32  ulCtrlPort,
     95  unsigned8   ucRegNum,
     96  unsigned32  ucData
     97);
     98
    5199#endif
    52100/* end of include file */
Note: See TracChangeset for help on using the changeset viewer.