git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: make pci device driver loading passive, pci bus scanner will not load them...
[lunaix-os.git]
/
lunaix-os
/
includes
/
hal
/
hwrtc.h
diff --git
a/lunaix-os/includes/hal/hwrtc.h
b/lunaix-os/includes/hal/hwrtc.h
index a5ebb9c21e0587c3f9de6df0d2ee895fb0983aef..c0186ff7cd14b363ba3b0b66d36347e0937d00d3 100644
(file)
--- 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;
struct llist_header rtc_list;
struct device* rtc_dev;
+ int id;
char* name;
void* data;
ticks_t base_freq;
char* name;
void* data;
ticks_t base_freq;
@@
-29,15
+30,13
@@
struct hwrtc
int (*chfreq)(struct hwrtc*, int);
};
int (*chfreq)(struct hwrtc*, int);
};
-extern const struct hwrtc* primary_rtc;
-
-void
-hwrtc_init();
-
struct hwrtc*
struct hwrtc*
-hwrtc_alloc_new(
struct device_def* def,
char* name);
+hwrtc_alloc_new(char* name);
void
hwrtc_walltime(datetime_t* dt);
void
hwrtc_walltime(datetime_t* dt);
+void
+hwrtc_register(struct devclass* class, struct hwrtc* rtc);
+
#endif /* __LUNAIX_HWRTC_H */
#endif /* __LUNAIX_HWRTC_H */