summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2018-12-31 15:21:36 +0100
committerMartin Mares <mj@ucw.cz>2018-12-31 15:21:36 +0100
commit10168b8444c1cf42884c637916d47cf59c05676a (patch)
tree69db1ffe8df7d79a34713f7d6fbfb5596a69ede4
parent9f7dc65c6973456fb765560bbd9c9e7fc03543ec (diff)
downloadpciutils-10168b8444c1cf42884c637916d47cf59c05676a.tar.gz
"Function-Level Reset" device capability is displayed for RCiEP
According to discussion in GitHub PR #8, Root complex integrated endpoints also support FLR.
-rw-r--r--ls-caps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ls-caps.c b/ls-caps.c
index a5a5ba8..a739f46 100644
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -689,7 +689,7 @@ static void cap_express_dev(struct device *d, int where, int type)
FLAG(t, PCI_EXP_DEVCAP_ATN_IND), FLAG(t, PCI_EXP_DEVCAP_PWR_IND));
printf(" RBE%c",
FLAG(t, PCI_EXP_DEVCAP_RBE));
- if ((type == PCI_EXP_TYPE_ENDPOINT) || (type == PCI_EXP_TYPE_LEG_END))
+ if ((type == PCI_EXP_TYPE_ENDPOINT) || (type == PCI_EXP_TYPE_LEG_END) || (type == PCI_EXP_TYPE_ROOT_INT_EP))
printf(" FLReset%c",
FLAG(t, PCI_EXP_DEVCAP_FLRESET));
if ((type == PCI_EXP_TYPE_ENDPOINT) || (type == PCI_EXP_TYPE_UPSTREAM) ||
@@ -713,7 +713,7 @@ static void cap_express_dev(struct device *d, int where, int type)
FLAG(w, PCI_EXP_DEVCTL_NOSNOOP));
if (type == PCI_EXP_TYPE_PCI_BRIDGE)
printf(" BrConfRtry%c", FLAG(w, PCI_EXP_DEVCTL_BCRE));
- if (((type == PCI_EXP_TYPE_ENDPOINT) || (type == PCI_EXP_TYPE_LEG_END)) &&
+ if (((type == PCI_EXP_TYPE_ENDPOINT) || (type == PCI_EXP_TYPE_LEG_END) || (type == PCI_EXP_TYPE_ROOT_INT_EP)) &&
(t & PCI_EXP_DEVCAP_FLRESET))
printf(" FLReset%c", FLAG(w, PCI_EXP_DEVCTL_FLRESET));
printf("\n\t\t\tMaxPayload %d bytes, MaxReadReq %d bytes\n",