1 #ifndef __LUNAIX_DEVTREE_TOP_H
2 #define __LUNAIX_DEVTREE_TOP_H
7 #ifdef CONFIG_USE_DEVICETREE
10 #include <lunaix/ds/hashtable.h>
11 #include <lunaix/ds/list.h>
12 #include <klibc/hash.h>
14 typedef struct dt_node* devtree_link_t;
16 #define dt_node_morpher morphable_attrs(dt_node, mobj)
18 struct dtm_driver_info
20 struct list_node node;
24 struct dtm_driver_record
26 struct hlist_node node;
27 struct list_head infos;
28 struct device_def* def;
32 dtm_register_entry(struct device_def* def, const char* pattern);
36 #include <lunaix/types.h>
38 typedef void* devtree_link_t;
41 dtm_register_entry(struct device_def* def, const char* pattern)
48 #endif /* __LUNAIX_DEVTREE_TOP_H */