X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/8c06c883e7b13c115d5ff207f79d4b68fccd5ad6..2236410f4582ab45ae8c384dd6eeeef5d10aab15:/lunaix-os/includes/hal/hwrtc.h?ds=sidebyside diff --git a/lunaix-os/includes/hal/hwrtc.h b/lunaix-os/includes/hal/hwrtc.h index a5ebb9c..c0186ff 100644 --- a/lunaix-os/includes/hal/hwrtc.h +++ b/lunaix-os/includes/hal/hwrtc.h @@ -16,6 +16,7 @@ struct hwrtc struct llist_header rtc_list; struct device* rtc_dev; + int id; char* name; void* data; ticks_t base_freq; @@ -29,15 +30,13 @@ struct hwrtc int (*chfreq)(struct hwrtc*, int); }; -extern const struct hwrtc* primary_rtc; - -void -hwrtc_init(); - struct hwrtc* -hwrtc_alloc_new(struct device_def* def, char* name); +hwrtc_alloc_new(char* name); void hwrtc_walltime(datetime_t* dt); +void +hwrtc_register(struct devclass* class, struct hwrtc* rtc); + #endif /* __LUNAIX_HWRTC_H */