From 023fb85f643c000d355e0d2d8ea9b24dd53b3951 Mon Sep 17 00:00:00 2001 From: njl Date: Thu, 12 Aug 2004 02:06:19 +0000 Subject: Fix the PRT entry code in acpi_pci_link to always add the entry, even if there is no irq link. Since we now use the stored copy of PRT, not the one that used to be passed into acpi_pcib_route_interrupt(), we need it in the list. [1] Fix a bug in acpi_pci_find_prt() where we weren't checking the bus, thus choosing the wrong PRT entry to use for routing the link. Also, add a printf for the case where the PRT entry is not found as this should not happen. Tested by: marcel [1] --- sys/dev/acpica/acpi_pcib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev/acpica/acpi_pcib.c') diff --git a/sys/dev/acpica/acpi_pcib.c b/sys/dev/acpica/acpi_pcib.c index 893952f..d061b72 100644 --- a/sys/dev/acpica/acpi_pcib.c +++ b/sys/dev/acpica/acpi_pcib.c @@ -116,8 +116,11 @@ acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin) /* Look up the PRT entry for this device. */ entry = acpi_pci_find_prt(pcib, dev, pin); - if (entry == NULL) + if (entry == NULL) { + device_printf(pcib, "no PRT entry for %d.%d.INT%c\n", pci_get_bus(dev), + pci_get_slot(dev), 'A' + pin); goto out; + } prt = &entry->prt; link = entry->pci_link; if (bootverbose) -- cgit v1.1