Module Name: src Committed By: thorpej Date: Thu Feb 4 21:39:00 UTC 2021
Modified Files: src/sys/dev/acpi: acpi.c acpivar.h Log Message: Add acpi_device_register(). Just a placeholder for now. To generate a diff of this commit: cvs rdiff -u -r1.288 -r1.289 src/sys/dev/acpi/acpi.c cvs rdiff -u -r1.84 -r1.85 src/sys/dev/acpi/acpivar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/acpi/acpi.c diff -u src/sys/dev/acpi/acpi.c:1.288 src/sys/dev/acpi/acpi.c:1.289 --- src/sys/dev/acpi/acpi.c:1.288 Sun Dec 13 20:24:26 2020 +++ src/sys/dev/acpi/acpi.c Thu Feb 4 21:39:00 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi.c,v 1.288 2020/12/13 20:24:26 jmcneill Exp $ */ +/* $NetBSD: acpi.c,v 1.289 2021/02/04 21:39:00 thorpej Exp $ */ /*- * Copyright (c) 2003, 2007 The NetBSD Foundation, Inc. @@ -100,7 +100,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.288 2020/12/13 20:24:26 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.289 2021/02/04 21:39:00 thorpej Exp $"); #include "pci.h" #include "opt_acpi.h" @@ -1125,6 +1125,17 @@ acpi_print(void *aux, const char *pnp) } /* + * acpi_device_register -- + * Called by the platform device_register() routine when + * attaching devices. + */ +void +acpi_device_register(device_t dev __unused, void *v __unused) +{ + /* Placeholder. */ +} + +/* * Notify. */ static void Index: src/sys/dev/acpi/acpivar.h diff -u src/sys/dev/acpi/acpivar.h:1.84 src/sys/dev/acpi/acpivar.h:1.85 --- src/sys/dev/acpi/acpivar.h:1.84 Wed Jan 27 05:11:54 2021 +++ src/sys/dev/acpi/acpivar.h Thu Feb 4 21:39:00 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: acpivar.h,v 1.84 2021/01/27 05:11:54 thorpej Exp $ */ +/* $NetBSD: acpivar.h,v 1.85 2021/02/04 21:39:00 thorpej Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. @@ -319,6 +319,7 @@ const struct device_compatible_entry * const struct device_compatible_entry *); bool acpi_device_present(ACPI_HANDLE); +void acpi_device_register(device_t, void *); int acpi_reset(void);