vfb module
Hi,
I changed a little bit the vfb module to be used as a frame buffer in memory. I would like to use the mmap over the virtual framebuffer. I added a few line:
I allocated the buffer using
videomemory=(void *)__get_free_pages(GFP_KERNEL, get_order(PAGE_ALIGN(videomemorysize)));
and fixed the framebuffer info structure:
vfb_fix.smem_start = virt_to_phys(videomemory);
vfb_fix.smem_len = videomemorysize;
What is the virtual frame buffer meant for?
Regards Michael
Quoted 8 lines · Michael Trimarchi
Hi,
I changed a little bit the vfb module to be used as a frame buffer in memory. I would like to use the mmap over the virtual framebuffer. I added a few line:
I allocated the buffer using
videomemory=(void *)__get_free_pages(GFP_KERNEL, get_order(PAGE_ALIGN(videomemorysize)));
Quoted 6 lines
and fixed the framebuffer info structure:
vfb_fix.smem_start =
virt_to_phys(videomemory);
vfb_fix.smem_len = videomemorysize;What is the virtual frame buffer meant for?
For testing, and some uses it as a skeleton for another driver.
Tony
Hi,
Quoted 7 lines
Quoted 7 lines
I changed a little bit the vfb module to be used as a frame buffer in memory. I would like to use the mmap over the virtual framebuffer. I added a few line:
I allocated the buffer using
videomemory=(void *)__get_free_pages(GFP_KERNEL, get_order(PAGE_ALIGN(videomemorysize)));
Quoted 8 lines
Quoted 6 lines
and fixed the framebuffer info structure:
vfb_fix.smem_start =
virt_to_phys(videomemory);
vfb_fix.smem_len = videomemorysize;What is the virtual frame buffer meant for?
For testing, and some uses it as a skeleton for another driver.
I want to use for debugging purpose in embedded system in emulation enviroment. Regards Michael
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.