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
,
41 DMI_DEV_TYPE_IPMI
= -1,
42 DMI_DEV_TYPE_OEM_STRING
= -2,
52 * DMI callbacks for problem boards
59 struct dmi_system_id
{
60 int (*callback
)(const struct dmi_system_id
*);
62 struct dmi_strmatch matches
[4];
66 #define DMI_MATCH(a, b) { a, b }
69 struct list_head list
;
72 void *device_data
; /* Type specific data */
77 extern int dmi_check_system(const struct dmi_system_id
*list
);
78 extern const char * dmi_get_system_info(int field
);
79 extern const struct dmi_device
* dmi_find_device(int type
, const char *name
,
80 const struct dmi_device
*from
);
81 extern void dmi_scan_machine(void);
82 extern int dmi_get_year(int field
);
83 extern int dmi_name_in_vendors(const char *str
);
84 extern int dmi_available
;
85 extern int dmi_walk(void (*decode
)(const struct dmi_header
*));
89 static inline int dmi_check_system(const struct dmi_system_id
*list
) { return 0; }
90 static inline const char * dmi_get_system_info(int field
) { return NULL
; }
91 static inline const struct dmi_device
* dmi_find_device(int type
, const char *name
,
92 const struct dmi_device
*from
) { return NULL
; }
93 static inline void dmi_scan_machine(void) { return; }
94 static inline int dmi_get_year(int year
) { return 0; }
95 static inline int dmi_name_in_vendors(const char *s
) { return 0; }
96 #define dmi_available 0
97 static inline int dmi_walk(void (*decode
)(const struct dmi_header
*))
102 #endif /* __DMI_H__ */