Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/cobalt/dev The PCI I/O space extent map needs to re...



details:   https://anonhg.NetBSD.org/src/rev/b9187311ca5d
branches:  trunk
changeset: 969806:b9187311ca5d
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Mar 02 01:46:02 2020 +0000

description:
The PCI I/O space extent map needs to reflect the BUS_{START,END}
not the SYS_{START,END}.

This fixes mapping of the viaide DMA registers on my Qube2.

diffstat:

 sys/arch/cobalt/dev/gt.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a118a313f3e1 -r b9187311ca5d sys/arch/cobalt/dev/gt.c
--- a/sys/arch/cobalt/dev/gt.c  Sun Mar 01 23:23:36 2020 +0000
+++ b/sys/arch/cobalt/dev/gt.c  Mon Mar 02 01:46:02 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gt.c,v 1.29 2018/01/20 13:56:09 skrll Exp $    */
+/*     $NetBSD: gt.c,v 1.30 2020/03/02 01:46:02 thorpej Exp $  */
 
 /*
  * Copyright (c) 2000 Soren S. Jorvang.  All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gt.c,v 1.29 2018/01/20 13:56:09 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gt.c,v 1.30 2020/03/02 01:46:02 thorpej Exp $");
 
 #include "opt_pci.h"
 #include "pci.h"
@@ -132,7 +132,7 @@
        pc->pc_bsh = sc->sc_bsh;
 
 #ifdef PCI_NETBSD_CONFIGURE
-       pc->pc_ioext = extent_create("pciio", 0x10001000, 0x11ffffff,
+       pc->pc_ioext = extent_create("pciio", 0x00001000, 0x01ffffff,
            NULL, 0, EX_NOWAIT);
        pc->pc_memext = extent_create("pcimem", 0x12000000, 0x13ffffff,
            NULL, 0, EX_NOWAIT);



Home | Main Index | Thread Index | Old Index