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,
23 DMI_DEV_TYPE_DEV_ONBOARD = -3,
32 DMI_ENTRY_MEM_CONTROLLER,
35 DMI_ENTRY_PORT_CONNECTOR,
36 DMI_ENTRY_SYSTEM_SLOT,
37 DMI_ENTRY_ONBOARD_DEVICE,
41 DMI_ENTRY_GROUP_ASSOC,
42 DMI_ENTRY_SYSTEM_EVENT_LOG,
43 DMI_ENTRY_PHYS_MEM_ARRAY,
45 DMI_ENTRY_32_MEM_ERROR,
46 DMI_ENTRY_MEM_ARRAY_MAPPED_ADDR,
47 DMI_ENTRY_MEM_DEV_MAPPED_ADDR,
48 DMI_ENTRY_BUILTIN_POINTING_DEV,
49 DMI_ENTRY_PORTABLE_BATTERY,
50 DMI_ENTRY_SYSTEM_RESET,
51 DMI_ENTRY_HW_SECURITY,
52 DMI_ENTRY_SYSTEM_POWER_CONTROLS,
53 DMI_ENTRY_VOLTAGE_PROBE,
54 DMI_ENTRY_COOLING_DEV,
56 DMI_ENTRY_ELECTRICAL_CURRENT_PROBE,
57 DMI_ENTRY_OOB_REMOTE_ACCESS,
59 DMI_ENTRY_SYSTEM_BOOT,
61 DMI_ENTRY_MGMT_DEV_COMPONENT,
62 DMI_ENTRY_MGMT_DEV_THRES,
63 DMI_ENTRY_MEM_CHANNEL,
65 DMI_ENTRY_SYS_POWER_SUPPLY,
67 DMI_ENTRY_ONBOARD_DEV_EXT,
68 DMI_ENTRY_MGMT_CONTROLLER_HOST,
69 DMI_ENTRY_INACTIVE = 126,
70 DMI_ENTRY_END_OF_TABLE = 127,
80 struct list_head list;
83 void *device_data; /* Type specific data */
88 struct dmi_dev_onboard {
89 struct dmi_device dev;
96 extern int dmi_check_system(const struct dmi_system_id *list);
97 const struct dmi_system_id *dmi_first_match(const struct dmi_system_id *list);
98 extern const char * dmi_get_system_info(int field);
99 extern const struct dmi_device * dmi_find_device(int type, const char *name,
100 const struct dmi_device *from);
101 extern void dmi_scan_machine(void);
102 extern bool dmi_get_date(int field, int *yearp, int *monthp, int *dayp);
103 extern int dmi_name_in_vendors(const char *str);
104 extern int dmi_name_in_serial(const char *str);
105 extern int dmi_available;
106 extern int dmi_walk(void (*decode)(const struct dmi_header *, void *),
108 extern bool dmi_match(enum dmi_field f, const char *str);
112 static inline int dmi_check_system(const struct dmi_system_id *list) { return 0; }
113 static inline const char * dmi_get_system_info(int field) { return NULL; }
114 static inline const struct dmi_device * dmi_find_device(int type, const char *name,
115 const struct dmi_device *from) { return NULL; }
116 static inline void dmi_scan_machine(void) { return; }
117 static inline bool dmi_get_date(int field, int *yearp, int *monthp, int *dayp)
127 static inline int dmi_name_in_vendors(const char *s) { return 0; }
128 static inline int dmi_name_in_serial(const char *s) { return 0; }
129 #define dmi_available 0
130 static inline int dmi_walk(void (*decode)(const struct dmi_header *, void *),
131 void *private_data) { return -1; }
132 static inline bool dmi_match(enum dmi_field f, const char *str)
134 static inline const struct dmi_system_id *
135 dmi_first_match(const struct dmi_system_id *list) { return NULL; }
139 #endif /* __DMI_H__ */