diff options
author | Mystery Man <unknown@mandriva.org> | 2003-03-16 15:30:56 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2003-03-16 15:30:56 +0000 |
commit | a030cfea974447d595cc068ab02657e9536d8ae5 (patch) | |
tree | cf79b8311ad00c2486bc3c8936561529d2771a26 /mdk-stage1/usb-resource/update-usb-ids.pl | |
parent | 0f2158d02fe433bdef724be81aa2e1b4327c3dfc (diff) | |
download | drakx-a030cfea974447d595cc068ab02657e9536d8ae5.tar drakx-a030cfea974447d595cc068ab02657e9536d8ae5.tar.gz drakx-a030cfea974447d595cc068ab02657e9536d8ae5.tar.bz2 drakx-a030cfea974447d595cc068ab02657e9536d8ae5.tar.xz drakx-a030cfea974447d595cc068ab02657e9536d8ae5.zip |
This commit was manufactured by cvs2svn to create tag 'V9_1_26mdk'.V9_1_26mdk
Diffstat (limited to 'mdk-stage1/usb-resource/update-usb-ids.pl')
-rwxr-xr-x | mdk-stage1/usb-resource/update-usb-ids.pl | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/mdk-stage1/usb-resource/update-usb-ids.pl b/mdk-stage1/usb-resource/update-usb-ids.pl deleted file mode 100755 index ae934c1b5..000000000 --- a/mdk-stage1/usb-resource/update-usb-ids.pl +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/perl - -use strict; -use MDK::Common; - -require '/usr/bin/merge2pcitable.pl'; -my $pci = read_pcitable("/usr/share/ldetect-lst/pcitable"); -my $usb = read_pcitable("/usr/share/ldetect-lst/usbtable"); - -print ' - - -struct usb_module_map { - unsigned short vendor; /* vendor */ - unsigned short id; /* device */ - const char *name; /* human readable name */ - const char *module; /* module to load */ -}; - -'; - -print "struct pci_module_map usb_pci_ids[] = { - -"; - -foreach my $k (sort keys %$pci) { - my $v = $pci->{$k}; - $v->[0] =~ /^usb-|^ehci-hcd|^ohci1394/ or next; - $k =~ /^(....)(....)/; - printf qq|\t{ 0x%s, 0x%s, "", "%s" },\n|, - $1, $2, $v->[0]; -} - -print "}; -int usb_num_ids=sizeof(usb_pci_ids)/sizeof(struct pci_module_map); -"; - -print "struct usb_module_map usb_usb_ids[] = { -"; - -my @modules = chomp_(`perl ../../kernel/modules.pl pci_modules4stage1:"network/usb disk/usb"`); - - foreach my $k (sort keys %$usb) { - my $v = $usb->{$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 usb_usb_num_ids=sizeof(usb_usb_ids)/sizeof(struct usb_module_map); -"; |