summaryrefslogtreecommitdiffstats
path: root/include/asm-x86
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2008-09-08 15:55:10 +0200
committerIngo Molnar <mingo@elte.hu>2008-09-19 12:59:13 +0200
commit3eaf28a1cd2686aaa185b54d5a5e18e91b41f7f2 (patch)
tree8635314b3369734431435fb735979435a06329a2 /include/asm-x86
parentee893c24edb8ebab9a3fb66566855572579ad616 (diff)
downloadkernel-crypto-3eaf28a1cd2686aaa185b54d5a5e18e91b41f7f2.tar.gz
kernel-crypto-3eaf28a1cd2686aaa185b54d5a5e18e91b41f7f2.tar.xz
kernel-crypto-3eaf28a1cd2686aaa185b54d5a5e18e91b41f7f2.zip
AMD IOMMU: save pci_dev instead of devid
We need the pci_dev later anyways to enable MSI for the IOMMU hardware. So remove the devid pointing to the BDF and replace it with the pci_dev structure where the IOMMU is implemented. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86')
-rw-r--r--include/asm-x86/amd_iommu_types.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-x86/amd_iommu_types.h b/include/asm-x86/amd_iommu_types.h
index 20814b85bbc..a5629a21557 100644
--- a/include/asm-x86/amd_iommu_types.h
+++ b/include/asm-x86/amd_iommu_types.h
@@ -215,8 +215,9 @@ struct amd_iommu {
/* locks the accesses to the hardware */
spinlock_t lock;
- /* device id of this IOMMU */
- u16 devid;
+ /* Pointer to PCI device of this IOMMU */
+ struct pci_dev *dev;
+
/*
* Capability pointer. There could be more than one IOMMU per PCI
* device function if there are more than one AMD IOMMU capability