ACPICA 20091112:

Implemented a post-order callback to AcpiWalkNamespace. The existing
        interface only has a pre-order callback. This change adds an
        additional parameter for a post-order callback which will be more
        useful for bus scans.  ACPICA BZ 779. Lin Ming. Updated the ACPICA
        Programmer Reference.

We will use the old "pre-order callback" for the time being.
This commit is contained in:
jruoho 2010-04-08 04:40:51 +00:00
parent 5c7c72ca7e
commit 230c5ee4c7
4 changed files with 13 additions and 13 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vald_acpi.c,v 1.32 2010/03/04 21:54:35 jruoho Exp $ */
/* $NetBSD: vald_acpi.c,v 1.33 2010/04/08 04:40:51 jruoho Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vald_acpi.c,v 1.32 2010/03/04 21:54:35 jruoho Exp $");
__KERNEL_RCSID(0, "$NetBSD: vald_acpi.c,v 1.33 2010/04/08 04:40:51 jruoho Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -501,7 +501,7 @@ vald_acpi_libright_get(struct vald_acpi_softc *sc)
return;
AcpiWalkNamespace(ACPI_TYPE_DEVICE, parent, 100,
vald_acpi_libright_get_bus, sc, NULL);
vald_acpi_libright_get_bus, NULL, sc, NULL);
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: mpacpi.c,v 1.84 2010/01/09 20:56:17 cegger Exp $ */
/* $NetBSD: mpacpi.c,v 1.85 2010/04/08 04:40:51 jruoho Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mpacpi.c,v 1.84 2010/01/09 20:56:17 cegger Exp $");
__KERNEL_RCSID(0, "$NetBSD: mpacpi.c,v 1.85 2010/04/08 04:40:51 jruoho Exp $");
#include "acpica.h"
#include "opt_acpi.h"
@ -505,7 +505,7 @@ mpacpi_find_pcibusses(struct acpi_softc *acpi)
return ENOENT;
TAILQ_INIT(&mpacpi_pcibusses);
AcpiWalkNamespace(ACPI_TYPE_DEVICE, sbhandle, 100,
mpacpi_pcibus_cb, acpi, NULL);
mpacpi_pcibus_cb, NULL, acpi, NULL);
return 0;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: acpi.c,v 1.163 2010/03/29 16:35:59 dyoung Exp $ */
/* $NetBSD: acpi.c,v 1.164 2010/04/08 04:40:51 jruoho Exp $ */
/*-
* Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.163 2010/03/29 16:35:59 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.164 2010/04/08 04:40:51 jruoho Exp $");
#include "opt_acpi.h"
#include "opt_pcifixup.h"
@ -695,7 +695,7 @@ acpi_build_tree(struct acpi_softc *sc)
if (ACPI_SUCCESS(rv))
(void)AcpiWalkNamespace(ACPI_TYPE_ANY, parent, 100,
acpi_make_devnode, sc, NULL);
acpi_make_devnode, NULL, sc, NULL);
}
acpi_rescan1(sc, NULL, NULL);

View File

@ -1,4 +1,4 @@
/* $NetBSD: sony_acpi.c,v 1.15 2010/03/05 14:00:17 jruoho Exp $ */
/* $NetBSD: sony_acpi.c,v 1.16 2010/04/08 04:40:51 jruoho Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sony_acpi.c,v 1.15 2010/03/05 14:00:17 jruoho Exp $");
__KERNEL_RCSID(0, "$NetBSD: sony_acpi.c,v 1.16 2010/04/08 04:40:51 jruoho Exp $");
#include <sys/param.h>
#include <sys/sysctl.h>
@ -248,7 +248,7 @@ sony_acpi_attach(device_t parent, device_t self, void *aux)
sc->sc_dev = self;
rv = AcpiWalkNamespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, 100,
sony_acpi_find_pic, sc, NULL);
sony_acpi_find_pic, NULL, sc, NULL);
if (ACPI_FAILURE(rv))
aprint_error_dev(self, "couldn't walk namespace: %s\n",
AcpiFormatException(rv));
@ -289,7 +289,7 @@ sony_acpi_attach(device_t parent, device_t self, void *aux)
/* Install sysctl handler */
rv = AcpiWalkNamespace(ACPI_TYPE_METHOD,
sc->sc_node->ad_handle, 1, sony_walk_cb, sc, NULL);
sc->sc_node->ad_handle, 1, sony_walk_cb, NULL, sc, NULL);
#ifdef DIAGNOSTIC
if (ACPI_FAILURE(rv))
aprint_error_dev(self, "Cannot walk ACPI namespace (%u)\n",