From 6bd1a04738a9756c1e8e4f8531b076a216918751 Mon Sep 17 00:00:00 2001 From: Yu Zhao Date: Sun, 4 Jan 2009 16:09:08 +0800 Subject: [PATCH] Remove 64-bit BAR handling code for bus centric view Remove the redundant 64-bit BAR handling code, since it's already taken care of by generic/proc/sysfs methods code. Signed-off-by: Yu Zhao --- lspci.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lspci.c b/lspci.c index 9958ef6..5456c5a 100644 --- a/lspci.c +++ b/lspci.c @@ -17,7 +17,6 @@ /* Options */ int verbose; /* Show detailed information */ -static int opt_buscentric; /* Show bus addresses/IRQ's instead of CPU-visible ones */ static int opt_hex; /* Show contents of config space as hexadecimal numbers */ struct pci_filter filter; /* Device filter */ static int opt_tree; /* Show bus tree */ @@ -402,15 +401,6 @@ show_bases(struct device *d, int cnt) { i++; z = get_conf_long(d, PCI_BASE_ADDRESS_0 + 4*i); - if (opt_buscentric) - { - u32 y = a & 0xffffffff; - if (a || z) - printf("%08x%08x", z, y); - else - printf(""); - done = 1; - } } } if (!done) @@ -943,7 +933,6 @@ main(int argc, char **argv) break; case 'b': pacc->buscentric = 1; - opt_buscentric = 1; break; case 's': if (msg = pci_filter_parse_slot(&filter, optarg)) -- 2.39.5