PCI: Move config space size macros to pci_regs.h
authorWang Sheng-Hui <[email protected]>
Thu, 22 Sep 2016 01:05:46 +0000 (09:05 +0800)
committerBjorn Helgaas <[email protected]>
Mon, 12 Dec 2016 16:05:22 +0000 (10:05 -0600)
commitcc10385b6fde3e5d3a3edaabf10a4e211ee8fe72
tree0065a8542ff2c67ce0ed1d52fc8d53e234d349cd
parent1001354ca34179f3db924eb66672442a173147dc
PCI: Move config space size macros to pci_regs.h

Move PCI configuration space size macros (PCI_CFG_SPACE_SIZE and
PCI_CFG_SPACE_EXP_SIZE) from drivers/pci/pci.h to
include/uapi/linux/pci_regs.h so they can be used by more drivers and
eliminate duplicate definitions.

[bhelgaas: Expand comment to include PCI-X details]
Signed-off-by: Wang Sheng-Hui <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
drivers/pci/pci.h
drivers/vfio/pci/vfio_pci_config.c
include/uapi/linux/pci_regs.h