]> err.no Git - linux-2.6/commit
fbdev: add fb_read/fb_write functions for framebuffers in system RAM
authorAntonino A. Daplas <adaplas@gmail.com>
Tue, 8 May 2007 07:39:03 +0000 (00:39 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:30 +0000 (11:15 -0700)
commit09aaf268eb1d22eee690d26a913f660e2081597f
tree9179447608d1c7ee23af266d2bae2eef6d05a1c9
parent3f9b0880e4a96b02bc0131451f2f6231cd90bd94
fbdev: add fb_read/fb_write functions for framebuffers in system RAM

The functions fb_read() and fb_write in fbmem.c assume that the framebuffer
is in IO memory.  However, we have 3 drivers (hecubafb, arcfb, and vfb)
where the framebuffer is allocated from system RAM (via vmalloc). Using
__raw_read/__raw_write (fb_readl/fb_writel) for these drivers is
illegal, especially in other platforms.

Create file read and write methods for these types of drivers.  These are
named fb_sys_read() and fb_sys_write().

Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/Kconfig
drivers/video/Makefile
drivers/video/fb_sys_fops.c [new file with mode: 0644]
include/linux/fb.h