diff options
author | Philipp Stanner <pstanner@redhat.com> | 2024-10-30 12:27:34 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-10-30 16:07:36 -0500 |
commit | d9d959c36bec59f11c0eb6b5308729e3c4901b5e (patch) | |
tree | 4a12f13faf20e51490d07c6ef03617dd1ed49a72 /include/linux/pci.h | |
parent | 9852d85ec9d492ebef56dc5f229416c925758edc (diff) | |
download | lwn-d9d959c36bec59f11c0eb6b5308729e3c4901b5e.tar.gz lwn-d9d959c36bec59f11c0eb6b5308729e3c4901b5e.zip |
PCI: Make pcim_request_all_regions() a public function
In order to remove the deprecated function
pcim_iomap_regions_request_all(), a few drivers need an interface to
request all BARs a PCI device offers.
Make pcim_request_all_regions() a public interface.
Link: https://lore.kernel.org/r/20241030112743.104395-2-pstanner@redhat.com
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 573b4c4c2be6..3b151c8331e5 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -2293,6 +2293,7 @@ static inline void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev) { } #endif +int pcim_request_all_regions(struct pci_dev *pdev, const char *name); void __iomem *pcim_iomap(struct pci_dev *pdev, int bar, unsigned long maxlen); void __iomem *pcim_iomap_region(struct pci_dev *pdev, int bar, const char *name); |