summaryrefslogtreecommitdiffstats
path: root/convert
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mandriva.org>2009-11-01 19:43:03 +0000
committerAnssi Hannula <anssi@mandriva.org>2009-11-01 19:43:03 +0000
commitf25dfa357a87fd2abc1a821a650e6489bc97eb66 (patch)
treeb6c13c207ca26f9ed09ff524df42ef68df9ff425 /convert
parent73bf2ca05c55b7e6a11358369db174de86a3bd55 (diff)
downloadldetect-lst-f25dfa357a87fd2abc1a821a650e6489bc97eb66.tar
ldetect-lst-f25dfa357a87fd2abc1a821a650e6489bc97eb66.tar.gz
ldetect-lst-f25dfa357a87fd2abc1a821a650e6489bc97eb66.tar.bz2
ldetect-lst-f25dfa357a87fd2abc1a821a650e6489bc97eb66.tar.xz
ldetect-lst-f25dfa357a87fd2abc1a821a650e6489bc97eb66.zip
add support for reading fglrxko_pci_ids.h into merge2pcitable.pl
Diffstat (limited to 'convert')
-rwxr-xr-xconvert/merge2pcitable.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/convert/merge2pcitable.pl b/convert/merge2pcitable.pl
index 740feb0c..e4486f0f 100755
--- a/convert/merge2pcitable.pl
+++ b/convert/merge2pcitable.pl
@@ -368,6 +368,17 @@ sub read_nvidia_readme {
\%drivers;
}
+sub read_fglrxko_pci_ids_h {
+ my ($f) = @_;
+ my %drivers;
+ foreach (cat_($f)) {
+ chomp;
+ my ($id) = /^\s+FGL_ASIC_ID\(0x(....)\)/ or next;
+ $drivers{"1002" . lc($id) . "ffffffff"} = [ 'Card:FGLRX_UNKNOWN', 'unknown' ];
+ }
+ \%drivers;
+}
+
# write in RedHat's pcitable old format (mdk one)
sub write_pcitable {
my ($drivers) = @_;