Thread (1 message) 1 message, 1 author, 2003-09-23

Re: Add three new IOCTLs to FB API

From: Ville Syrjälä <syrjala@sci.fi>
Date: 2003-09-23 15:41:20

On Sun, Sep 21, 2003 at 10:28:38PM -0700, Jon Smirl wrote:
I'd like to add three new IOCTLs to the FB API to help support standalone Mesa.
The idea is to eliminate the need for config files. Xfree might even use these
in the future.

1) Get location of card that is associated with this fb device. It would return
bus,dev,func of hardware. There may be more than one piece of the same hardware
installed.

3) Get vendor and card PCI ID
I'd like to have these too. DirectFB needs to know if the chip is G400 or
G450/G550. Currently we just pick the first entry found in /proc/bus/pci
and hope it has the same chip type as the /dev/fb we're using.
2) Get 3D driver name. Return the name of the DRM driver that is associated
with this fb device. For example aty128fb would return r128, radeonfb would
return radeon. Empty string if there is none. There are eight DRM drivers and
15 fb ones.
Why does this have to be in the kernel? You already have the PCI IDs so
you should be able to handle this in user space.

-- 
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help