Skip to content

Commit 5ccba71

Browse files
andy-shevJonathan Corbet
authored andcommitted
PCI: Update the devres documentation regarding to pcim_*()
There were many changes to PCI core in scope of managed resources APIs. Update documentation to list the current state of affairs. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20231006150634.3444251-1-andriy.shevchenko@linux.intel.com
1 parent d17ff43 commit 5ccba71

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

Documentation/driver-api/driver-model/devres.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,8 @@ IOMAP
322322
devm_platform_ioremap_resource_byname()
323323
devm_platform_get_and_ioremap_resource()
324324
devm_iounmap()
325-
pcim_iomap()
326-
pcim_iomap_regions() : do request_region() and iomap() on multiple BARs
327-
pcim_iomap_table() : array of mapped addresses indexed by BAR
328-
pcim_iounmap()
325+
326+
Note: For the PCI devices the specific pcim_*() functions may be used, see below.
329327

330328
IRQ
331329
devm_free_irq()
@@ -392,8 +390,16 @@ PCI
392390
devm_pci_alloc_host_bridge() : managed PCI host bridge allocation
393391
devm_pci_remap_cfgspace() : ioremap PCI configuration space
394392
devm_pci_remap_cfg_resource() : ioremap PCI configuration space resource
393+
395394
pcim_enable_device() : after success, all PCI ops become managed
395+
pcim_iomap() : do iomap() on a single BAR
396+
pcim_iomap_regions() : do request_region() and iomap() on multiple BARs
397+
pcim_iomap_regions_request_all() : do request_region() on all and iomap() on multiple BARs
398+
pcim_iomap_table() : array of mapped addresses indexed by BAR
399+
pcim_iounmap() : do iounmap() on a single BAR
400+
pcim_iounmap_regions() : do iounmap() and release_region() on multiple BARs
396401
pcim_pin_device() : keep PCI device enabled after release
402+
pcim_set_mwi() : enable Memory-Write-Invalidate PCI transaction
397403

398404
PHY
399405
devm_usb_get_phy()

0 commit comments

Comments
 (0)