diff options
author | phk <phk@FreeBSD.org> | 2008-04-14 07:57:15 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2008-04-14 07:57:15 +0000 |
commit | 0f73a35e529f06e0336161a85c45b7579e92f2b3 (patch) | |
tree | 450f845347a839c23ddd6a2d6910af54aeef98e5 /sys/isa/rtc.h | |
parent | 9d72a61c728bf62182ed20abef4a8463f15d817e (diff) | |
download | FreeBSD-src-0f73a35e529f06e0336161a85c45b7579e92f2b3.zip FreeBSD-src-0f73a35e529f06e0336161a85c45b7579e92f2b3.tar.gz |
atrtc.c is a repocopy of the RTC device driver from i386/isa/clock.c
In addition to the device driver functionality, it exposes a number of
functions which various other bits of code use to fondle the RTC chip.
Diffstat (limited to 'sys/isa/rtc.h')
-rw-r--r-- | sys/isa/rtc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/isa/rtc.h b/sys/isa/rtc.h index 35bef94..c802b0b 100644 --- a/sys/isa/rtc.h +++ b/sys/isa/rtc.h @@ -110,4 +110,15 @@ #define RTC_EXTHI 0x18 /* low byte of extended mem size */ #define RTC_CENTURY 0x32 /* current century */ + +#ifdef _KERNEL +extern struct mtx clock_lock; +int rtcin(int reg); +void atrtc_start(void); +void atrtc_rate(unsigned rate); +void atrtc_enable_intr(void); +void atrtc_restore(void); +void writertc(int reg, u_char val); +#endif + #endif /* _I386_ISA_RTC_H_ */ |