Module Name: src Committed By: jruoho Date: Sun Jan 9 09:47:56 UTC 2011
Modified Files: src/sys/dev/acpi: acpi_bat.c Log Message: Print a message if ACPI 4.0 functionality is present (in which case the driver should be updated). To generate a diff of this commit: cvs rdiff -u -r1.106 -r1.107 src/sys/dev/acpi/acpi_bat.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_bat.c diff -u src/sys/dev/acpi/acpi_bat.c:1.106 src/sys/dev/acpi/acpi_bat.c:1.107 --- src/sys/dev/acpi/acpi_bat.c:1.106 Tue Jan 4 05:48:48 2011 +++ src/sys/dev/acpi/acpi_bat.c Sun Jan 9 09:47:55 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_bat.c,v 1.106 2011/01/04 05:48:48 jruoho Exp $ */ +/* $NetBSD: acpi_bat.c,v 1.107 2011/01/09 09:47:55 jruoho Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -75,7 +75,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: acpi_bat.c,v 1.106 2011/01/04 05:48:48 jruoho Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi_bat.c,v 1.107 2011/01/09 09:47:55 jruoho Exp $"); #include <sys/param.h> #include <sys/condvar.h> @@ -221,6 +221,8 @@ { struct acpibat_softc *sc = device_private(self); struct acpi_attach_args *aa = aux; + ACPI_HANDLE tmp; + ACPI_STATUS rv; aprint_naive(": ACPI Battery\n"); aprint_normal(": ACPI Battery\n"); @@ -248,6 +250,14 @@ return; acpibat_init_envsys(self); + + /* + * If this is ever seen, the driver should be extended. + */ + rv = AcpiGetHandle(sc->sc_node->ad_handle, "_BIX", &tmp); + + if (ACPI_SUCCESS(rv)) + aprint_verbose_dev(self, "ACPI 4.0 functionality present\n"); } /*