* vfb module
@ 2007-04-05 8:30 Michael Trimarchi
2007-04-05 18:42 ` Antonino A. Daplas
0 siblings, 1 reply; 3+ messages in thread
From: Michael Trimarchi @ 2007-04-05 8:30 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: vfb module
2007-04-05 8:30 vfb module Michael Trimarchi
@ 2007-04-05 18:42 ` Antonino A. Daplas
2007-04-05 20:38 ` trimarchi
0 siblings, 1 reply; 3+ messages in thread
From: Antonino A. Daplas @ 2007-04-05 18:42 UTC (permalink / raw)
To: Michael Trimarchi; +Cc: linux-kernel
On Thu, 2007-04-05 at 10:30 +0200, Michael Trimarchi wrote:
> 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?
For testing, and some uses it as a skeleton for another driver.
Tony
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: vfb module
2007-04-05 18:42 ` Antonino A. Daplas
@ 2007-04-05 20:38 ` trimarchi
0 siblings, 0 replies; 3+ messages in thread
From: trimarchi @ 2007-04-05 20:38 UTC (permalink / raw)
To: Antonino A. Daplas; +Cc: linux-kernel
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?
>
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-04-05 20:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-05 8:30 vfb module Michael Trimarchi
2007-04-05 18:42 ` Antonino A. Daplas
2007-04-05 20:38 ` trimarchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome