Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Define macro before using it. This macro is use...



details:   https://anonhg.NetBSD.org/src/rev/9860f55af82a
branches:  trunk
changeset: 995027:9860f55af82a
user:      cherry <cherry%NetBSD.org@localhost>
date:      Mon Dec 03 05:22:03 2018 +0000

description:
Define macro before using it. This macro is used as a compile time
"plugin" mechanism to use various platform specific enumeration
functions. It is currently separately defined for 'native' and XEN,
but the mechanism is not exported globally as it should be.

XXX: fix this.

diffstat:

 sys/dev/acpi/acpi_mcfg.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 1ff548788c6e -r 9860f55af82a sys/dev/acpi/acpi_mcfg.c
--- a/sys/dev/acpi/acpi_mcfg.c  Mon Dec 03 04:39:44 2018 +0000
+++ b/sys/dev/acpi/acpi_mcfg.c  Mon Dec 03 05:22:03 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_mcfg.c,v 1.13 2018/11/02 19:51:08 jmcneill Exp $  */
+/*     $NetBSD: acpi_mcfg.c,v 1.14 2018/12/03 05:22:03 cherry Exp $    */
 
 /*-
  * Copyright (C) 2015 NONAKA Kimihiro <nonaka%NetBSD.org@localhost>
@@ -28,7 +28,7 @@
 #include "opt_pci.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_mcfg.c,v 1.13 2018/11/02 19:51:08 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_mcfg.c,v 1.14 2018/12/03 05:22:03 cherry Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -539,6 +539,10 @@
        return 0;
 }
 
+#ifdef PCI_MACHDEP_ENUMERATE_BUS
+#define pci_enumerate_bus PCI_MACHDEP_ENUMERATE_BUS
+#endif
+
 static void
 acpimcfg_scan_bus(struct pci_softc *sc, pci_chipset_tag_t pc, int bus)
 {



Home | Main Index | Thread Index | Old Index