History

PCI: Add Precision Time Measurement (PTM) support

Add Precision Time Measurement (PTM) support (see PCIe r3.1, sec 6.22). Enable PTM on PTM Root devices and switch ports. This does not enable PTM on endpoints. There currently are no PTM-capable devices on the market, but it is expected to be supported by the Intel Apollo Lake platform. [bhelgaas: complete rework] Signed-off-by: Jonathan Yong <jonathan.yong@intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

Jonathan Yong committed 10 years ago

Commit 9bb04a01 parent 29b48177 files · +105 −1Browse files

Showing the changes to include/uapi (1 of 7 files). Show all

Unified · Split

include/uapi/linux/pci_regs.h+9−1
@@ -671,7 +671,8 @@ · 670 unmodified lines
671671 #define PCI_EXT_CAP_ID_PMUX 0x1A /* Protocol Multiplexing */
672672 #define PCI_EXT_CAP_ID_PASID 0x1B /* Process Address Space ID */
673673 #define PCI_EXT_CAP_ID_DPC 0x1D /* Downstream Port Containment */
674−#define PCI_EXT_CAP_ID_MAX PCI_EXT_CAP_ID_DPC
674+#define PCI_EXT_CAP_ID_PTM 0x1F /* Precision Time Measurement */
675+#define PCI_EXT_CAP_ID_MAX PCI_EXT_CAP_ID_PTM
675676
676677 #define PCI_EXT_CAP_DSN_SIZEOF 12
677678 #define PCI_EXT_CAP_MCAST_ENDPOINT_SIZEOF 40
@@ -964,4 +965,11 @@ · 286 unmodified lines
964965
965966 #define PCI_EXP_DPC_SOURCE_ID 10 /* DPC Source Identifier */
966967
968+/* Precision Time Measurement */
969+#define PCI_PTM_CAP 0x04 /* PTM Capability */
970+#define PCI_PTM_CAP_ROOT 0x00000004 /* Root capable */
971+#define PCI_PTM_CTRL 0x08 /* PTM Control */
972+#define PCI_PTM_CTRL_ENABLE 0x00000001 /* PTM enable */
973+#define PCI_PTM_CTRL_ROOT 0x00000002 /* Root select */
974+
967975 #endif /* LINUX_PCI_REGS_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t