Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/fdt Support configuring ranges where only prefe...



details:   https://anonhg.NetBSD.org/src/rev/909461b815b8
branches:  trunk
changeset: 451956:909461b815b8
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Jun 12 22:47:03 2019 +0000

description:
Support configuring ranges where only prefetchable memory is defined

diffstat:

 sys/arch/arm/fdt/pcihost_fdt.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r d3da4d930192 -r 909461b815b8 sys/arch/arm/fdt/pcihost_fdt.c
--- a/sys/arch/arm/fdt/pcihost_fdt.c    Wed Jun 12 22:44:53 2019 +0000
+++ b/sys/arch/arm/fdt/pcihost_fdt.c    Wed Jun 12 22:47:03 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcihost_fdt.c,v 1.9 2019/06/12 10:13:44 jmcneill Exp $ */
+/* $NetBSD: pcihost_fdt.c,v 1.10 2019/06/12 22:47:03 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcihost_fdt.c,v 1.9 2019/06/12 10:13:44 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcihost_fdt.c,v 1.10 2019/06/12 22:47:03 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -347,6 +347,11 @@
                }
        }
 
+       if (memext == NULL && pmemext != NULL) {
+               memext = pmemext;
+               pmemext = NULL;
+       }
+
        error = pci_configure_bus(&sc->sc_pc, ioext, memext, pmemext, sc->sc_bus_min, PCIHOST_CACHELINE_SIZE);
 
        if (ioext)



Home | Main Index | Thread Index | Old Index