ia64/xen-unstable

diff xen/include/asm-x86/hvm/svm/amd-iommu-proto.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 696351cde9a4
children
line diff
     1.1 --- a/xen/include/asm-x86/hvm/svm/amd-iommu-proto.h	Thu Jun 18 15:32:48 2009 +0100
     1.2 +++ b/xen/include/asm-x86/hvm/svm/amd-iommu-proto.h	Fri Jun 19 08:41:50 2009 +0100
     1.3 @@ -87,6 +87,10 @@ void amd_iommu_ioapic_update_ire(
     1.4      unsigned int apic, unsigned int reg, unsigned int value);
     1.5  void amd_iommu_msi_msg_update_ire(
     1.6      struct msi_desc *msi_desc, struct msi_msg *msg);
     1.7 +void amd_iommu_read_msi_from_ire(
     1.8 +    struct msi_desc *msi_desc, struct msi_msg *msg);
     1.9 +unsigned int amd_iommu_read_ioapic_from_ire(
    1.10 +    unsigned int apic, unsigned int reg);
    1.11  
    1.12  static inline u32 get_field_from_reg_u32(u32 reg_value, u32 mask, u32 shift)
    1.13  {