diff options
author | Dongdong Liu <liudongdong3@huawei.com> | 2020-08-29 18:58:42 +0800 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2020-09-02 10:42:17 +0200 |
commit | 3afdb452bc82421a18e57913f57d8d4caf50dbcc (patch) | |
tree | 62c2b03e9104f924d341f83cc56ecda8e6c3f935 | |
parent | e79a42076aebbbe1fbd2d68bd9bc53f22066ab56 (diff) | |
download | pciutils-3afdb452bc82421a18e57913f57d8d4caf50dbcc.tar.gz |
lspci: Decode 10-Bit Tag Requester Enable
Decode 10-Bit Tag Requester Enable bit in Device Control 2 Register.
Sample output changes:
- DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR- OBFF Disabled, ARIFwd-
+ DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR- 10BitTagReq- OBFF Disabled, ARIFwd-
Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
-rw-r--r-- | lib/header.h | 1 | ||||
-rw-r--r-- | ls-caps.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/header.h b/lib/header.h index 5fdea88..f53ab43 100644 --- a/lib/header.h +++ b/lib/header.h @@ -900,6 +900,7 @@ #define PCI_EXP_DEVCTL2_ATOMICOP_REQUESTER_EN 0x0040 /* AtomicOp RequesterEnable */ #define PCI_EXP_DEVCTL2_ATOMICOP_EGRESS_BLOCK 0x0080 /* AtomicOp Egress Blocking */ #define PCI_EXP_DEVCTL2_LTR 0x0400 /* LTR enabled */ +#define PCI_EXP_DEVCTL2_10BIT_TAG_REQ 0x1000 /* 10 Bit Tag Requester enabled */ #define PCI_EXP_DEVCTL2_OBFF(x) (((x) >> 13) & 3) /* OBFF enabled */ #define PCI_EXP_DEVSTA2 0x2a /* Device Status */ #define PCI_EXP_LNKCAP2 0x2c /* Link Capabilities */ @@ -1134,10 +1134,11 @@ static void cap_express_dev2(struct device *d, int where, int type) } w = get_conf_word(d, where + PCI_EXP_DEVCTL2); - printf("\t\tDevCtl2: Completion Timeout: %s, TimeoutDis%c LTR%c OBFF %s,", + printf("\t\tDevCtl2: Completion Timeout: %s, TimeoutDis%c LTR%c 10BitTagReq%c OBFF %s,", cap_express_dev2_timeout_value(PCI_EXP_DEVCTL2_TIMEOUT_VALUE(w)), FLAG(w, PCI_EXP_DEVCTL2_TIMEOUT_DIS), FLAG(w, PCI_EXP_DEVCTL2_LTR), + FLAG(w, PCI_EXP_DEVCTL2_10BIT_TAG_REQ), cap_express_devctl2_obff(PCI_EXP_DEVCTL2_OBFF(w))); if (type == PCI_EXP_TYPE_ROOT_PORT || type == PCI_EXP_TYPE_DOWNSTREAM) printf(" ARIFwd%c\n", FLAG(w, PCI_EXP_DEVCTL2_ARI)); |