X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/f6ab9c9ababa2cf6e5c723b83ffb9362094054e8..99f2ed669601a61f4f0210e0b481ff877cd9bea7:/lunaix-os/includes/hal/hwrtc.h diff --git a/lunaix-os/includes/hal/hwrtc.h b/lunaix-os/includes/hal/hwrtc.h index fcd4d48..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(char* driver_id); +hwrtc_alloc_new(char* name); void hwrtc_walltime(datetime_t* dt); +void +hwrtc_register(struct devclass* class, struct hwrtc* rtc); + #endif /* __LUNAIX_HWRTC_H */