NetBSD/sys/arch/x86/include/rtc.h
bouyer 3ac2dfe9bf Split mc146818-related functions from clock.c into rtc.c.
Call rtc_set_ymdhms() from xen/xen/clock.c:xen_rtc_set() for xen3 dom0
kernels as the Xen3 hypervisor doesn't write the new date/time to the CMOS
by itself.
Now a XEN3_DOM0 kernel properly updates the CMOS time.
2009-06-16 21:05:33 +00:00

8 lines
251 B
C

/* $NetBSD: rtc.h,v 1.1 2009/06/16 21:05:34 bouyer Exp $ */
#include <dev/clock_subr.h>
void rtc_register(void);
int rtc_get_ymdhms(todr_chip_handle_t, struct clock_ymdhms *);
int rtc_set_ymdhms(todr_chip_handle_t, struct clock_ymdhms *);