Changeset c95e927 in rtems for c/src/libchip/rtc/m48t08.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/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 */
Note: See TracChangeset for help on using the changeset viewer.