summaryrefslogtreecommitdiffstats
path: root/sys/isa
diff options
context:
space:
mode:
authorroyger <royger@FreeBSD.org>2016-05-02 16:14:55 +0000
committerroyger <royger@FreeBSD.org>2016-05-02 16:14:55 +0000
commit390486acbcadb84e981b41ec5a2b6bc195263755 (patch)
treefe8088a33470fbb3d4f9f85491544c571d41d1b0 /sys/isa
parent43a683d6cb38305051e653f4d695413c60438230 (diff)
downloadFreeBSD-src-390486acbcadb84e981b41ec5a2b6bc195263755.zip
FreeBSD-src-390486acbcadb84e981b41ec5a2b6bc195263755.tar.gz
atrtc: export function to set RTC
This is going to be used by the Xen clock on Dom0 in order to set the RTC of the host. The current logic in atrtc_settime is moved to atrtc_set and the unused device_t parameter is removed from the atrtc_set function call so it can be safely used by other callers. Sponsored by: Citrix Systems R&D Reviewed by: kib, jhb Differential revision: https://reviews.freebsd.org/D6067
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/rtc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/isa/rtc.h b/sys/isa/rtc.h
index 8d86981..5c5a341 100644
--- a/sys/isa/rtc.h
+++ b/sys/isa/rtc.h
@@ -117,6 +117,7 @@ extern int atrtcclock_disable;
int rtcin(int reg);
void atrtc_restore(void);
void writertc(int reg, u_char val);
+void atrtc_set(struct timespec *ts);
#endif
#endif /* _I386_ISA_RTC_H_ */
OpenPOWER on IntegriCloud