diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-12-05 19:17:15 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-12-05 19:17:15 +0000 |
commit | 889140cc7443199609393b489e13d395e9e062a1 (patch) | |
tree | 9e57175bdada4e31c27b49ac718d0d24dd92e2d2 /sys/dev/acpi/acpi.c | |
parent | 52e7566f48bd54f2a0a319139b4ca8625857a49c (diff) |
Hang acpi(4) below bios(4) instead of mainbus(4). This lets us move acpi(4)
before pcibios(4), and then.... if acpi(4) attaches, skip pcibios(4) since
it messes the machines up. Fixes claudio's HP dl320 G5, and almost assuredly
others.
ok kettenis
Diffstat (limited to 'sys/dev/acpi/acpi.c')
-rw-r--r-- | sys/dev/acpi/acpi.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index a75adf3f7a1..9c860bb2646 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.110 2007/12/05 16:14:14 deraadt Exp $ */ +/* $OpenBSD: acpi.c,v 1.111 2007/12/05 19:17:13 deraadt Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -334,14 +334,14 @@ acpi_foundprt(struct aml_node *node, void *arg) int acpi_match(struct device *parent, void *match, void *aux) { - struct acpi_attach_args *aaa = aux; + struct bios_attach_args *ba = aux; struct cfdata *cf = match; /* sanity */ - if (strcmp(aaa->aaa_name, cf->cf_driver->cd_name)) + if (strcmp(ba->ba_name, cf->cf_driver->cd_name)) return (0); - if (!acpi_probe(parent, cf, aaa)) + if (!acpi_probe(parent, cf, ba)) return (0); return (1); @@ -395,7 +395,7 @@ acpi_add_device(struct aml_node *node, void *arg) void acpi_attach(struct device *parent, struct device *self, void *aux) { - struct acpi_attach_args *aaa = aux; + struct bios_attach_args *ba = aux; struct acpi_softc *sc = (struct acpi_softc *)self; struct acpi_mem_map handle; struct acpi_rsdp *rsdp; @@ -409,10 +409,10 @@ acpi_attach(struct device *parent, struct device *self, void *aux) #endif paddr_t facspa; - sc->sc_iot = aaa->aaa_iot; - sc->sc_memt = aaa->aaa_memt; + sc->sc_iot = ba->ba_iot; + sc->sc_memt = ba->ba_memt; - if (acpi_map(aaa->aaa_pbase, sizeof(struct acpi_rsdp), &handle)) { + if (acpi_map(ba->ba_acpipbase, sizeof(struct acpi_rsdp), &handle)) { printf(": can't map memory\n"); return; } |