[EMAIL PROTECTED] wrote:
> RyanYee,
> 
> For DirectFB, the davinci driver uses /dev/mem driver to directly map the

/dev/mem just serves as a pool of physically contiguous memory for acceleration.

Offscreen surfaces are allocated there or layer surfaces not directly displayed
by the hardware.

But the driver still opens all frame buffer devices to provide additional pools
for allocation of layer surfaces *directly* displayed by the hardware using the
fbdev API from the Davinci driver only, no Fbdev system module, just plain 
DevMem.

It's really clean, have a look at the driver :)

> frame buffers for all three layers thus the FBDev driver is not activated.
> It's either FBDev or the davinci driver... they are two separate entities,
> not one layered on top of the other.
> 
> You can still use the FBDev driver in 1.1.1 (we did), but you are required
> to patch supported 2.6.10 and 2.6.2x git kernels to add the proper IOCTLs.

We seem to have a quite old frame buffer driver, so that's true, you need to 
add the
missing ioctls to your driver version. Be careful with the sizeof vs. no sizeof 
for
the ioctl definitions :)

> Search the directfb-dev@directfb.org list on gmane for IOCTL and you'll
> find the patch that I posted.
> 
> Also, you'll probably want to join the directfb-dev list as these questions
> would be better answered there. I just happen to get both lists.

Thanks for CCing!

> Date: Thu, 27 Mar 2008 17:24:54 +0800
> From: " RyanYee/?? " <[EMAIL PROTECTED]>
> Subject: why driver_probe in davinci_gfxdriver.c not support FBdev
> To: [EMAIL PROTECTED]
> Message-ID:
>              <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=UTF-8
> 
> I found code in davinci_gfxdriver.c
> 
> switch (dfb_system_type()) {
>           case CORE_DEVMEM:
>           case CORE_TI_CMEM:
>                break;
> 
>           default:
>                return 0;
>      }
> so if I use fbdev,I can't use davinci driver ?

Correct, because the Davinci driver takes up all of the frame buffer devices 
itself!

Just use "system = devmem".

-- 
Best regards,
   Denis Oliver Kropp

.------------------------------------------.
| 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

Reply via email to