1 #ifndef HWCLOCK_CLOCK_H
2 #define HWCLOCK_CLOCK_H
14 int (*get_permissions
) (void);
15 int (*read_hardware_clock
) (struct tm
* tm
);
16 int (*set_hardware_clock
) (const struct tm
* tm
);
17 int (*synchronize_to_clock_tick
) (void);
20 extern struct clock_ops
*probe_for_cmos_clock(void);
21 extern struct clock_ops
*probe_for_rtc_clock(void);
22 extern struct clock_ops
*probe_for_kd_clock(void);
27 extern char *progname
;
29 extern unsigned long epoch_option
;
30 extern double time_diff(struct timeval subtrahend
, struct timeval subtractor
);
32 extern void set_cmos_epoch(int ARCconsole
, int SRM
);
33 extern void set_cmos_access(int Jensen
, int funky_toy
);
36 extern int get_epoch_rtc(unsigned long *epoch
, int silent
);
37 extern int set_epoch_rtc(unsigned long epoch
);
38 extern char *rtc_dev_name
;
41 extern void hwaudit_exit(int status
);
42 # define hwclock_exit(_status) hwaudit_exit(_status)
44 # define hwclock_exit(_status) exit(_status)
47 #endif /* HWCLOCK_CLOCK_H */