Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci/voyager use BUS_SPACE_MAP_PREFETCHABLE
details: https://anonhg.NetBSD.org/src/rev/05e197cc3756
branches: trunk
changeset: 769760:05e197cc3756
user: macallan <macallan%NetBSD.org@localhost>
date: Thu Sep 22 06:16:13 2011 +0000
description:
use BUS_SPACE_MAP_PREFETCHABLE
diffstat:
sys/dev/pci/voyager/voyagerfb.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (44 lines):
diff -r 42835d7b1c5b -r 05e197cc3756 sys/dev/pci/voyager/voyagerfb.c
--- a/sys/dev/pci/voyager/voyagerfb.c Thu Sep 22 05:08:52 2011 +0000
+++ b/sys/dev/pci/voyager/voyagerfb.c Thu Sep 22 06:16:13 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: voyagerfb.c,v 1.4 2011/09/20 06:15:02 macallan Exp $ */
+/* $NetBSD: voyagerfb.c,v 1.5 2011/09/22 06:16:13 macallan Exp $ */
/*
* Copyright (c) 2009 Michael Lorenz
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: voyagerfb.c,v 1.4 2011/09/20 06:15:02 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: voyagerfb.c,v 1.5 2011/09/22 06:16:13 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -424,7 +424,7 @@
/* 'regular' framebuffer mmap()ing */
if (offset < sc->sc_fbsize) {
pa = bus_space_mmap(sc->sc_memt, sc->sc_fb + offset, 0, prot,
- BUS_SPACE_MAP_LINEAR);
+ BUS_SPACE_MAP_LINEAR | BUS_SPACE_MAP_PREFETCHABLE);
return pa;
}
@@ -441,14 +441,13 @@
if ((offset >= sc->sc_fb) && (offset < (sc->sc_fb + sc->sc_fbsize))) {
pa = bus_space_mmap(sc->sc_memt, offset, 0, prot,
- BUS_SPACE_MAP_LINEAR);
+ BUS_SPACE_MAP_LINEAR | BUS_SPACE_MAP_PREFETCHABLE);
return pa;
}
if ((offset >= sc->sc_reg) &&
(offset < (sc->sc_reg + sc->sc_regsize))) {
- pa = bus_space_mmap(sc->sc_memt, offset, 0, prot,
- BUS_SPACE_MAP_LINEAR);
+ pa = bus_space_mmap(sc->sc_memt, offset, 0, prot, 0);
return pa;
}
Home |
Main Index |
Thread Index |
Old Index