summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-11-13 22:33:51 +0000
committerjhb <jhb@FreeBSD.org>2015-11-13 22:33:51 +0000
commiteef9ad01d678b34f81605b33793b0b2f0fdd12af (patch)
tree35c16aa9805293ad2cb584c26af65dd774139671 /usr.sbin
parent1ec0bdf725e8d9a5a4fd5902ea695152c1cc0d2e (diff)
downloadFreeBSD-src-eef9ad01d678b34f81605b33793b0b2f0fdd12af.zip
FreeBSD-src-eef9ad01d678b34f81605b33793b0b2f0fdd12af.tar.gz
MFC 290412:
Note if relaxed ordering or no snoop is enabled for each PCI-express device.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pciconf/cap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/pciconf/cap.c b/usr.sbin/pciconf/cap.c
index bdcbe1d..ab0fe66 100644
--- a/usr.sbin/pciconf/cap.c
+++ b/usr.sbin/pciconf/cap.c
@@ -459,6 +459,10 @@ cap_express(int fd, struct pci_conf *p, uint8_t ptr)
MAX_PAYLOAD(cap & PCIEM_CAP_MAX_PAYLOAD));
if ((cap & PCIEM_CAP_FLR) != 0)
printf(" FLR");
+ if (ctl & PCIEM_CTL_RELAXED_ORD_ENABLE)
+ printf(" RO");
+ if (ctl & PCIEM_CTL_NOSNOOP_ENABLE)
+ printf(" NS");
cap = read_config(fd, &p->pc_sel, ptr + PCIER_LINK_CAP, 4);
sta = read_config(fd, &p->pc_sel, ptr + PCIER_LINK_STA, 2);
printf(" link x%d(x%d)", (sta & PCIEM_LINK_STA_WIDTH) >> 4,
OpenPOWER on IntegriCloud