Changeset c95e927 in rtems for c/src/libchip/rtc


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.

Location:
c/src/libchip/rtc
Files:
4 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 */
  • c/src/libchip/rtc/icm7170_reg.c

    ree306fd rc95e927  
    3232 */
    3333
    34 unsigned8 _ICM7170_NAME(icm7170_get_register)(
     34unsigned32 _ICM7170_NAME(icm7170_get_register)(
    3535  unsigned32  ulCtrlPort,
    3636  unsigned8   ucRegNum
     
    5151  unsigned32  ulCtrlPort,
    5252  unsigned8   ucRegNum,
    53   unsigned8   ucData
     53  unsigned32  ucData
    5454)
    5555{
  • c/src/libchip/rtc/m48t08.h

    ree306fd rc95e927  
    3939extern rtc_fns m48t08_fns;
    4040
     41/*
     42 * Default register access routines
     43 */
     44
     45unsigned32 m48t08_get_register(     /* registers are at 1 byte boundaries */
     46  unsigned32  ulCtrlPort,           /*   and accessed as bytes            */
     47  unsigned8   ucRegNum
     48);
     49
     50void  m48t08_set_register(
     51  unsigned32  ulCtrlPort,
     52  unsigned8   ucRegNum,
     53  unsigned32  ucData
     54);
     55
     56unsigned32 m48t08_get_register_2(   /* registers are at 2 byte boundaries */
     57  unsigned32  ulCtrlPort,           /*   and accessed as bytes            */
     58  unsigned8   ucRegNum
     59);
     60
     61void  m48t08_set_register_2(
     62  unsigned32  ulCtrlPort,
     63  unsigned8   ucRegNum,
     64  unsigned32  ucData
     65);
     66
     67unsigned32 m48t08_get_register_4(   /* registers are at 4 byte boundaries */
     68  unsigned32  ulCtrlPort,           /*   and accessed as bytes            */
     69  unsigned8   ucRegNum
     70);
     71
     72void  m48t08_set_register_4(
     73  unsigned32  ulCtrlPort,
     74  unsigned8   ucRegNum,
     75  unsigned32  ucData
     76);
     77
     78unsigned32 m48t08_get_register_8(   /* registers are at 8 byte boundaries */
     79  unsigned32  ulCtrlPort,           /*   and accessed as bytes            */
     80  unsigned8   ucRegNum
     81);
     82
     83void  m48t08_set_register_8(
     84  unsigned32  ulCtrlPort,
     85  unsigned8   ucRegNum,
     86  unsigned32  ucData
     87);
     88
    4189#endif
    4290/* end of include file */
  • c/src/libchip/rtc/m48t08_reg.c

    ree306fd rc95e927  
    3232 */
    3333
    34 unsigned8 _M48T08_NAME(m48t08_get_register)(
     34unsigned32 _M48T08_NAME(m48t08_get_register)(
    3535  unsigned32  ulCtrlPort,
    3636  unsigned8   ucRegNum
     
    5151  unsigned32  ulCtrlPort,
    5252  unsigned8   ucRegNum,
    53   unsigned8   ucData
     53  unsigned32  ucData
    5454)
    5555{
Note: See TracChangeset for help on using the changeset viewer.