PCI: Move config space size macros to pci_regs.h
authorWang Sheng-Hui <shhuiw@foxmail.com>
Thu, 22 Sep 2016 01:05:46 +0000 (09:05 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
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 <shhuiw@foxmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.h
drivers/vfio/pci/vfio_pci_config.c
include/uapi/linux/pci_regs.h