]> mj.ucw.cz Git - pciutils.git/commitdiff
Remove 64-bit BAR handling code for bus centric view
authorYu Zhao <yu.zhao@intel.com>
Sun, 4 Jan 2009 08:09:08 +0000 (16:09 +0800)
committerMartin Mares <mj@ucw.cz>
Sun, 18 Jan 2009 21:57:58 +0000 (22:57 +0100)
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 <yu.zhao@intel.com>
lspci.c

diff --git a/lspci.c b/lspci.c
index 9958ef6b7b12061778208c017d6d616faeae3716..5456c5a8acfb0d7992f37262249cd108c233ac61 100644 (file)
--- 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("<unassigned>");
-                     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))