1 #ifndef HWCLOCK_CLOCK_H
2 #define HWCLOCK_CLOCK_H
18 struct hwclock_control
{
21 #if defined(__linux__) && defined(__alpha__)
22 unsigned long epoch_option
;
35 #if defined(__linux__) && defined(__alpha__)
48 universal
:1; /* will store hw_clock_is_utc() return value */
53 int (*get_permissions
) (void);
54 int (*read_hardware_clock
) (const struct hwclock_control
*ctl
, struct tm
* tm
);
55 int (*set_hardware_clock
) (const struct hwclock_control
*ctl
, const struct tm
* tm
);
56 int (*synchronize_to_clock_tick
) (const struct hwclock_control
*ctl
);
59 extern struct clock_ops
*probe_for_cmos_clock(void);
60 extern struct clock_ops
*probe_for_rtc_clock(const struct hwclock_control
*ctl
);
66 extern unsigned long epoch_option
;
67 extern double time_diff(struct timeval subtrahend
, struct timeval subtractor
);
70 #if defined(__linux__) && defined(__alpha__)
71 extern int get_epoch_rtc(const struct hwclock_control
*ctl
, unsigned long *epoch
);
72 extern int set_epoch_rtc(const struct hwclock_control
*ctl
);
75 extern void hwclock_exit(const struct hwclock_control
*ctl
, int status
);
77 #endif /* HWCLOCK_CLOCK_H */