diff options
| author | fvdl <fvdl@NetBSD.org> | 2003-01-08 16:52:49 +0000 |
|---|---|---|
| committer | fvdl <fvdl@NetBSD.org> | 2003-01-08 16:52:49 +0000 |
| commit | 9f4eb04ccb9314e05555f1e4e5c53d6ea2807d24 (patch) | |
| tree | d355cbbf858779856c175b1245e01390d0f08cbc /sys/dev | |
| parent | d3db019efdc8af1314031f6341f2b4c547088d8c (diff) | |
Print some OEM version info for the R/XSDT. Can be used to help identify
buggy ACPI implementations.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/acpi/acpi.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 92c58751db3..52e3195ee05 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $NetBSD: acpi.c,v 1.28 2003/01/07 18:46:48 fvdl Exp $ */ +/* $NetBSD: acpi.c,v 1.29 2003/01/08 16:52:49 fvdl Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. @@ -41,7 +41,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.28 2003/01/07 18:46:48 fvdl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.29 2003/01/08 16:52:49 fvdl Exp $"); #include "opt_acpi.h" @@ -205,6 +205,7 @@ acpi_attach(struct device *parent, struct device *self, void *aux) { struct acpi_softc *sc = (void *) self; struct acpibus_attach_args *aa = aux; + ACPI_TABLE_HEADER *ap = &AcpiGbl_XSDT->Header; ACPI_STATUS rv; printf("\n"); @@ -212,6 +213,11 @@ acpi_attach(struct device *parent, struct device *self, void *aux) if (acpi_softc != NULL) panic("acpi_attach: ACPI has already been attached"); + printf("%s: X/RSDT: OemId <%6.6s,%8.8s,%08x>, AslId <%4.4s,%08x>\n", + sc->sc_dev.dv_xname, + ap->OemId, ap->OemTableId, ap->OemRevision, + ap->AslCompilerId, ap->AslCompilerRevision); + sc->sc_iot = aa->aa_iot; sc->sc_memt = aa->aa_memt; sc->sc_pc = aa->aa_pc; |
