Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/pci Set a proper address for PCI memspace to ...



details:   https://anonhg.NetBSD.org/src/rev/ec6482ec874c
branches:  trunk
changeset: 326117:ec6482ec874c
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Jan 19 03:44:13 2014 +0000

description:
Set a proper address for PCI memspace to make bus_space_mmap(9) work correctly.

Reported and confirmed with radeonfb(4) by Naruaki Etomi in PR port-48431.

diffstat:

 sys/arch/alpha/pci/tsp_bus_mem.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r a94734238df2 -r ec6482ec874c sys/arch/alpha/pci/tsp_bus_mem.c
--- a/sys/arch/alpha/pci/tsp_bus_mem.c  Sun Jan 19 02:32:21 2014 +0000
+++ b/sys/arch/alpha/pci/tsp_bus_mem.c  Sun Jan 19 03:44:13 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tsp_bus_mem.c,v 1.12 2012/02/06 02:14:15 matt Exp $ */
+/* $NetBSD: tsp_bus_mem.c,v 1.13 2014/01/19 03:44:13 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1999 by Ross Harvey.  All rights reserved.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tsp_bus_mem.c,v 1.12 2012/02/06 02:14:15 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tsp_bus_mem.c,v 1.13 2014/01/19 03:44:13 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -57,7 +57,8 @@
 #define        CHIP_MEM_EX_STORE_SIZE(v)                                       \
        (sizeof (((struct tsp_config *)(v))->pc_mem_exstorage))
 
-#define CHIP_MEM_SYS_START(v)    (((struct tsp_config *)(v))->pc_iobase)
+#define CHIP_MEM_SYS_START(v)                                          \
+       (((struct tsp_config *)(v))->pc_iobase | P_PCI_MEM)
 
 /*
  * Tsunami core logic appears on EV6.  We require at least EV56



Home | Main Index | Thread Index | Old Index