Lines Matching refs:bus

27  * pci_resource.c -- routines to retrieve available bus resources from
77 find_bus_res(int bus, int type)
88 if (acpi_find_bus_res(bus, type, &res) > 0)
91 if (hrt_find_bus_res(bus, type, &res) > 0)
94 (void) mps_find_bus_res(bus, type, &res);
104 int bus;
109 for (bus = 0; bus <= pci_bios_maxbus; bus++) {
111 dip = pci_bus_res[bus].dip;
117 (void *)(uintptr_t)bus);
127 * Trim overlapping bus ranges in acpi_bus_res[]
128 * Some BIOSes report root-bridges with bus ranges that
137 int bus;
143 * - there exists at most 1 bus range entry for each bus number
144 * - there are no (broken) ranges that start at the same bus number
146 for (bus = 0; bus < 256; bus++) {
149 if ((orig = acpi_bus_res[bus]) == NULL)
203 acpi_find_bus_res(int bus, int type, struct memlist **res)
208 *res = acpi_io_res[bus];
211 *res = acpi_mem_res[bus];
214 *res = acpi_pmem_res[bus];
217 *res = acpi_bus_res[bus];
231 int bus;
233 for (bus = 0; bus <= pci_bios_maxbus; bus++) {
234 memlist_free_all(&acpi_io_res[bus]);
235 memlist_free_all(&acpi_mem_res[bus]);
236 memlist_free_all(&acpi_pmem_res[bus]);
237 memlist_free_all(&acpi_bus_res[bus]);
243 rlistpp(UINT8 t, UINT8 flags, int bus)
250 return (&acpi_pmem_res[bus]);
252 return (&acpi_mem_res[bus]);
254 case ACPI_IO_RANGE: return &acpi_io_res[bus];
255 case ACPI_BUS_NUMBER_RANGE: return &acpi_bus_res[bus];
264 int bus = (intptr_t)context;
272 /* never expect to see a PCI bus produce an Interrupt */
277 /* never expect to see a PCI bus produce DMA */
293 memlist_insert(&acpi_io_res[bus], rp->Data.Io.Minimum,
330 rp->Data.Address16.Info.TypeSpecific, bus),
340 rp->Data.Address32.Info.TypeSpecific, bus),
356 rp->Data.Address64.Info.TypeSpecific, bus),
368 rp->Data.ExtAddress64.Info.TypeSpecific, bus),
375 /* never expect to see a PCI bus produce an Interrupt */
380 /* never expect to see a PCI bus produce an GAS */
460 mps_find_bus_res(int bus, int type, struct memlist **res)
475 ((int)sasmp->sasm_bus_id) == bus) {
532 hrt_find_bus_res(int bus, int type, struct memlist **res)
542 if (hpep->php_pri_bus != bus)
600 * At this point, the bus hierarchy entries do not appear to
602 * The only interesting bit is the ISA bus number, which we
606 mps_find_parent_bus(int bus)
622 if (bhdp->bhd_bus_id == bus)
640 hrt_find_bus_range(int bus)
651 if (hpep->php_pri_bus != bus)