diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2007-05-08 03:39:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:30 -0400 |
commit | 09aaf268eb1d22eee690d26a913f660e2081597f (patch) | |
tree | 9179447608d1c7ee23af266d2bae2eef6d05a1c9 /drivers/video/Kconfig | |
parent | 3f9b0880e4a96b02bc0131451f2f6231cd90bd94 (diff) |
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>
Diffstat (limited to 'drivers/video/Kconfig')
-rw-r--r-- | drivers/video/Kconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 6d32726e8751..85d0e8707ee3 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig | |||
@@ -122,6 +122,11 @@ config FB_SYS_IMAGEBLIT | |||
122 | blitting. This is used by drivers that don't provide their own | 122 | blitting. This is used by drivers that don't provide their own |
123 | (accelerated) version and the framebuffer is in system RAM. | 123 | (accelerated) version and the framebuffer is in system RAM. |
124 | 124 | ||
125 | config FB_SYS_FOPS | ||
126 | tristate | ||
127 | depends on FB | ||
128 | default n | ||
129 | |||
125 | config FB_DEFERRED_IO | 130 | config FB_DEFERRED_IO |
126 | bool | 131 | bool |
127 | depends on FB | 132 | depends on FB |