Hi there Jonas.
DirectFB needs a "system driver" and it can optionally have a "graphics
driver".
If you go for (1), you can reuse the "fbdev" system driver and leave out
the graphics driver, since fbdev already does mapping/flipping etc.
If you go for (2), you are best off using the "devmem" system which is
basically an empty system which relies on the graphics driver to provide
the functionality. so for (1), you only program the linux kernel driver,
for (2) you make a new graphics driver. Your choice.
Greets
Niels
Jonas Romfelt wrote:
Hi,
I'm new to DirectFB and need some high-level pointers in the right
direction how to add DirectFB support to an embedded system that
working on. I'm adding a custom FPGA via PCIe that provides a
simplistic graphical overlay functionality. Nothing fancy such as HW
acceleration, just a framebuffer, anything that goes into that memory
is displayed.
I have got a custom kernel module that allows access to the
framebuffer memory via a kernel bounce buffer that can be mmap'd from
user space. The FPGA also handles numerous other things...
How do support my custom HW from DirectFB? So, should I:
1) make my driver appear as a "standard" Linux framebuffer device driver?
2) make a custom DirectFB gfxdriver for my custom Linux kernel driver?
Are both approaches viable?
Is at simple as (1) if I have a "standardized" framebuffer device
driver I can go ahead using DirectFB without any modifications? And if
I already have a working driver (2) I basically only need to a add a
thin gfxdriver that maps in my custom driver?
What is the recommended way of doing it?
Many thanks,
Jonas
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
--
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev