summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Scull <ascull@google.com>2022-04-21 16:11:13 +0000
committerTom Rini <trini@konsulko.com>2022-05-03 18:33:29 -0400
commit2635e3b50f8e646fc54c2bb15a017dea61a64a68 (patch)
treeef007c4b53fe0c22569adbb54aeadc9adb854447 /include
parenta822d1dee4e2a6a035c464426e56d1e5c600d273 (diff)
pci: Add mask parameter to dm_pci_map_bar()
Add a mask parameter to control the lookup of the PCI region from which the mapping can be made. Signed-off-by: Andrew Scull <ascull@google.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/pci.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/pci.h b/include/pci.h
index c0eefe9209c..d7ed35dd523 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -1352,11 +1352,12 @@ pci_addr_t dm_pci_phys_to_bus(struct udevice *dev, phys_addr_t addr, size_t len,
* @bar: Bar register offset (PCI_BASE_ADDRESS_...)
* @offset: Offset from the base to map
* @len: Length to map
+ * @mask: Mask to match flags for the region type
* @flags: Flags for the region type (PCI_REGION_...)
* @return: pointer to the virtual address to use or 0 on error
*/
void *dm_pci_map_bar(struct udevice *dev, int bar, size_t offset, size_t len,
- unsigned long flags);
+ unsigned long mask, unsigned long flags);
/**
* dm_pci_find_next_capability() - find a capability starting from an offset