Lines Matching refs:pcib
27 pci_backend *pcib = nullptr; variable
32 if (!pcib) { in pci_get_last_bus()
36 return pcib->get_last_bus(); in pci_get_last_bus()
45 if (!pcib) return ERR_NOT_CONFIGURED; in pci_read_config_byte()
49 int res = pcib->read_config_byte(state, reg, value); in pci_read_config_byte()
54 if (!pcib) return ERR_NOT_CONFIGURED; in pci_read_config_half()
58 int res = pcib->read_config_half(state, reg, value); in pci_read_config_half()
64 if (!pcib) return ERR_NOT_CONFIGURED; in pci_read_config_word()
68 int res = pcib->read_config_word(state, reg, value); in pci_read_config_word()
74 if (!pcib) return ERR_NOT_CONFIGURED; in pci_write_config_byte()
78 int res = pcib->write_config_byte(state, reg, value); in pci_write_config_byte()
84 if (!pcib) return ERR_NOT_CONFIGURED; in pci_write_config_half()
88 int res = pcib->write_config_half(state, reg, value); in pci_write_config_half()
94 if (!pcib) return ERR_NOT_CONFIGURED; in pci_write_config_word()
98 int res = pcib->write_config_word(state, reg, value); in pci_write_config_word()
261 DEBUG_ASSERT(pcib == nullptr); in pci_init_legacy()
266 if ((pcib = pci_bios32::detect())) { in pci_init_legacy()
268 dprintf(INFO, "PCI: last pci bus is %d\n", pcib->get_last_bus()); in pci_init_legacy()
273 if ((pcib = pci_type1::detect())) { in pci_init_legacy()
275 dprintf(INFO, "PCI: last pci bus is %d\n", pcib->get_last_bus()); in pci_init_legacy()
286 DEBUG_ASSERT(pcib == nullptr); in pci_init_ecam()
288 if ((pcib = pci_ecam::detect(ecam_base, segment, start_bus, end_bus))) { in pci_init_ecam()
290 dprintf(INFO, "PCI: last pci bus is %d\n", pcib->get_last_bus()); in pci_init_ecam()