]> git.dujemihanovic.xyz Git - u-boot.git/commit
pci: Map bars with offset and length
authorAndrew Scull <ascull@google.com>
Thu, 21 Apr 2022 16:11:10 +0000 (16:11 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 3 May 2022 19:50:46 +0000 (15:50 -0400)
commit12507a2d2269f36d16232d78ec15e861d3fff2d7
tree67ef89dc1a1bb931eeabc6012db05a2a602c91ec
parent55e6adbd78fcfcbd5c2e291ae1f5da3b107cb388
pci: Map bars with offset and length

Evolve dm_pci_map_bar() to include an offset and length parameter. These
allow a portion of the memory to be mapped and range checks to be
applied.

Passing both the offset and length as zero results in the previous
behaviour and this is used to migrate the previous callers.

Signed-off-by: Andrew Scull <ascull@google.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
33 files changed:
arch/x86/cpu/baytrail/cpu.c
drivers/ata/ahci.c
drivers/ata/sata_sil.c
drivers/gpio/octeon_gpio.c
drivers/i2c/designware_i2c_pci.c
drivers/i2c/intel_i2c.c
drivers/i2c/octeon_i2c.c
drivers/mmc/octeontx_hsmmc.c
drivers/mmc/pci_mmc.c
drivers/mtd/nand/raw/octeontx_bch.c
drivers/mtd/nand/raw/octeontx_nand.c
drivers/net/bnxt/bnxt.c
drivers/net/e1000.c
drivers/net/fsl_enetc.c
drivers/net/fsl_enetc_mdio.c
drivers/net/mscc_eswitch/felix_switch.c
drivers/net/octeontx/bgx.c
drivers/net/octeontx/nic_main.c
drivers/net/octeontx/nicvf_main.c
drivers/net/octeontx/smi.c
drivers/net/octeontx2/cgx.c
drivers/net/octeontx2/rvu_af.c
drivers/net/octeontx2/rvu_pf.c
drivers/net/pch_gbe.c
drivers/nvme/nvme_pci.c
drivers/pci/pci-uclass.c
drivers/spi/octeon_spi.c
drivers/usb/host/ehci-pci.c
drivers/usb/host/ohci-pci.c
drivers/usb/host/xhci-pci.c
drivers/virtio/virtio_pci_legacy.c
include/pci.h
test/dm/pci.c