[PATCH] uml: skas0 support for 2G/2G hosts
[linux-2.6/mini2440.git] / include / linux / dmi.h
blob64fd6c366604c08e4b7f53a2322cf731bba340ab
1 #ifndef __DMI_H__
2 #define __DMI_H__
4 #include <linux/list.h>
5 #include <linux/config.h>
7 enum dmi_field {
8 DMI_NONE,
9 DMI_BIOS_VENDOR,
10 DMI_BIOS_VERSION,
11 DMI_BIOS_DATE,
12 DMI_SYS_VENDOR,
13 DMI_PRODUCT_NAME,
14 DMI_PRODUCT_VERSION,
15 DMI_PRODUCT_SERIAL,
16 DMI_BOARD_VENDOR,
17 DMI_BOARD_NAME,
18 DMI_BOARD_VERSION,
19 DMI_STRING_MAX,
22 enum dmi_device_type {
23 DMI_DEV_TYPE_ANY = 0,
24 DMI_DEV_TYPE_OTHER,
25 DMI_DEV_TYPE_UNKNOWN,
26 DMI_DEV_TYPE_VIDEO,
27 DMI_DEV_TYPE_SCSI,
28 DMI_DEV_TYPE_ETHERNET,
29 DMI_DEV_TYPE_TOKENRING,
30 DMI_DEV_TYPE_SOUND,
31 DMI_DEV_TYPE_IPMI = -1
34 struct dmi_header {
35 u8 type;
36 u8 length;
37 u16 handle;
41 * DMI callbacks for problem boards
43 struct dmi_strmatch {
44 u8 slot;
45 char *substr;
48 struct dmi_system_id {
49 int (*callback)(struct dmi_system_id *);
50 const char *ident;
51 struct dmi_strmatch matches[4];
52 void *driver_data;
55 #define DMI_MATCH(a, b) { a, b }
57 struct dmi_device {
58 struct list_head list;
59 int type;
60 const char *name;
61 void *device_data; /* Type specific data */
64 #ifdef CONFIG_DMI
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);
73 #else
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; }
81 #endif
83 #endif /* __DMI_H__ */