diff options
| author | Rajat Jain <rajatja@google.com> | 2017-01-03 01:34:10 -0500 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-02-10 18:14:52 -0500 |
| commit | 0fc1223f0e77a748f7040562faaa7027f7db71ca (patch) | |
| tree | 2265dce7f56f188bf4ab7f4db698dcd1d98c43a6 /include/uapi/linux | |
| parent | 7ce7d89f48834cefece7804d38fc5d85382edf77 (diff) | |
PCI/ASPM: Add L1 substate capability structure register definitions
Add L1 substate capability structure register definitions for use in
subsequent patches. See the PCIe r3.1 spec, sec 7.33.
[bhelgaas: add PCIe spec reference]
Signed-off-by: Rajat Jain <rajatja@google.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/pci_regs.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h index 174d1147081b..f48d06e2bb4d 100644 --- a/include/uapi/linux/pci_regs.h +++ b/include/uapi/linux/pci_regs.h | |||
| @@ -682,6 +682,7 @@ | |||
| 682 | #define PCI_EXT_CAP_ID_PMUX 0x1A /* Protocol Multiplexing */ | 682 | #define PCI_EXT_CAP_ID_PMUX 0x1A /* Protocol Multiplexing */ |
| 683 | #define PCI_EXT_CAP_ID_PASID 0x1B /* Process Address Space ID */ | 683 | #define PCI_EXT_CAP_ID_PASID 0x1B /* Process Address Space ID */ |
| 684 | #define PCI_EXT_CAP_ID_DPC 0x1D /* Downstream Port Containment */ | 684 | #define PCI_EXT_CAP_ID_DPC 0x1D /* Downstream Port Containment */ |
| 685 | #define PCI_EXT_CAP_ID_L1SS 0x1E /* L1 PM Substates */ | ||
| 685 | #define PCI_EXT_CAP_ID_PTM 0x1F /* Precision Time Measurement */ | 686 | #define PCI_EXT_CAP_ID_PTM 0x1F /* Precision Time Measurement */ |
| 686 | #define PCI_EXT_CAP_ID_MAX PCI_EXT_CAP_ID_PTM | 687 | #define PCI_EXT_CAP_ID_MAX PCI_EXT_CAP_ID_PTM |
| 687 | 688 | ||
| @@ -985,4 +986,19 @@ | |||
| 985 | #define PCI_PTM_CTRL_ENABLE 0x00000001 /* PTM enable */ | 986 | #define PCI_PTM_CTRL_ENABLE 0x00000001 /* PTM enable */ |
| 986 | #define PCI_PTM_CTRL_ROOT 0x00000002 /* Root select */ | 987 | #define PCI_PTM_CTRL_ROOT 0x00000002 /* Root select */ |
| 987 | 988 | ||
| 989 | /* L1 PM Substates */ | ||
| 990 | #define PCI_L1SS_CAP 4 /* capability register */ | ||
| 991 | #define PCI_L1SS_CAP_PCIPM_L1_2 1 /* PCI PM L1.2 Support */ | ||
| 992 | #define PCI_L1SS_CAP_PCIPM_L1_1 2 /* PCI PM L1.1 Support */ | ||
| 993 | #define PCI_L1SS_CAP_ASPM_L1_2 4 /* ASPM L1.2 Support */ | ||
| 994 | #define PCI_L1SS_CAP_ASPM_L1_1 8 /* ASPM L1.1 Support */ | ||
| 995 | #define PCI_L1SS_CAP_L1_PM_SS 16 /* L1 PM Substates Support */ | ||
| 996 | #define PCI_L1SS_CTL1 8 /* Control Register 1 */ | ||
| 997 | #define PCI_L1SS_CTL1_PCIPM_L1_2 1 /* PCI PM L1.2 Enable */ | ||
| 998 | #define PCI_L1SS_CTL1_PCIPM_L1_1 2 /* PCI PM L1.1 Support */ | ||
| 999 | #define PCI_L1SS_CTL1_ASPM_L1_2 4 /* ASPM L1.2 Support */ | ||
| 1000 | #define PCI_L1SS_CTL1_ASPM_L1_1 8 /* ASPM L1.1 Support */ | ||
| 1001 | #define PCI_L1SS_CTL1_L1SS_MASK 0x0000000F | ||
| 1002 | #define PCI_L1SS_CTL2 0xC /* Control Register 2 */ | ||
| 1003 | |||
| 988 | #endif /* LINUX_PCI_REGS_H */ | 1004 | #endif /* LINUX_PCI_REGS_H */ |
