On Mon, 2003-10-20 at 14:52, Jon Smirl wrote: > Eric Anholt is in the middle of doing a generic fix for this problem. See the > "Adding hardware detection to DRI drivers" thread. The current DRM drivers now > do PCI ID detection on both Linux and BSD. He is also adding an enum for chip > family but I'm not sure what the status is. There is supposed to be a new DRM > IOCTL for getting PCI ID and family.
The device private info associated with chipid isn't being stored in the drm_device_t yet, but I plan to hook that up. I hadn't planned on there being an ioctl for PCI ID and family. Having a PCI ID ioctl makes some sense to me, as it would be useful for non-X applications of the DRI. However, I don't think exporting the device private info to userland is a good idea. It's just another layer of things to go wrong with versioning, like the issue being discussed right now with mga. Just stick a switch in the userland based off the pci id to decide the family. Given the small number of pci ids for this hardware, it's an easy solution. -- Eric Anholt [EMAIL PROTECTED] http://people.freebsd.org/~anholt/ [EMAIL PROTECTED] ------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel