<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
From: James Simmons &lt;jsimmons@infradead.org&gt;

Set the default access_align variable.  This variable tells us how much data
the hardware can handle in a single read/write cycle.  For example the epson
chipset can handle only 16 bit reads and writes to the framebuffer.


---

 25-akpm/drivers/video/fbmem.c |    2 ++
 1 files changed, 2 insertions(+)

diff -puN drivers/video/fbmem.c~fbdev-access_align-default drivers/video/fbmem.c
--- 25/drivers/video/fbmem.c~fbdev-access_align-default	Thu Apr 29 15:49:12 2004
+++ 25-akpm/drivers/video/fbmem.c	Thu Apr 29 15:49:12 2004
@@ -1290,6 +1290,7 @@ register_framebuffer(struct fb_info *fb_
 			fb_info-&gt;pixmap.size = FBPIXMAPSIZE;
 			fb_info-&gt;pixmap.buf_align = 1;
 			fb_info-&gt;pixmap.scan_align = 1;
+			fb_info-&gt;pixmap.access_align = 4;
 			fb_info-&gt;pixmap.flags = FB_PIXMAP_DEFAULT;
 		}
 	}	
@@ -1305,6 +1306,7 @@ register_framebuffer(struct fb_info *fb_
 			fb_info-&gt;sprite.size = FBPIXMAPSIZE;
 			fb_info-&gt;sprite.buf_align = 1;
 			fb_info-&gt;sprite.scan_align = 1;
+			fb_info-&gt;sprite.access_align = 4;
 			fb_info-&gt;sprite.flags = FB_PIXMAP_DEFAULT;
 		}
 	}

_
</pre></body></html>