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.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -967,6 +967,7 @@ · 966 unmodified lines | |||
| 967 | 967 | ||
| 968 | /* Precision Time Measurement */ | 968 | /* Precision Time Measurement */ |
| 969 | #define PCI_PTM_CAP 0x04 /* PTM Capability */ | 969 | #define PCI_PTM_CAP 0x04 /* PTM Capability */ |
| 970 | #define PCI_PTM_CAP_REQ 0x00000001 /* Requester capable */ | ||
| 970 | #define PCI_PTM_CAP_ROOT 0x00000004 /* Root capable */ | 971 | #define PCI_PTM_CAP_ROOT 0x00000004 /* Root capable */ |
| 971 | #define PCI_PTM_CTRL 0x08 /* PTM Control */ | 972 | #define PCI_PTM_CTRL 0x08 /* PTM Control */ |
| 972 | #define PCI_PTM_CTRL_ENABLE 0x00000001 /* PTM enable */ | 973 | #define PCI_PTM_CTRL_ENABLE 0x00000001 /* PTM enable */ |