]> err.no Git - linux-2.6/commit
vfb: make virtual framebuffer mmapable
authorIlya Yanok <ilya.yanok@gmail.com>
Tue, 16 Oct 2007 08:29:17 +0000 (01:29 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:43:18 +0000 (09:43 -0700)
commit68e5e9d734503695915734e50e9427624cf8f3b2
treec784682bd229dd03e04fd9444cd9345dccf578c3
parent1ddc28d7e7cb5f501e224a5868d34442c6203eb1
vfb: make virtual framebuffer mmapable

Changed things:

1. vmalloc()/vfree() replaced with rvmalloc()/rvfree() (taken from
   drivers/media/video/se401.c)

2. mmap method implemented (mostly taken from drivers/media/video/se401.c)

3. smem_start and smem_len fields of struct fb_fix_screeninfo initialized.
    (smem_start initialized with virtual address, don't know if it is really
   bad...)

[adaplas: sparse warning fix]
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/vfb.c