4 #include <linux/list.h>
5 #include <linux/mod_devicetable.h>
7 /* enum dmi_field is in mod_devicetable.h */
15 DMI_DEV_TYPE_ETHERNET,
16 DMI_DEV_TYPE_TOKENRING,
21 DMI_DEV_TYPE_IPMI = -1,
22 DMI_DEV_TYPE_OEM_STRING = -2,
32 struct list_head list;
35 void *device_data; /* Type specific data */
40 extern int dmi_check_system(const struct dmi_system_id *list);
41 extern const char * dmi_get_system_info(int field);
42 extern const struct dmi_device * dmi_find_device(int type, const char *name,
43 const struct dmi_device *from);
44 extern void dmi_scan_machine(void);
45 extern int dmi_get_year(int field);
46 extern int dmi_name_in_vendors(const char *str);
47 extern int dmi_name_in_serial(const char *str);
48 extern int dmi_available;
49 extern int dmi_walk(void (*decode)(const struct dmi_header *));
50 extern bool dmi_match(enum dmi_field f, const char *str);
54 static inline int dmi_check_system(const struct dmi_system_id *list) { return 0; }
55 static inline const char * dmi_get_system_info(int field) { return NULL; }
56 static inline const struct dmi_device * dmi_find_device(int type, const char *name,
57 const struct dmi_device *from) { return NULL; }
58 static inline void dmi_scan_machine(void) { return; }
59 static inline int dmi_get_year(int year) { return 0; }
60 static inline int dmi_name_in_vendors(const char *s) { return 0; }
61 static inline int dmi_name_in_serial(const char *s) { return 0; }
62 #define dmi_available 0
63 static inline int dmi_walk(void (*decode)(const struct dmi_header *))
65 static inline bool dmi_match(enum dmi_field f, const char *str)
70 #endif /* __DMI_H__ */