summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>2010-10-13 15:00:23 +0900
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-10-17 20:03:03 -0700
commitdb5004195481fcb500c929bd3a0e1c0c48eec527 (patch)
treea0b1ae770128ac51ca1e2096ac180d1a44f5ef8c /drivers/pci
parent7473fbf4a016301bfa3faa4f81c9a9c978330359 (diff)
downloadop-kernel-dev-db5004195481fcb500c929bd3a0e1c0c48eec527.zip
op-kernel-dev-db5004195481fcb500c929bd3a0e1c0c48eec527.tar.gz
PCI: add PCI_MSIX_TABLE/PBA defines
These are already defined in pcilib's pci/header.h but not in kernel's linux/pci_regs.h. Copy them to avoid using magic numbers. Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/msi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/msi.h b/drivers/pci/msi.h
index de27c1c..feff3be 100644
--- a/drivers/pci/msi.h
+++ b/drivers/pci/msi.h
@@ -22,8 +22,8 @@
#define is_64bit_address(control) (!!(control & PCI_MSI_FLAGS_64BIT))
#define is_mask_bit_support(control) (!!(control & PCI_MSI_FLAGS_MASKBIT))
-#define msix_table_offset_reg(base) (base + 0x04)
-#define msix_pba_offset_reg(base) (base + 0x08)
+#define msix_table_offset_reg(base) (base + PCI_MSIX_TABLE)
+#define msix_pba_offset_reg(base) (base + PCI_MSIX_PBA)
#define msix_table_size(control) ((control & PCI_MSIX_FLAGS_QSIZE)+1)
#define multi_msix_capable(control) msix_table_size((control))
OpenPOWER on IntegriCloud