3 # Script to output BSD compatible pci ids file
4 # - Copyright Dave Airlie 2004 (airlied@linux.ie)
12 This file is auto-generated from the drm_pciids.txt in the DRM CVS
13 Please contact dri-devel@lists.sf.net to add new cards to this list
17 while read pcivend pcidev attribs pciname
19 if [ "x$pcivend" = "x" ]; then
20 if [ "$finished" = "0" ]; then
22 echo " {0, 0, 0, NULL}" >> $OUTFILE
27 cardtype=`echo "$pcivend" | cut -s -f2 -d'[' | cut -s -f1 -d']'`
28 if [ "x$cardtype" = "x" ];
30 echo " {$pcivend, $pcidev, $attribs, $pciname}, \\" >> $OUTFILE
32 echo "#define "$cardtype"_PCI_IDS \\" >> $OUTFILE
38 if [ "$finished" = "0" ]; then
39 echo " {0, 0, 0, NULL}" >> $OUTFILE