/* Functions for accessing PCI configuration space with MMCONFIG accesses  */
static u32 get_base_addr(unsigned int seg, int bus, unsigned devfn)
/* Functions for accessing PCI configuration space with MMCONFIG accesses  */
static u32 get_base_addr(unsigned int seg, int bus, unsigned devfn)
{
	struct pci_mmcfg_region *cfg = pci_mmconfig_lookup(seg, bus);
	if (cfg)
		return cfg->address;
	return 0;
}