summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-09-23 18:08:57 +0000
committerThierry Vignaud <tv@mandriva.org>2009-09-23 18:08:57 +0000
commit89c3767a3a6ec7317a0d2d91bbafe5dcafe2d535 (patch)
treefd0a3442b5fbd8ad34680201625cd19dd7999306 /perl-install/detect_devices.pm
parent20bcae655bd8d303b499aa0c6eb7990b1277ff5e (diff)
downloaddrakx-89c3767a3a6ec7317a0d2d91bbafe5dcafe2d535.tar
drakx-89c3767a3a6ec7317a0d2d91bbafe5dcafe2d535.tar.gz
drakx-89c3767a3a6ec7317a0d2d91bbafe5dcafe2d535.tar.bz2
drakx-89c3767a3a6ec7317a0d2d91bbafe5dcafe2d535.tar.xz
drakx-89c3767a3a6ec7317a0d2d91bbafe5dcafe2d535.zip
(pci_probe__real,c::pci_probe) retrieve PCI revision (#42576)
(needs ldetect >= 0.9)
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 6042b29e5..a48039034 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -1,6 +1,6 @@
package detect_devices; # $Id$
-use diagnostics;
+#use diagnostics;
use strict;
use vars qw($pcitable_addons $usbtable_addons);
@@ -803,7 +803,7 @@ my (@pci, @usb);
sub pci_probe__real() {
add_addons($pcitable_addons, map {
my %l;
- @l{qw(vendor id subvendor subid pci_domain pci_bus pci_device pci_function media_type nice_media_type driver description)} = split "\t";
+ @l{qw(vendor id subvendor subid pci_domain pci_bus pci_device pci_function pci_revision media_type nice_media_type driver description)} = split "\t";
$l{$_} = hex $l{$_} foreach qw(vendor id subvendor subid);
$l{bus} = 'PCI';
$l{sysfs_device} = sprintf('/sys/bus/pci/devices/%04x:%02x:%02x.%d', $l{pci_domain}, $l{pci_bus}, $l{pci_device}, $l{pci_function});