Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Use BUS_SPACE_MAP_PREFETCHABLE when mapping the ...
details: https://anonhg.NetBSD.org/src/rev/1c9c2ea99929
branches: trunk
changeset: 761885:1c9c2ea99929
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Thu Feb 10 10:23:20 2011 +0000
description:
Use BUS_SPACE_MAP_PREFETCHABLE when mapping the framebuffer.
diffstat:
sys/dev/pci/genfb_pci.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (40 lines):
diff -r 136d8488ae66 -r 1c9c2ea99929 sys/dev/pci/genfb_pci.c
--- a/sys/dev/pci/genfb_pci.c Thu Feb 10 10:21:40 2011 +0000
+++ b/sys/dev/pci/genfb_pci.c Thu Feb 10 10:23:20 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genfb_pci.c,v 1.28 2011/02/09 13:19:53 jmcneill Exp $ */
+/* $NetBSD: genfb_pci.c,v 1.29 2011/02/10 10:23:20 jmcneill Exp $ */
/*-
* Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfb_pci.c,v 1.28 2011/02/09 13:19:53 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfb_pci.c,v 1.29 2011/02/10 10:23:20 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -132,8 +132,9 @@
}
if (bus_space_map(sc->sc_memt, sc->sc_gen.sc_fboffset,
- sc->sc_gen.sc_fbsize, BUS_SPACE_MAP_LINEAR, &sc->sc_memh) != 0) {
-
+ sc->sc_gen.sc_fbsize,
+ BUS_SPACE_MAP_LINEAR | BUS_SPACE_MAP_PREFETCHABLE,
+ &sc->sc_memh) != 0) {
aprint_error_dev(self, "unable to map the framebuffer\n");
return;
}
@@ -244,7 +245,8 @@
(sc->sc_want_wsfb == 1)) {
return bus_space_mmap(sc->sc_memt, sc->sc_gen.sc_fboffset,
- offset, prot, BUS_SPACE_MAP_LINEAR);
+ offset, prot,
+ BUS_SPACE_MAP_LINEAR | BUS_SPACE_MAP_PREFETCHABLE);
}
/*
Home |
Main Index |
Thread Index |
Old Index