Module Name: src Committed By: macallan Date: Thu Sep 22 06:16:13 UTC 2011
Modified Files: src/sys/dev/pci/voyager: voyagerfb.c Log Message: use BUS_SPACE_MAP_PREFETCHABLE To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/dev/pci/voyager/voyagerfb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/voyager/voyagerfb.c diff -u src/sys/dev/pci/voyager/voyagerfb.c:1.4 src/sys/dev/pci/voyager/voyagerfb.c:1.5 --- src/sys/dev/pci/voyager/voyagerfb.c:1.4 Tue Sep 20 06:15:02 2011 +++ src/sys/dev/pci/voyager/voyagerfb.c Thu Sep 22 06:16:13 2011 @@ -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; }