diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2008-04-14 07:57:15 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2008-04-14 07:57:15 +0000 |
commit | 7e82012aff9888d64a85d19aaed51def9ebbff22 (patch) | |
tree | 450f845347a839c23ddd6a2d6910af54aeef98e5 /sys/isa/rtc.h | |
parent | 728bc9534570610d82ff0a11ddde04f24f4aa21b (diff) | |
download | src-7e82012aff9888d64a85d19aaed51def9ebbff22.tar.gz src-7e82012aff9888d64a85d19aaed51def9ebbff22.zip |
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.
Notes
Notes:
svn path=/head/; revision=178192
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 35bef94e08e9..c802b0ba923a 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_ */ |