diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-07-28 23:03:40 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-07-28 23:03:40 +0000 |
commit | a1f514f197932b3e5fcb5e32a197ce1df836576a (patch) | |
tree | 3c25b8d3acd52fd6fe96915f515ac36b51ba40e9 /c/src/lib/libchip/rtc/rtc.h | |
parent | Corrected spacing. (diff) | |
download | rtems-a1f514f197932b3e5fcb5e32a197ce1df836576a.tar.bz2 |
First cut implementation of real-time clock support in libchip. This
version compiles cleanly but there is not a BSP with a configuration
table to utilize it.
Diffstat (limited to 'c/src/lib/libchip/rtc/rtc.h')
-rw-r--r-- | c/src/lib/libchip/rtc/rtc.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/c/src/lib/libchip/rtc/rtc.h b/c/src/lib/libchip/rtc/rtc.h index b517424b3c..05814b35be 100644 --- a/c/src/lib/libchip/rtc/rtc.h +++ b/c/src/lib/libchip/rtc/rtc.h @@ -20,11 +20,9 @@ * Types for get and set register routines */ -typedef unsigned8 (*getRegister_f)(unsigned32 port, unsigned8 register); -typedef void (*setRegister_f)( - unsigned32 port, unsigned8 reg, unsigned8 value); -typedef unsigned8 (*getData_f)(unsigned32 port); -typedef void (*setData_f)(unsigned32 port, unsigned8 value); +typedef unsigned32 (*getRegister_f)(unsigned32 port, unsigned8 register); +typedef void (*setRegister_f)( + unsigned32 port, unsigned8 reg, unsigned32 value); typedef struct _rtc_fns { boolean (*deviceProbe)(int minor); @@ -79,5 +77,8 @@ typedef struct _rtc_tbl { extern rtc_tbl RTC_Port_Tbl[]; extern unsigned long RTC_Port_Count; + +boolean rtc_probe( int minor ); + #endif /* end of include file */ |