Searched refs:bar0 (Results 1 – 1 of 1) sorted by relevance
173 uint32_t bar0 = pci_pdev_read_cfg(uart.bdf, pci_bar_offset(0), 4U); in uart16550_init() local175 if ((bar0 & ~0xfU) == 0U) { in uart16550_init()181 if ((bar0 & 0x3U) == PCIM_BAR_IO_SPACE) { /* IO Space */ in uart16550_init()183 uart.port_address = (uint16_t)(bar0 & PCI_BASE_ADDRESS_IO_MASK); in uart16550_init()186 } else if (((bar0 & 0x7U) == 0U) || ((bar0 & 0x7U) == 4U)) { in uart16550_init()189 uint64_t addr = (bar0 & PCI_BASE_ADDRESS_MEM_MASK)|(((uint64_t)bar_hi) << 32U); in uart16550_init()
Completed in 5 milliseconds