History

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.

Bjorn Helgaas committed 10 years ago

Commit eec097d1 parent 9bb04a03 files · +53 −0Browse files

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

Unified · Split

include/uapi/linux/pci_regs.h+1−0
@@ -967,6 +967,7 @@ · 966 unmodified lines
967967
968968 /* Precision Time Measurement */
969969 #define PCI_PTM_CAP 0x04 /* PTM Capability */
970+#define PCI_PTM_CAP_REQ 0x00000001 /* Requester capable */
970971 #define PCI_PTM_CAP_ROOT 0x00000004 /* Root capable */
971972 #define PCI_PTM_CTRL 0x08 /* PTM Control */
972973 #define PCI_PTM_CTRL_ENABLE 0x00000001 /* PTM enable */

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