Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/apple applepcie: Explicitly use posted BS tag f...



details:   https://anonhg.NetBSD.org/src/rev/b1a9d309860c
branches:  trunk
changeset: 985911:b1a9d309860c
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Sep 13 23:30:05 2021 +0000

description:
applepcie: Explicitly use posted BS tag for PCI devices.

diffstat:

 sys/arch/arm/apple/apple_pcie.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 50d58645af88 -r b1a9d309860c sys/arch/arm/apple/apple_pcie.c
--- a/sys/arch/arm/apple/apple_pcie.c   Mon Sep 13 22:46:02 2021 +0000
+++ b/sys/arch/arm/apple/apple_pcie.c   Mon Sep 13 23:30:05 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: apple_pcie.c,v 1.3 2021/09/06 14:03:17 jmcneill Exp $ */
+/* $NetBSD: apple_pcie.c,v 1.4 2021/09/13 23:30:05 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2021 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: apple_pcie.c,v 1.3 2021/09/06 14:03:17 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: apple_pcie.c,v 1.4 2021/09/13 23:30:05 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -52,6 +52,8 @@
 #define        PCIE_MSI_REMAP          0x0128
 #define        PCIE_MSI_DOORBELL       0x0168
 
+extern struct bus_space arm_generic_bs_tag;
+
 struct apple_pcie_softc {
        struct pcihost_softc    sc_pcihost;
 
@@ -110,7 +112,7 @@
         * Create a new bus tag for PCIe devices that does not inherit the
         * nonposted MMIO flag from the host controller.
         */
-       sc->sc_pci_bst = fdtbus_bus_tag_create(phandle, 0);
+       sc->sc_pci_bst = &arm_generic_bs_tag;
        sc->sc_phandle = phandle;
        error = bus_space_map(faa->faa_bst, cs_addr, cs_size, 0, &sc->sc_bsh);
        if (error) {



Home | Main Index | Thread Index | Old Index