diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-05-25 17:29:20 +0000 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-05-25 17:29:20 +0000 |
commit | 7cd2aeee943e69146bd5965b7160d4a461d94fd4 (patch) | |
tree | c3b2643b0baafe8ef0005cc2dcd6f8d30011dfdc /xen/include/xen/dmi.h | |
parent | 5443ed833b79b2e3da48bf203bd2707f31c349e8 (diff) | |
download | xen-7cd2aeee943e69146bd5965b7160d4a461d94fd4.tar.gz xen-7cd2aeee943e69146bd5965b7160d4a461d94fd4.tar.bz2 xen-7cd2aeee943e69146bd5965b7160d4a461d94fd4.zip |
bitkeeper revision 1.1555 (4294b5f0B3iu-SnB9loIMnLXO0loTA)
Ported genapic to Xen: support for bigsmp and numa platforms such as
es7000.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/xen/dmi.h')
-rw-r--r-- | xen/include/xen/dmi.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/xen/include/xen/dmi.h b/xen/include/xen/dmi.h new file mode 100644 index 0000000000..d2bcf55608 --- /dev/null +++ b/xen/include/xen/dmi.h @@ -0,0 +1,47 @@ +#ifndef __DMI_H__ +#define __DMI_H__ + +enum dmi_field { + DMI_NONE, + DMI_BIOS_VENDOR, + DMI_BIOS_VERSION, + DMI_BIOS_DATE, + DMI_SYS_VENDOR, + DMI_PRODUCT_NAME, + DMI_PRODUCT_VERSION, + DMI_BOARD_VENDOR, + DMI_BOARD_NAME, + DMI_BOARD_VERSION, + DMI_STRING_MAX, +}; + +/* + * DMI callbacks for problem boards + */ +struct dmi_strmatch { + u8 slot; + char *substr; +}; + +struct dmi_system_id { + int (*callback)(struct dmi_system_id *); + char *ident; + struct dmi_strmatch matches[4]; + void *driver_data; +}; + +#define DMI_MATCH(a,b) { a, b } + +#if defined(CONFIG_X86) && !defined(CONFIG_X86_64) + +extern int dmi_check_system(struct dmi_system_id *list); +extern char * dmi_get_system_info(int field); + +#else + +static inline int dmi_check_system(struct dmi_system_id *list) { return 0; } +static inline char * dmi_get_system_info(int field) { return NULL; } + +#endif + +#endif /* __DMI_H__ */ |