How to obtain epf bar0 physical address

maybe this would help clarify

You could also refer to the 3 sample codes there.

pci-epf-dma-test.c
pci-epf-nv-test.c
pci-epf-tegra-vnet.c