PERFORCE change 1189941 for review
John Baldwin
jhb at FreeBSD.org
Fri Jan 10 20:28:32 UTC 2014
http://p4web.freebsd.org/@@1189941?ac=10
Change 1189941 by jhb at jhb_jhbbsd on 2014/01/10 20:27:37
Output slot numbers.
Affected files ...
.. //depot/projects/pci/usr.sbin/pciconf/cap.c#2 edit
Differences ...
==== //depot/projects/pci/usr.sbin/pciconf/cap.c#2 (text+ko) ====
@@ -447,8 +447,10 @@
printf("type %d", (flags & PCIEM_FLAGS_TYPE) >> 4);
break;
}
- if (flags & PCIEM_FLAGS_SLOT)
- printf(" slot");
+ if (flags & PCIEM_FLAGS_SLOT) {
+ cap = read_config(fd, &p->pc_sel, ptr + PCIER_SLOT_CAP, 4);
+ printf(" slot %d", (cap & PCIEM_SLOT_CAP_PSN) >> 19);
+ }
if (flags & PCIEM_FLAGS_IRQ)
printf(" IRQ %d", (flags & PCIEM_FLAGS_IRQ) >> 9);
cap = read_config(fd, &p->pc_sel, ptr + PCIER_DEVICE_CAP, 4);
More information about the p4-projects
mailing list