Note if relaxed ordering or no snoop is enabled for each PCI-express device.

MFC after:	1 week
This commit is contained in:
jhb 2015-11-05 20:24:56 +00:00
parent df8e8b8d1b
commit 42d9b66898

View File

@ -460,6 +460,10 @@ cap_express(int fd, struct pci_conf *p, uint8_t ptr)
MAX_PAYLOAD(cap & PCIEM_CAP_MAX_PAYLOAD)); MAX_PAYLOAD(cap & PCIEM_CAP_MAX_PAYLOAD));
if ((cap & PCIEM_CAP_FLR) != 0) if ((cap & PCIEM_CAP_FLR) != 0)
printf(" FLR"); 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); cap = read_config(fd, &p->pc_sel, ptr + PCIER_LINK_CAP, 4);
sta = read_config(fd, &p->pc_sel, ptr + PCIER_LINK_STA, 2); sta = read_config(fd, &p->pc_sel, ptr + PCIER_LINK_STA, 2);
printf(" link x%d(x%d)", (sta & PCIEM_LINK_STA_WIDTH) >> 4, printf(" link x%d(x%d)", (sta & PCIEM_LINK_STA_WIDTH) >> 4,