[PATCH v3 11/18] test: pci: Test PCI address conversion functions
Bin Meng
bmeng.cn at gmail.com
Fri Apr 22 08:50:32 CEST 2022
On Fri, Apr 22, 2022 at 12:11 AM Andrew Scull <ascull at google.com> wrote:
>
> Add tests for the functions dm_pci_bus_to_phys() and
> dm_pci_phys_to_bus() which convert between PCI bus addresses and
> physical addresses based on the ranges declared for the PCI controller.
>
> The ranges of bus#1 are used for the tests, adding a translation to one
> of the ranges to cover more cases.
>
> Signed-off-by: Andrew Scull <ascull at google.com>
> ---
> arch/sandbox/dts/test.dts | 2 +-
> test/dm/pci.c | 102 ++++++++++++++++++++++++++++++++++++++
> 2 files changed, 103 insertions(+), 1 deletion(-)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list