[Midnightbsd-cvs] src [8068] trunk/usr.sbin/pciconf/cap.c: - If the PCIe "SLOT" flag is set, include this in the capability output
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Sep 15 17:54:41 EDT 2016
Revision: 8068
http://svnweb.midnightbsd.org/src/?rev=8068
Author: laffer1
Date: 2016-09-15 17:54:41 -0400 (Thu, 15 Sep 2016)
Log Message:
-----------
- If the PCIe "SLOT" flag is set, include this in the capability output
- Fix printing of PCIe interrupt number, the shift was incorrect.
Modified Paths:
--------------
trunk/usr.sbin/pciconf/cap.c
Modified: trunk/usr.sbin/pciconf/cap.c
===================================================================
--- trunk/usr.sbin/pciconf/cap.c 2016-09-15 21:52:33 UTC (rev 8067)
+++ trunk/usr.sbin/pciconf/cap.c 2016-09-15 21:54:41 UTC (rev 8068)
@@ -403,8 +403,10 @@
printf("type %d", (flags & PCIM_EXP_FLAGS_TYPE) >> 4);
break;
}
+ if (flags & PCIM_EXP_FLAGS_SLOT)
+ printf(" slot");
if (flags & PCIM_EXP_FLAGS_IRQ)
- printf(" IRQ %d", (flags & PCIM_EXP_FLAGS_IRQ) >> 8);
+ printf(" IRQ %d", (flags & PCIM_EXP_FLAGS_IRQ) >> 9);
val = read_config(fd, &p->pc_sel, ptr + PCIR_EXPRESS_DEVICE_CAP, 4);
flags = read_config(fd, &p->pc_sel, ptr + PCIR_EXPRESS_DEVICE_CTL, 2);
printf(" max data %d(%d)",
More information about the Midnightbsd-cvs
mailing list