summaryrefslogtreecommitdiffstats
path: root/sys/ofed
diff options
context:
space:
mode:
authorgavin <gavin@FreeBSD.org>2012-09-18 22:04:59 +0000
committergavin <gavin@FreeBSD.org>2012-09-18 22:04:59 +0000
commit5005c75c5d4c3cea0b6150e4a8c7a1d2f928c052 (patch)
tree7ed0c63fa2cebe3a1c0f0d218ef7d4208fbecfc4 /sys/ofed
parent2f179bd308efd2cd4801f4373a8ac9fb8d37d848 (diff)
downloadFreeBSD-src-5005c75c5d4c3cea0b6150e4a8c7a1d2f928c052.zip
FreeBSD-src-5005c75c5d4c3cea0b6150e4a8c7a1d2f928c052.tar.gz
Align the PCI Express #defines with the style used for the PCI-X
#defines. This also has the advantage that it makes the names more compact, iand also allows us to correct the non-uniform naming of the PCIM_LINK_* defines, making them all consistent amongst themselves. This is a mostly mechanical rename: s/PCIR_EXPRESS_/PCIER_/g s/PCIM_EXP_/PCIEM_/g s/PCIM_LINK_/PCIEM_LINK_/g When this is MFC'd, #defines will be added for the old names to assist out-of-tree drivers. Discussed with: jhb MFC after: 1 week
Diffstat (limited to 'sys/ofed')
-rw-r--r--sys/ofed/include/linux/pci.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ofed/include/linux/pci.h b/sys/ofed/include/linux/pci.h
index f9828ef..b05f6f2 100644
--- a/sys/ofed/include/linux/pci.h
+++ b/sys/ofed/include/linux/pci.h
@@ -82,8 +82,8 @@ struct pci_device_id {
#define PCI_VENDOR_ID PCIR_DEVVENDOR
#define PCI_COMMAND PCIR_COMMAND
-#define PCI_EXP_DEVCTL PCIR_EXPRESS_DEVICE_CTL
-#define PCI_EXP_LNKCTL PCIR_EXPRESS_LINK_CTL
+#define PCI_EXP_DEVCTL PCIER_DEVICE_CTL
+#define PCI_EXP_LNKCTL PCIER_LINK_CTL
#define IORESOURCE_MEM SYS_RES_MEMORY
#define IORESOURCE_IO SYS_RES_IOPORT
OpenPOWER on IntegriCloud