Lines Matching refs:mapreg
102 static pci_addr_t pci_mapbase(uint64_t mapreg);
103 static const char *pci_maptype(uint64_t mapreg);
104 static int pci_maprange(uint64_t mapreg);
105 static pci_addr_t pci_rombase(uint64_t mapreg);
564 pci_mapbase(uint64_t mapreg) in pci_mapbase() argument
567 if (PCI_BAR_MEM(mapreg)) in pci_mapbase()
568 return (mapreg & PCIM_BAR_MEM_BASE); in pci_mapbase()
570 return (mapreg & PCIM_BAR_IO_BASE); in pci_mapbase()
576 pci_maptype(uint64_t mapreg) in pci_maptype() argument
579 if (PCI_BAR_IO(mapreg)) in pci_maptype()
581 if (mapreg & PCIM_BAR_MEM_PREFETCH) in pci_maptype()
608 pci_rombase(uint64_t mapreg) in pci_rombase() argument
611 return (mapreg & PCIM_BIOS_ADDR_MASK); in pci_rombase()
636 pci_maprange(uint64_t mapreg) in pci_maprange() argument
640 if (PCI_BAR_IO(mapreg)) in pci_maprange()
643 switch (mapreg & PCIM_BAR_MEM_TYPE) { in pci_maprange()