Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi Add acpi_device_register(). Just a placeholder...



details:   https://anonhg.NetBSD.org/src/rev/e37a5dfbeba9
branches:  trunk
changeset: 951510:e37a5dfbeba9
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Feb 04 21:39:00 2021 +0000

description:
Add acpi_device_register().  Just a placeholder for now.

diffstat:

 sys/dev/acpi/acpi.c    |  15 +++++++++++++--
 sys/dev/acpi/acpivar.h |   3 ++-
 2 files changed, 15 insertions(+), 3 deletions(-)

diffs (53 lines):

diff -r 69a6c88c335b -r e37a5dfbeba9 sys/dev/acpi/acpi.c
--- a/sys/dev/acpi/acpi.c       Thu Feb 04 21:33:13 2021 +0000
+++ b/sys/dev/acpi/acpi.c       Thu Feb 04 21:39:00 2021 +0000
@@ -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_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
diff -r 69a6c88c335b -r e37a5dfbeba9 sys/dev/acpi/acpivar.h
--- a/sys/dev/acpi/acpivar.h    Thu Feb 04 21:33:13 2021 +0000
+++ b/sys/dev/acpi/acpivar.h    Thu Feb 04 21:39:00 2021 +0000
@@ -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 *);
 
 bool           acpi_device_present(ACPI_HANDLE);
+void           acpi_device_register(device_t, void *);
 
 int            acpi_reset(void);
 



Home | Main Index | Thread Index | Old Index