diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/dmi.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/linux/dmi.h')
-rw-r--r-- | include/linux/dmi.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/include/linux/dmi.h b/include/linux/dmi.h new file mode 100644 index 000000000000..d2bcf556088b --- /dev/null +++ b/include/linux/dmi.h | |||
@@ -0,0 +1,47 @@ | |||
1 | #ifndef __DMI_H__ | ||
2 | #define __DMI_H__ | ||
3 | |||
4 | enum dmi_field { | ||
5 | DMI_NONE, | ||
6 | DMI_BIOS_VENDOR, | ||
7 | DMI_BIOS_VERSION, | ||
8 | DMI_BIOS_DATE, | ||
9 | DMI_SYS_VENDOR, | ||
10 | DMI_PRODUCT_NAME, | ||
11 | DMI_PRODUCT_VERSION, | ||
12 | DMI_BOARD_VENDOR, | ||
13 | DMI_BOARD_NAME, | ||
14 | DMI_BOARD_VERSION, | ||
15 | DMI_STRING_MAX, | ||
16 | }; | ||
17 | |||
18 | /* | ||
19 | * DMI callbacks for problem boards | ||
20 | */ | ||
21 | struct dmi_strmatch { | ||
22 | u8 slot; | ||
23 | char *substr; | ||
24 | }; | ||
25 | |||
26 | struct dmi_system_id { | ||
27 | int (*callback)(struct dmi_system_id *); | ||
28 | char *ident; | ||
29 | struct dmi_strmatch matches[4]; | ||
30 | void *driver_data; | ||
31 | }; | ||
32 | |||
33 | #define DMI_MATCH(a,b) { a, b } | ||
34 | |||
35 | #if defined(CONFIG_X86) && !defined(CONFIG_X86_64) | ||
36 | |||
37 | extern int dmi_check_system(struct dmi_system_id *list); | ||
38 | extern char * dmi_get_system_info(int field); | ||
39 | |||
40 | #else | ||
41 | |||
42 | static inline int dmi_check_system(struct dmi_system_id *list) { return 0; } | ||
43 | static inline char * dmi_get_system_info(int field) { return NULL; } | ||
44 | |||
45 | #endif | ||
46 | |||
47 | #endif /* __DMI_H__ */ | ||