summaryrefslogtreecommitdiff
path: root/include/pci.h
diff options
context:
space:
mode:
authorAndrew Scull <ascull@google.com>2022-04-21 16:11:06 +0000
committerTom Rini <trini@konsulko.com>2022-05-03 15:50:45 -0400
commit60f4142aa2e4156c6e4661184e6e9d9f1f8fb561 (patch)
tree1e09b310a02eabea423e829f2b0286d576b00be1 /include/pci.h
parente7870c2cdccef3a3a8659995407280900323b9f5 (diff)
pci: Fix use of flags in dm_pci_map_bar()
The flags parameter of dm_pci_map_bar() is used for PCI region flags rather than memory mapping flags. Fix the type to match that of the region flags and stop using the regions flags as memory mapping flags. Signed-off-by: Andrew Scull <ascull@google.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/pci.h')
-rw-r--r--include/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pci.h b/include/pci.h
index 5dbdcb0672a..3d0356b8fd8 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -1349,7 +1349,7 @@ pci_addr_t dm_pci_phys_to_bus(struct udevice *dev, phys_addr_t addr,
* @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, int flags);
+void *dm_pci_map_bar(struct udevice *dev, int bar, unsigned long flags);
/**
* dm_pci_find_next_capability() - find a capability starting from an offset