diff options
author | Reinhard Tartler <siretart@tauware.de> | 2011-10-10 17:43:39 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-10-10 17:43:39 +0200 |
commit | f4092abdf94af6a99aff944d6264bc1284e8bdd4 (patch) | |
tree | 2ac1c9cc16ceb93edb2c4382c088dac5aeafdf0f /nx-X11/extras/drm/scripts/create_linux_pci_lists.sh | |
parent | a840692edc9c6d19cd7c057f68e39c7d95eb767d (diff) | |
download | nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.gz nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.bz2 nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.zip |
Imported nx-X11-3.1.0-1.tar.gznx-X11/3.1.0-1
Summary: Imported nx-X11-3.1.0-1.tar.gz
Keywords:
Imported nx-X11-3.1.0-1.tar.gz
into Git repository
Diffstat (limited to 'nx-X11/extras/drm/scripts/create_linux_pci_lists.sh')
-rw-r--r-- | nx-X11/extras/drm/scripts/create_linux_pci_lists.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nx-X11/extras/drm/scripts/create_linux_pci_lists.sh b/nx-X11/extras/drm/scripts/create_linux_pci_lists.sh new file mode 100644 index 000000000..bb0e68782 --- /dev/null +++ b/nx-X11/extras/drm/scripts/create_linux_pci_lists.sh @@ -0,0 +1,40 @@ +#! /bin/bash +# +# Script to output Linux compatible pci ids file +# - Copyright Dave Airlie 2004 (airlied@linux.ie) +# +OUTFILE=drm_pciids.h + +finished=0 + +cat > $OUTFILE <<EOF +/* + This file is auto-generated from the drm_pciids.txt in the DRM CVS + Please contact dri-devel@lists.sf.net to add new cards to this list +*/ +EOF + +while read pcivend pcidev attribs pciname +do + if [ "x$pcivend" = "x" ]; then + if [ "$finished" = "0" ]; then + finished=1 + echo " {0, 0, 0}" >> $OUTFILE + echo >> $OUTFILE + fi + else + + cardtype=`echo "$pcivend" | cut -s -f2 -d'[' | cut -s -f1 -d']'` + if [ "x$cardtype" = "x" ]; + then + echo " {$pcivend, $pcidev, PCI_ANY_ID, PCI_ANY_ID, 0, 0, $attribs}, \\" >> $OUTFILE + else + echo "#define "$cardtype"_PCI_IDS \\" >> $OUTFILE + finished=0 + fi + fi +done + +if [ "$finished" = "0" ]; then + echo " {0, 0, 0}" >> $OUTFILE +fi |