Print some OEM version info for the R/XSDT. Can be used to help identify

buggy ACPI implementations.
This commit is contained in:
fvdl 2003-01-08 16:52:49 +00:00
parent d3db019efd
commit 9f4eb04ccb

View File

@ -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;