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 Clear PCI_FLAGS_IO_OKAY as we don't support...



details:   https://anonhg.NetBSD.org/src/rev/fe7c4ba495ba
branches:  trunk
changeset: 445986:fe7c4ba495ba
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Nov 19 11:08:16 2018 +0000

description:
Clear PCI_FLAGS_IO_OKAY as we don't support it yet.

diffstat:

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

diffs (36 lines):

diff -r c13e5bf8df8a -r fe7c4ba495ba sys/arch/arm/fdt/pcihost_fdt.c
--- a/sys/arch/arm/fdt/pcihost_fdt.c    Mon Nov 19 10:48:59 2018 +0000
+++ b/sys/arch/arm/fdt/pcihost_fdt.c    Mon Nov 19 11:08:16 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcihost_fdt.c,v 1.5 2018/11/16 19:32:01 jakllsch Exp $ */
+/* $NetBSD: pcihost_fdt.c,v 1.6 2018/11/19 11:08:16 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.5 2018/11/16 19:32:01 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcihost_fdt.c,v 1.6 2018/11/19 11:08:16 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -203,15 +203,14 @@
        pba.pba_flags = PCI_FLAGS_MRL_OKAY |
                        PCI_FLAGS_MRM_OKAY |
                        PCI_FLAGS_MWI_OKAY |
-                       PCI_FLAGS_MEM_OKAY |
-                       PCI_FLAGS_IO_OKAY;
+                       PCI_FLAGS_MEM_OKAY;
 #ifdef __HAVE_PCI_MSI_MSIX
        if (sc->sc_type == PCIHOST_ECAM) {
                pba.pba_flags |= PCI_FLAGS_MSI_OKAY |
                                 PCI_FLAGS_MSIX_OKAY;
        }
 #endif
-       pba.pba_iot = sc->sc_bst;
+       pba.pba_iot = 0;
        pba.pba_memt = sc->sc_bst;
        pba.pba_dmat = sc->sc_dmat;
 #ifdef _PCI_HAVE_DMA64



Home | Main Index | Thread Index | Old Index