summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/pci-resource/update-pci-ids.pl
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2002-08-01 17:20:30 +0000
committerMystery Man <unknown@mandriva.org>2002-08-01 17:20:30 +0000
commit10e8a05be15a93ecb30d80420a7df79a41df0b6f (patch)
tree0fe3a8fe9665e857dcea7c8d35b539ab0295a6fa /mdk-stage1/pci-resource/update-pci-ids.pl
parent20bc98cdccfed607ee0c3050a3a3bd196c0a1d38 (diff)
downloaddrakx-10e8a05be15a93ecb30d80420a7df79a41df0b6f.tar
drakx-10e8a05be15a93ecb30d80420a7df79a41df0b6f.tar.gz
drakx-10e8a05be15a93ecb30d80420a7df79a41df0b6f.tar.bz2
drakx-10e8a05be15a93ecb30d80420a7df79a41df0b6f.tar.xz
drakx-10e8a05be15a93ecb30d80420a7df79a41df0b6f.zip
This commit was manufactured by cvs2svn to create tag 'V1_1_9_1mdk'.V1_1_9_1mdk
Diffstat (limited to 'mdk-stage1/pci-resource/update-pci-ids.pl')
-rwxr-xr-xmdk-stage1/pci-resource/update-pci-ids.pl46
1 files changed, 0 insertions, 46 deletions
diff --git a/mdk-stage1/pci-resource/update-pci-ids.pl b/mdk-stage1/pci-resource/update-pci-ids.pl
deleted file mode 100755
index 73f1d151b..000000000
--- a/mdk-stage1/pci-resource/update-pci-ids.pl
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/usr/bin/perl
-
-use strict;
-use MDK::Common;
-
-require '/usr/bin/merge2pcitable.pl';
-my $pci = read_pcitable("/usr/share/ldetect-lst/pcitable");
-
-print '
-#define PCI_REVISION_ID 0x08 /* Revision ID */
-
-struct pci_module_map {
- unsigned short vendor; /* PCI vendor id */
- unsigned short device; /* PCI device id */
- const char *name; /* PCI human readable name */
- const char *module; /* module to load */
-};
-
-';
-
-my %t = (
- network => 'network/main',
- medias => 'disk/scsi|hardware_raid',
-);
-
-foreach my $type (keys %t) {
- my @modules = chomp_(`perl ../../kernel/modules.pl pci_modules4stage1:"$t{$type}"`);
-
- print "#ifndef DISABLE_".uc($type)."
-struct pci_module_map ${type}_pci_ids[] = {
-";
-
- foreach my $k (sort keys %$pci) {
- my $v = $pci->{$k};
- member($v->[0], @modules) or next;
- $k =~ /^(....)(....)/;
- printf qq|\t{ 0x%s, 0x%s, "%s", "%s" },\n|,
- $1, $2, $v->[1], $v->[0];
- }
-
- print "};
-int ${type}_num_ids = sizeof(${type}_pci_ids) / sizeof(struct pci_module_map);
-#endif
-
-";
-}