#ifndef __LUNAIX_DEVTREE_TOP_H #define __LUNAIX_DEVTREE_TOP_H struct device_def; struct device; #ifdef CONFIG_USE_DEVICETREE #include "devtree.h" #include #include #include typedef struct dtn* devtree_link_t; #define dt_node_morpher morphable_attrs(dt_node, mobj) struct dtm_driver_info { struct list_node node; const char* pattern; }; struct dtm_driver_record { struct hlist_node node; struct list_head infos; struct device_def* def; }; void dtm_register_entry(struct device_def* def, const char* pattern); #else #include typedef void* devtree_link_t; static inline void dtm_register_entry(struct device_def* def, const char* pattern) { return; } #endif #endif /* __LUNAIX_DEVTREE_TOP_H */