X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ls-ecaps.c;h=b4e6a630ee05e2eb71f9b62986bd27ad9f2b1cbc;hb=4582426202ad6ac6539305dae2c0b70016f014f4;hp=32108cd32fc0c824b5e7706ca852d69d742931b2;hpb=5c75f737b19d4a21756cc2001cce7ec164731f5a;p=pciutils.git diff --git a/ls-ecaps.c b/ls-ecaps.c index 32108cd..b4e6a63 100644 --- a/ls-ecaps.c +++ b/ls-ecaps.c @@ -1014,6 +1014,18 @@ dvsec_cxl_flex_bus(struct device *d, int where, int rev) } } +static void +dvsec_cxl_mld(struct device *d, int where) +{ + u16 w; + + w = get_conf_word(d, where + PCI_CXL_MLD_NUM_LD); + + /* Encodings greater than 16 are reserved */ + if (w && w <= PCI_CXL_MLD_MAX_LD) + printf("\t\tNumLogDevs: %d\n", w); +} + static void cap_dvsec_cxl(struct device *d, int id, int rev, int where, int len) { @@ -1048,7 +1060,7 @@ cap_dvsec_cxl(struct device *d, int id, int rev, int where, int len) dvsec_cxl_register_locator(d, where, len); break; case 9: - printf("\t\tMLD DVSEC\n"); + dvsec_cxl_mld(d, where); break; default: printf("\t\tUnknown ID %04x\n", id);