aboutsummaryrefslogtreecommitdiff
path: root/sys/isa
diff options
context:
space:
mode:
authorRoger Pau Monné <royger@FreeBSD.org>2016-05-02 16:14:55 +0000
committerRoger Pau Monné <royger@FreeBSD.org>2016-05-02 16:14:55 +0000
commitf65466eb3a0ef389ed3be9fdfda660848a6bac34 (patch)
treefe8088a33470fbb3d4f9f85491544c571d41d1b0 /sys/isa
parentaf5bb69c5a064afa2e751adbfd38c80965f34a66 (diff)
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
Notes
Notes: svn path=/head/; revision=298928
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 8d86981ea397..5c5a3416dba6 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_ */