mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01: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:
@@ -319,7 +319,8 @@ static int virtio_pci_probe(struct udevice *udev)
|
||||
uc_priv->device = subdevice;
|
||||
uc_priv->vendor = subvendor;
|
||||
|
||||
priv->ioaddr = dm_pci_map_bar(udev, PCI_BASE_ADDRESS_0, 0, 0, PCI_REGION_IO);
|
||||
priv->ioaddr = dm_pci_map_bar(udev, PCI_BASE_ADDRESS_0, 0, 0,
|
||||
PCI_REGION_TYPE, PCI_REGION_IO);
|
||||
if (!priv->ioaddr)
|
||||
return -ENXIO;
|
||||
debug("(%s): virtio legacy device reg base %04lx\n",
|
||||
|
||||
Reference in New Issue
Block a user