4 #include <linux/list.h>
5 #include <linux/config.h>
22 enum dmi_device_type
{
28 DMI_DEV_TYPE_ETHERNET
,
29 DMI_DEV_TYPE_TOKENRING
,
31 DMI_DEV_TYPE_IPMI
= -1
41 * DMI callbacks for problem boards
48 struct dmi_system_id
{
49 int (*callback
)(struct dmi_system_id
*);
51 struct dmi_strmatch matches
[4];
55 #define DMI_MATCH(a, b) { a, b }
58 struct list_head list
;
61 void *device_data
; /* Type specific data */
66 extern int dmi_check_system(struct dmi_system_id
*list
);
67 extern char * dmi_get_system_info(int field
);
68 extern struct dmi_device
* dmi_find_device(int type
, const char *name
,
69 struct dmi_device
*from
);
70 extern void dmi_scan_machine(void);
71 extern int dmi_get_year(int field
);
75 static inline int dmi_check_system(struct dmi_system_id
*list
) { return 0; }
76 static inline char * dmi_get_system_info(int field
) { return NULL
; }
77 static inline struct dmi_device
* dmi_find_device(int type
, const char *name
,
78 struct dmi_device
*from
) { return NULL
; }
79 static inline int dmi_get_year(int year
) { return 0; }
83 #endif /* __DMI_H__ */