diff options
author | Martin Mares <mj@ucw.cz> | 2018-12-31 15:21:36 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2018-12-31 15:21:36 +0100 |
commit | 10168b8444c1cf42884c637916d47cf59c05676a (patch) | |
tree | 69db1ffe8df7d79a34713f7d6fbfb5596a69ede4 | |
parent | 9f7dc65c6973456fb765560bbd9c9e7fc03543ec (diff) | |
download | pciutils-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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", |