]> mj.ucw.cz Git - pciutils.git/commit
pciutils: Add decode support for Data Object Exchange Extended Capability
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 10 Feb 2022 16:19:45 +0000 (16:19 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 26 Feb 2022 12:05:48 +0000 (13:05 +0100)
commit60be9345be266524ffa5fd50ac0df4ee12a7b4bd
tree95e99a9ef3d586aadb33c872099b1120557d127b
parentcac545f64e6f5863b430f5b94442b777aa7f1165
pciutils: Add decode support for Data Object Exchange Extended Capability

PCI Data Object Exchange [1] provides a mailbox interface used as the
transport for various protocols defined by PCI-SIG and others. Make the
limited information in config space available. Note the Read/Write
Mailbox registers themselves are not currently parsed as the usefulness
of accessing one dword of a protocol is probably limited.

In future, operating systems may provide means to safely query the
supported protocols, but those have not yet been defined.

Example output:

Capabilities: [100 v1] Data Object Exchange
DOECap: IntSup+
Interrupt Message Number 001
DOECtl: IntEn+
DOESta: Busy- IntSta- Error- ObjectReady+

[1] PCIe r6.0, sections 6.30 and 7.9.24

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
lib/header.h
ls-ecaps.c
tests/cap-doe [new file with mode: 0644]