From 390486acbcadb84e981b41ec5a2b6bc195263755 Mon Sep 17 00:00:00 2001 From: royger Date: Mon, 2 May 2016 16:14:55 +0000 Subject: 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 --- sys/isa/rtc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/isa') 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_ */ -- cgit v1.1