svn commit: r245041 - projects/efika_mx/sys/arm/freescale/imx
Aleksandr Rybalko
ray at FreeBSD.org
Fri Jan 4 14:34:17 UTC 2013
Author: ray
Date: Fri Jan 4 14:34:16 2013
New Revision: 245041
URL: http://svnweb.freebsd.org/changeset/base/245041
Log:
Pass physical address to mmap.
Sponsored by: FreeBSD Foundation
Modified:
projects/efika_mx/sys/arm/freescale/imx/imx51_ipuv3.c
Modified: projects/efika_mx/sys/arm/freescale/imx/imx51_ipuv3.c
==============================================================================
--- projects/efika_mx/sys/arm/freescale/imx/imx51_ipuv3.c Fri Jan 4 14:31:57 2013 (r245040)
+++ projects/efika_mx/sys/arm/freescale/imx/imx51_ipuv3.c Fri Jan 4 14:34:16 2013 (r245041)
@@ -99,6 +99,9 @@ struct video_adapter_softc {
video_adapter_t va;
intptr_t fb_addr;
+ intptr_t fb_paddr;
+ va_sc->fb_paddr = (intptr_t)sc->pbase;
+ *paddr = sc->fb_paddr + offset;
unsigned int fb_size;
int depth;
@@ -196,6 +199,7 @@ ipu3_fb_init(void *arg)
((sc->pbase >> 3) >> 3) & 0xffffffff);
va_sc->fb_addr = (intptr_t)sc->vbase;
+ va_sc->fb_paddr = (intptr_t)sc->pbase;
va_sc->fb_size = size;
va_sc->stride = IPU3FB_WIDTH * IPU3FB_BPP;
va_sc->depth = IPU3FB_BPP * 8;
@@ -628,7 +632,7 @@ ipu3fb_mmap(video_adapter_t *adp, vm_oof
* framebuffer, since it shouldn't be touched
*/
if (offset < sc->stride * sc->height) {
- *paddr = sc->fb_addr + offset;
+ *paddr = sc->fb_paddr + offset;
return (0);
}
More information about the svn-src-projects
mailing list