Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Map the device's memory space with BUS_SPACE_MAP...



details:   https://anonhg.NetBSD.org/src/rev/bbefbc22473b
branches:  trunk
changeset: 532766:bbefbc22473b
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Jun 14 15:15:23 2002 +0000

description:
Map the device's memory space with BUS_SPACE_MAP_LINEAR, since we
need to be able to access it as such.

Fixes kern/17114.

diffstat:

 sys/dev/pci/neo.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 9658d5a107dc -r bbefbc22473b sys/dev/pci/neo.c
--- a/sys/dev/pci/neo.c Fri Jun 14 14:47:24 2002 +0000
+++ b/sys/dev/pci/neo.c Fri Jun 14 15:15:23 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: neo.c,v 1.12 2002/04/15 04:13:25 simonb Exp $  */
+/*     $NetBSD: neo.c,v 1.13 2002/06/14 15:15:23 thorpej Exp $ */
 
 /*
  * Copyright (c) 1999 Cameron Grant <gandalf%vilnya.demon.co.uk@localhost>
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: neo.c,v 1.12 2002/04/15 04:13:25 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: neo.c,v 1.13 2002/06/14 15:15:23 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -570,8 +570,8 @@
                return;
        }
 
-       if (pci_mapreg_map(pa, PCI_MAPREG_START + 4, PCI_MAPREG_TYPE_MEM, 0,
-                          &sc->regiot, &sc->regioh, NULL, NULL)) {
+       if (pci_mapreg_map(pa, PCI_MAPREG_START + 4, PCI_MAPREG_TYPE_MEM,
+           BUS_SPACE_MAP_LINEAR, &sc->regiot, &sc->regioh, NULL, NULL)) {
                printf("%s: can't map registers\n", sc->dev.dv_xname);
                return;
        }



Home | Main Index | Thread Index | Old Index