From a1f514f197932b3e5fcb5e32a197ce1df836576a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 28 Jul 1998 23:03:40 +0000 Subject: 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. --- c/src/lib/libchip/rtc/rtc.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'c/src/lib/libchip/rtc/rtc.h') 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 */ -- cgit v1.2.3