Module Name: src Committed By: kiyohara Date: Mon Jul 13 12:55:21 UTC 2009
Modified Files: src/sys/dev/acpi: acpi_resource.c Log Message: ACPI resource supports Extended IRQ From FreeBSD. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/dev/acpi/acpi_resource.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/acpi/acpi_resource.c diff -u src/sys/dev/acpi/acpi_resource.c:1.28 src/sys/dev/acpi/acpi_resource.c:1.29 --- src/sys/dev/acpi/acpi_resource.c:1.28 Tue May 12 09:50:28 2009 +++ src/sys/dev/acpi/acpi_resource.c Mon Jul 13 12:55:21 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_resource.c,v 1.28 2009/05/12 09:50:28 cegger Exp $ */ +/* $NetBSD: acpi_resource.c,v 1.29 2009/07/13 12:55:21 kiyohara Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. @@ -67,7 +67,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: acpi_resource.c,v 1.28 2009/05/12 09:50:28 cegger Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi_resource.c,v 1.29 2009/07/13 12:55:21 kiyohara Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -297,8 +297,20 @@ break; case ACPI_RESOURCE_TYPE_EXTENDED_IRQ: - ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES, - "ExtendedIrq unimplemented\n")); + if (res->Data.ExtendedIrq.ProducerConsumer != ACPI_CONSUMER) { + ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES, + "ignored ExtIRQ producer\n")); + break; + } + for (i = 0; i < res->Data.ExtendedIrq.InterruptCount; i++) { + ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES, + "ExtIRQ %d\n", + res->Data.ExtendedIrq.Interrupts[i])); + if (ops->irq) + (*ops->irq)(arg->dev, arg->context, + res->Data.ExtendedIrq.Interrupts[i], + res->Data.ExtendedIrq.Triggering); + } break; case ACPI_RESOURCE_TYPE_GENERIC_REGISTER: