Tidy up addresses in random drivers
[linux-2.6/sactl.git] / include / linux / dmi.h
blobe5084eb5943a5f35fc82680e3a83103f19a46019
1 #ifndef __DMI_H__
2 #define __DMI_H__
4 #include <linux/list.h>
5 #include <linux/mod_devicetable.h>
7 /* enum dmi_field is in mod_devicetable.h */
9 enum dmi_device_type {
10 DMI_DEV_TYPE_ANY = 0,
11 DMI_DEV_TYPE_OTHER,
12 DMI_DEV_TYPE_UNKNOWN,
13 DMI_DEV_TYPE_VIDEO,
14 DMI_DEV_TYPE_SCSI,
15 DMI_DEV_TYPE_ETHERNET,
16 DMI_DEV_TYPE_TOKENRING,
17 DMI_DEV_TYPE_SOUND,
18 DMI_DEV_TYPE_PATA,
19 DMI_DEV_TYPE_SATA,
20 DMI_DEV_TYPE_SAS,
21 DMI_DEV_TYPE_IPMI = -1,
22 DMI_DEV_TYPE_OEM_STRING = -2,
25 struct dmi_header {
26 u8 type;
27 u8 length;
28 u16 handle;
31 struct dmi_device {
32 struct list_head list;
33 int type;
34 const char *name;
35 void *device_data; /* Type specific data */
38 #ifdef CONFIG_DMI
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_available;
48 extern int dmi_walk(void (*decode)(const struct dmi_header *));
50 #else
52 static inline int dmi_check_system(const struct dmi_system_id *list) { return 0; }
53 static inline const char * dmi_get_system_info(int field) { return NULL; }
54 static inline const struct dmi_device * dmi_find_device(int type, const char *name,
55 const struct dmi_device *from) { return NULL; }
56 static inline void dmi_scan_machine(void) { return; }
57 static inline int dmi_get_year(int year) { return 0; }
58 static inline int dmi_name_in_vendors(const char *s) { return 0; }
59 #define dmi_available 0
60 static inline int dmi_walk(void (*decode)(const struct dmi_header *))
61 { return -1; }
63 #endif
65 #endif /* __DMI_H__ */