FreeBSD/sys/dev/pci/pci.c
/* return base address of memory or port map */
return base address of memory or port map
return base address of memory or port map
static pci_addr_t
pci_mapbase(uint64_t mapreg)
{
	if (PCI_BAR_MEM(mapreg))
		return (mapreg & PCIM_BAR_MEM_BASE);
	else
		return (mapreg & PCIM_BAR_IO_BASE);
}
static pci_addr_t pci_mapbase ( uint64_t mapreg ) { if ( PCI_BAR_MEM ( mapreg ) ) return ( mapreg & PCIM_BAR_MEM_BASE ) ; else return ( mapreg & PCIM_BAR_IO_BASE ) ; }
return base address of memory or port map
return base address of memory or port map