mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
a822d1dee4
commit
2635e3b50f
33 changed files with 61 additions and 47 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue