summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/pci_regs.h
diff options
context:
space:
mode:
authorBjorn Helgaas2016-06-13 18:01:51 +0200
committerBjorn Helgaas2016-08-18 23:04:57 +0200
commiteec097d43100a8195fd4f678671ecd5d986dd675 (patch)
treeec874686b415958f9123b68f4ba0f85bae6b8c86 /include/uapi/linux/pci_regs.h
parentPCI: Add Precision Time Measurement (PTM) support (diff)
downloadkernel-qcow2-linux-eec097d43100a8195fd4f678671ecd5d986dd675.tar.gz
kernel-qcow2-linux-eec097d43100a8195fd4f678671ecd5d986dd675.tar.xz
kernel-qcow2-linux-eec097d43100a8195fd4f678671ecd5d986dd675.zip
PCI: Add pci_enable_ptm() for drivers to enable PTM on endpoints
Add an pci_enable_ptm() interface so drivers can enable PTM. The PCI core enables PTM on PTM Roots and switches automatically, but we don't enable PTM on endpoints unless a driver requests it. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/uapi/linux/pci_regs.h')
-rw-r--r--include/uapi/linux/pci_regs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h
index 926fff41b417..72bbe1491cbf 100644
--- a/include/uapi/linux/pci_regs.h
+++ b/include/uapi/linux/pci_regs.h
@@ -967,6 +967,7 @@
/* Precision Time Measurement */
#define PCI_PTM_CAP 0x04 /* PTM Capability */
+#define PCI_PTM_CAP_REQ 0x00000001 /* Requester capable */
#define PCI_PTM_CAP_ROOT 0x00000004 /* Root capable */
#define PCI_PTM_CTRL 0x08 /* PTM Control */
#define PCI_PTM_CTRL_ENABLE 0x00000001 /* PTM enable */