diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2008-09-08 09:55:10 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-19 06:59:13 -0400 |
commit | 3eaf28a1cd2686aaa185b54d5a5e18e91b41f7f2 (patch) | |
tree | 8635314b3369734431435fb735979435a06329a2 /include | |
parent | ee893c24edb8ebab9a3fb66566855572579ad616 (diff) |
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')
-rw-r--r-- | include/asm-x86/amd_iommu_types.h | 5 |
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 20814b85bbc3..a5629a21557c 100644 --- a/include/asm-x86/amd_iommu_types.h +++ b/include/asm-x86/amd_iommu_types.h | |||
@@ -215,8 +215,9 @@ struct amd_iommu { | |||
215 | /* locks the accesses to the hardware */ | 215 | /* locks the accesses to the hardware */ |
216 | spinlock_t lock; | 216 | spinlock_t lock; |
217 | 217 | ||
218 | /* device id of this IOMMU */ | 218 | /* Pointer to PCI device of this IOMMU */ |
219 | u16 devid; | 219 | struct pci_dev *dev; |
220 | |||
220 | /* | 221 | /* |
221 | * Capability pointer. There could be more than one IOMMU per PCI | 222 | * Capability pointer. There could be more than one IOMMU per PCI |
222 | * device function if there are more than one AMD IOMMU capability | 223 | * device function if there are more than one AMD IOMMU capability |