[PATCH v2] PCIUtils: remove 64-bit BAR handling code for bus centric view

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>

---
 lspci.c |   11 -----------
 1 files changed, 0 insertions(+), 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("<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))
-- 
1.5.6.4

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux