-/* $OpenBSD: acpiec.c,v 1.35 2010/07/27 05:17:36 jordan Exp $ */
+/* $OpenBSD: acpiec.c,v 1.36 2010/07/27 06:12:50 deraadt Exp $ */
/*
* Copyright (c) 2006 Can Erkin Acar <canacar@openbsd.org>
*
{
struct acpi_attach_args *aa = aux;
struct cfdata *cf = match;
- struct acpi_ecdt *ecdt = aa->aaa_table;
+ struct acpi_ecdt *ecdt = aa->aaa_table;
/* Check for early ECDT table attach */
if (ecdt && !memcmp(ecdt->hdr.signature, ECDT_SIG, sizeof(ECDT_SIG) - 1))
-/* $OpenBSD: acpisony.c,v 1.1 2010/07/26 11:29:23 pirofti Exp $ */
+/* $OpenBSD: acpisony.c,v 1.2 2010/07/27 06:12:50 deraadt Exp $ */
/*
* Copyright (c) 2010 Paul Irofti <pirofti@openbsd.org>
*
arg.type = AML_OBJTYPE_INTEGER;
for (arg.v_integer = 0x20; arg.v_integer < 0x30; arg.v_integer++) {
- aml_evalname(sc->sc_acpi, sc->sc_devnode, "SN00", 1, &arg, &res);
+ aml_evalname(sc->sc_acpi, sc->sc_devnode, "SN00", 1, &arg, &res);
val = aml_val2int(&res);
aml_freevalue(&res);
if (val == key) {
bzero(&arg, sizeof(arg));
arg.type = AML_OBJTYPE_INTEGER;
-
+
off = acpisony_find_offset(sc, key);
DPRINTF(("off = %X\n", off));
if (off < 0)
-/* $OpenBSD: acpivideo.c,v 1.6 2010/07/26 17:46:29 kettenis Exp $ */
+/* $OpenBSD: acpivideo.c,v 1.7 2010/07/27 06:12:50 deraadt Exp $ */
/*
* Copyright (c) 2008 Federico G. Schwindt <fgsch@openbsd.org>
* Copyright (c) 2009 Paul Irofti <pirofti@openbsd.org>
av.aaa.aaa_node = node->parent;
av.aaa.aaa_name = "acpivout";
av.dod = sc->sc_dod[i];
- /*
+ /*
* Make sure we don't attach twice if both _BCL and
* _DCS methods are found by zeroing the DOD address.
*/
aml_freevalue(&res);
return;
}
- sc->sc_dod = malloc(sc->sc_dod_len * sizeof(int), M_DEVBUF,
+ sc->sc_dod = malloc(sc->sc_dod_len * sizeof(int), M_DEVBUF,
M_WAITOK|M_ZERO);
if (sc->sc_dod == NULL) {
aml_freevalue(&res);