FB through DMA

From: Matthias Badaire <hidden>
Date: 2004-02-09 23:51:42

Hi,

I am sorry if it is not the right place to ask this question.

I am currently using an hauppauge PVR-350 with tv-out.
The driver for this card (http://ivtv.sourceforge.net/) expose a framebuffer driver.
We have a direct access to the mem of this card and therefore the fb kernel driver was easy.

Now my problem comes from the fact that I want to avoid to write directly to the 
RAM of the card but I want to send the frame via DMA(via an ioctl).

I suceed to make some ugly modif to fbdev.c by
- define my new ioctl in fbdevhw.c
- using the shadow options
- define my own buffer through a malloc (call it memBuf) 
- change FBDevWindowLinear to give memBuf back (for shadowUpdatePacked to write in it)
- define my own FBshadowUpdatePacked (and pass it for shadowAdd())
- FBshadowUpdatePacked calls shadowUpdatePacked and then calls 
the ioctl with memBuf as a parameter for the card to dma the memBuf.

Now I am quite sure it is not the right way to do it (I hear some laughing already).
Could somebody tell me in a nutshell how I should have implemented this.

I know the way I did this, it is now irrelevant to FrameBuffer, as I am not using 
the mmap of the kernel fb driver, but maybe some people could help me here?

Thx

M


 


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help