* lspci.man: Document `<?>' and also mention that extended config
space is currently available only with the linux_sysfs back-end.
+ * lspci.c: Decode the Debug port capability (per EHCI 0.96 spec).
+
2007-10-14 Martin Mares <mj@ucw.cz>
* lib/[fno]bsd-*: Removed extraneous braces.
t2 & 0xff, (t2 >> 8) & 0xff, (t2 >> 16) & 0xff, t2 >> 24);
}
+static void
+show_debug_port(int cap)
+{
+ int bar = cap >> 13;
+ int pos = cap & 0x1fff;
+ printf("Debug port: BAR=%d offset=%04x\n", bar, pos);
+}
+
static void
show_ext_caps(struct device *d)
{
printf("Vendor Specific Information <?>\n");
break;
case PCI_CAP_ID_DBG:
- printf("Debug port <?>\n");
+ show_debug_port(cap);
break;
case PCI_CAP_ID_CCRC:
printf("CompactPCI central resource control <?>\n");