diff options
author | njl <njl@FreeBSD.org> | 2004-08-12 17:06:05 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-08-12 17:06:05 +0000 |
commit | 4da4abbfcd105c2e425cdaa57b6e953b3a25f34b (patch) | |
tree | 5a543542e928daa11c6672cbcbd5c89e479b2c48 /sys/dev/acpica | |
parent | 6cb56c3870e7f1fcfd92c5b582d2b2d645223a7d (diff) | |
download | FreeBSD-src-4da4abbfcd105c2e425cdaa57b6e953b3a25f34b.zip FreeBSD-src-4da4abbfcd105c2e425cdaa57b6e953b3a25f34b.tar.gz |
Skip dependent functions when finding the resource from _PRS to use for
later calls to _SRS. Add note that this code should be centralized at
some point.
Bug from: Jiawei Ye <leafy7382_AT_gmail.com>
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r-- | sys/dev/acpica/acpi_pci_link.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/dev/acpica/acpi_pci_link.c b/sys/dev/acpica/acpi_pci_link.c index 4943a1b..ce42132 100644 --- a/sys/dev/acpica/acpi_pci_link.c +++ b/sys/dev/acpica/acpi_pci_link.c @@ -224,8 +224,8 @@ acpi_pci_link_get_irq_resources(ACPI_RESOURCE *resources, if (resources->Id != ACPI_RSTYPE_IRQ && resources->Id != ACPI_RSTYPE_EXT_IRQ) { - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, - "Resource is not an IRQ entry - %d\n", resources->Id)); + printf("acpi link get: resource %d is not an IRQ\n", + resources->Id); return_ACPI_STATUS (AE_TYPE); } @@ -242,7 +242,7 @@ acpi_pci_link_get_irq_resources(ACPI_RESOURCE *resources, } if (NumberOfInterrupts == 0) { - ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Blank IRQ resource\n")); + printf("acpi link get: empty IRQ resource\n"); return_ACPI_STATUS (AE_NULL_ENTRY); } @@ -397,8 +397,12 @@ acpi_pci_link_add_link(ACPI_HANDLE handle, struct acpi_prt_entry *entry) goto out; } - /* XXX This only handles one resource, ignoring SourceIndex. */ + /* Skip any DPF descriptors. XXX We should centralize this code. */ resources = (ACPI_RESOURCE *) buf.Pointer; + if (resources->Id == ACPI_RSTYPE_START_DPF) + resources = ACPI_NEXT_RESOURCE(resources); + + /* XXX This only handles one resource, ignoring SourceIndex. */ bcopy(resources, &link->possible_resources, sizeof(link->possible_resources)); |