1 #ifndef __LUNAIX_HWRTC_H
2 #define __LUNAIX_HWRTC_H
4 #include <lunaix/time.h>
13 int (*supported)(struct hwrtc*);
14 void (*init)(struct hwrtc*);
16 void (*get_walltime)(struct hwrtc*, datetime_t*);
18 void (*do_ticking)(struct hwrtc*, void (*on_tick)());
19 void (*end_ticking)(struct hwrtc*);
22 extern const struct hwrtc* current_rtc;
31 hwrtc_walltime(datetime_t* dt);
33 #endif /* __LUNAIX_HWRTC_H */