*
* XXX: Should we handle the lookup failing?
*/
-kprintf("%s(): %d\n", __FUNCTION__, __LINE__);
if (ACPI_SUCCESS(acpi_lookup_irq_resource(child, *rid, res, &ares)))
acpi_config_intr(child, &ares);
else
* the rman pool.
*/
bus = device_get_parent(dev);
-gparent = device_get_parent(bus);
+ gparent = device_get_parent(bus);
dev_rl = BUS_GET_RESOURCE_LIST(bus, dev);
bus_rl = BUS_GET_RESOURCE_LIST(device_get_parent(bus), bus);
-if(bus_rl)
-kprintf("busrl is not null!\n");
- SLIST_FOREACH(dev_rle, dev_rl, link) {
+ if(bus_rl)
+ kprintf("busrl is not null!\n");
+ SLIST_FOREACH(dev_rle, dev_rl, link) {
if (dev_rle->type != SYS_RES_IOPORT && dev_rle->type != SYS_RES_MEMORY)
continue;
if (cpuid > mp_naps)
cpuid = 0;
- //if (bootverbose) {
+ if (bootverbose) {
kprintf("IOAPIC #%d intpin %d -> irq %d (CPU%d)\n",
apic, pin, irq, cpuid);
- //}
+ }
/*
* Program the appropriate registers. This routing may be
int slot = pci_get_slot(child);
int bus = pci_get_bus(child);
int pin = irq + 1;
- kprintf("%s(%s): irq: %d, trigger: %d, polarity: %d bus: %d slot: %d\n",
- __FUNCTION__, device_get_nameunit(child), irq, trig, pol,
- bus, slot);
line = pci_apic_irq(bus, slot, pin);
if(line >= 0)
return line;
if(line >= 0)
return line;
- kprintf("MPTable: Unable to route for bus %d slot %d INT%c\n",
- pci_get_bus(child), pci_get_slot(child), 'A' + pin - 1);
-
return PCI_INVALID_IRQ;
#else
return irq;