summaryrefslogtreecommitdiffstats
path: root/src/util/disrom.pl
diff options
context:
space:
mode:
authorMichael Brown2015-04-13 17:22:35 +0200
committerMichael Brown2015-04-13 17:22:35 +0200
commit452aa157be724e92d73aceee80874c2dfff9708b (patch)
treefaa19454a35b85c20b5ef046b2d4e24a90d71f52 /src/util/disrom.pl
parent[romprefix] Allow autoboot device filter to be disabled (diff)
downloadipxe-452aa157be724e92d73aceee80874c2dfff9708b.tar.gz
ipxe-452aa157be724e92d73aceee80874c2dfff9708b.tar.xz
ipxe-452aa157be724e92d73aceee80874c2dfff9708b.zip
[util] Add ability to dump PCI device ID list
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/util/disrom.pl')
-rwxr-xr-xsrc/util/disrom.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/disrom.pl b/src/util/disrom.pl
index 574957ac..920a86b2 100755
--- a/src/util/disrom.pl
+++ b/src/util/disrom.pl
@@ -55,6 +55,10 @@ do {
printf " %-16s %s\n", "Signature:", $pci->{signature};
printf " %-16s 0x%04x\n", "Vendor ID:", $pci->{vendor_id};
printf " %-16s 0x%04x\n", "Device ID:", $pci->{device_id};
+ if ( $pci->{device_list} ) {
+ printf " %-16s %s\n", "Device list:",
+ ( join ( ", ", map { sprintf "0x%04x", $_ } $pci->device_list ) );
+ }
printf " %-16s 0x%02x%02x%02x\n", "Device class:",
$pci->{base_class}, $pci->{sub_class}, $pci->{prog_intf};
printf " %-16s 0x%04x (%d)\n", "Image length:",