Okay I've come up with a method for generating the pci ids stuff for the DRM for Linux and BSD,
put a txt file in shared or the format [cardname] vendid devid "namestring"
have two scripts in the scripts directory ones to create a linux drm_pciids.h file of the format #define cardname_PCI_IDS \ { vendid, devid, 0 }, \ { 0, 0, 0 } with all the card IDs in the one file,
then change drm_drv.h to have.. #include "drm_pciids.h"
static drm_pci_id_list_t DRM(pciidlist)[] = { DRM(PCI_IDS) };
remove all the pciids from the drivers also ..
Then we can submit the generated header file to the kernel, and I can modify the Linux code to grab a PCI name if they are compiled in and switched on, so to add a new ID, you just edit the text file, we can run the scripts as part of the make or if people think we need it we can just check in the .h files and use the scripts to keep them updated..
let me know what you think I still have to fix up the Linux code on my machine to get the PCI names if it can ..
I did something similar a few months ago. I wrote a script that filtered certain entries from pci.ids and generated a similar set of structures. I'll see if I can dig it up. At the time, I also included the submodel and subvendor values as well. That way specific card models could be identified. I don't know if anyone cares about that, though.
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel