aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu_types.h
diff options
context:
space:
mode:
authorShuah Khan <shuah.khan@hp.com>2013-02-27 17:07:19 -0700
committerBjorn Helgaas <bhelgaas@google.com>2013-03-26 16:21:54 -0600
commitc5081cd7a2b3db31a72b4c697321cf0425dbc2f1 (patch)
treec60ea99b79cb5064b9d4f88341795c41d2cb2a15 /drivers/iommu/amd_iommu_types.h
parentPCI/AER: Remove local PCI_BUS() define and use PCI_BUS_NUM() from PCI (diff)
downloadlinux-dev-c5081cd7a2b3db31a72b4c697321cf0425dbc2f1.tar.xz
linux-dev-c5081cd7a2b3db31a72b4c697321cf0425dbc2f1.zip
iommu/amd: Remove local PCI_BUS() define and use PCI_BUS_NUM() from PCI
Change to remove local PCI_BUS() define and use the new PCI_BUS_NUM() interface from PCI. Signed-off-by: Shuah Khan <shuah.khan@hp.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'drivers/iommu/amd_iommu_types.h')
-rw-r--r--drivers/iommu/amd_iommu_types.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iommu/amd_iommu_types.h b/drivers/iommu/amd_iommu_types.h
index e38ab438bb34..a07882f60b32 100644
--- a/drivers/iommu/amd_iommu_types.h
+++ b/drivers/iommu/amd_iommu_types.h
@@ -24,6 +24,7 @@
#include <linux/mutex.h>
#include <linux/list.h>
#include <linux/spinlock.h>
+#include <linux/pci.h>
/*
* Maximum number of IOMMUs supported
@@ -315,9 +316,6 @@
#define MAX_DOMAIN_ID 65536
-/* FIXME: move this macro to <linux/pci.h> */
-#define PCI_BUS(x) (((x) >> 8) & 0xff)
-
/* Protection domain flags */
#define PD_DMA_OPS_MASK (1UL << 0) /* domain used for dma_ops */
#define PD_DEFAULT_MASK (1UL << 1) /* domain is a default dma_ops