4 #include <linux/list.h>
25 DMI_CHASSIS_ASSET_TAG,
29 enum dmi_device_type {
35 DMI_DEV_TYPE_ETHERNET,
36 DMI_DEV_TYPE_TOKENRING,
38 DMI_DEV_TYPE_IPMI = -1,
39 DMI_DEV_TYPE_OEM_STRING = -2
49 * DMI callbacks for problem boards
56 struct dmi_system_id {
57 int (*callback)(const struct dmi_system_id *);
59 struct dmi_strmatch matches[4];
63 #define DMI_MATCH(a, b) { a, b }
66 struct list_head list;
69 void *device_data; /* Type specific data */
74 extern int dmi_check_system(const struct dmi_system_id *list);
75 extern const char * dmi_get_system_info(int field);
76 extern const struct dmi_device * dmi_find_device(int type, const char *name,
77 const struct dmi_device *from);
78 extern void dmi_scan_machine(void);
79 extern int dmi_get_year(int field);
80 extern int dmi_name_in_vendors(const char *str);
81 extern int dmi_available;
82 extern char *dmi_get_slot(int slot);
86 static inline int dmi_check_system(const struct dmi_system_id *list) { return 0; }
87 static inline const char * dmi_get_system_info(int field) { return NULL; }
88 static inline const struct dmi_device * dmi_find_device(int type, const char *name,
89 const struct dmi_device *from) { return NULL; }
90 static inline int dmi_get_year(int year) { return 0; }
91 static inline int dmi_name_in_vendors(const char *s) { return 0; }
92 #define dmi_available 0
93 static inline char *dmi_get_slot(int slot) { return NULL; }
97 #endif /* __DMI_H__ */