|
Roadmap |
Site sponsored by
IGEL
|
||
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [directfb-dev] Re: Video overlay questions
On Tue, 2003-09-02 at 22:09, Andreas Robinson wrote:
> Ville Syrjälä wrote:
> > So you're doing a gfxdriver which claims to work on vesafb?
> > You really need to add some specific card identification code
> > to the gfxdriver so that the driver won't be enabled for all
> > people using vesafb...
>
> Already done. I have a kernel module which only stays put if a CLE266
> graphics device is present. The module uses devfs, so the DFB driver can
> probe for the module with stat(), like this:
>
> static int driver_probe(GraphicsDevice *device)
> {
> struct stat s;
> return stat("/dev/cle266vgaio", &s) + 1;
> }
>
> In other words, if there is no module installed, /dev/cle266vgaio won't
> exist, and driver_probe() will return zero.
/dev/cle266vgaio can very well exist without the kernel module, in
particular if /dev isn't mounted as devfs. If you at least opened it and
verified that it behaves as expected...
--
Earthling Michel Dänzer \ Debian (powerpc), XFree86 and DRI developer
Software libre enthusiast \ http://svcs.affero.net/rm.php?r=daenzer
--
Info: To unsubscribe send a mail to ecartis@directfb.org with
"unsubscribe directfb-dev" as subject.
|
|
| directfb.org |
|
Development |
|
Old Archives |