ia64/xen-unstable

view xen/include/xen/dmi.h @ 19800:78962f85c562

IOMMU: Add two generic functions to vendor neutral interface

Add 2 generic functions into the vendor neutral iommu interface, The
reason is that from changeset 19732, there is only one global flag
"iommu_enabled" that controls iommu enablement for both vtd and amd
systems, so we need different code paths for vtd and amd iommu systems
if this flag has been turned on. Also, the early checking of
"iommu_enabled" in iommu_setup() is removed to prevent iommu
functionalities from been disabled on amd systems.

Signed-off-by: Wei Wang <wei.wang2@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jun 19 08:41:50 2009 +0100 (2009-06-19)
parents 80277ff19c9c
children
line source
1 #ifndef __DMI_H__
2 #define __DMI_H__
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 };
18 /*
19 * DMI callbacks for problem boards
20 */
21 struct dmi_strmatch {
22 u8 slot;
23 char *substr;
24 };
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 };
33 #define DMI_MATCH(a,b) { a, b }
35 extern int dmi_check_system(struct dmi_system_id *list);
36 extern char * dmi_get_system_info(int field);
37 extern void dmi_scan_machine(void);
38 extern int dmi_get_table(u32 *base, u32 *len);
40 #endif /* __DMI_H__ */