blob: 2e5e097be9db0526f4cec242cee7feea14a8ca5e [file] [log] [blame]
Subrata Banik20fe24b2021-12-09 02:46:38 +05301/** @file
2Support for the PCI Express 3.1 standard.
3
4This header file may not define all structures. Please extend as required.
5
6Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
7SPDX-License-Identifier: BSD-2-Clause-Patent
8
9**/
10
11#ifndef _PCIEXPRESS31_H_
12#define _PCIEXPRESS31_H_
13
14#include <IndustryStandard/PciExpress30.h>
15
16#pragma pack(1)
17
18#define PCI_EXPRESS_EXTENDED_CAPABILITY_L1_PM_SUBSTATES_ID 0x001E
19#define PCI_EXPRESS_EXTENDED_CAPABILITY_L1_PM_SUBSTATES_VER1 0x1
20
21typedef union {
22 struct {
23 UINT32 PciPmL12 : 1;
24 UINT32 PciPmL11 : 1;
25 UINT32 AspmL12 : 1;
26 UINT32 AspmL11 : 1;
27 UINT32 L1PmSubstates : 1;
28 UINT32 Reserved : 3;
29 UINT32 CommonModeRestoreTime : 8;
30 UINT32 TPowerOnScale : 2;
31 UINT32 Reserved2 : 1;
32 UINT32 TPowerOnValue : 5;
33 UINT32 Reserved3 : 8;
34 } Bits;
35 UINT32 Uint32;
36} PCI_EXPRESS_REG_L1_PM_SUBSTATES_CAPABILITY;
37
38typedef union {
39 struct {
40 UINT32 PciPmL12 : 1;
41 UINT32 PciPmL11 : 1;
42 UINT32 AspmL12 : 1;
43 UINT32 AspmL11 : 1;
44 UINT32 Reserved : 4;
45 UINT32 CommonModeRestoreTime : 8;
46 UINT32 LtrL12ThresholdValue : 10;
47 UINT32 Reserved2 : 3;
48 UINT32 LtrL12ThresholdScale : 3;
49 } Bits;
50 UINT32 Uint32;
51} PCI_EXPRESS_REG_L1_PM_SUBSTATES_CONTROL1;
52
53typedef union {
54 struct {
55 UINT32 TPowerOnScale : 2;
56 UINT32 Reserved : 1;
57 UINT32 TPowerOnValue : 5;
58 UINT32 Reserved2 : 24;
59 } Bits;
60 UINT32 Uint32;
61} PCI_EXPRESS_REG_L1_PM_SUBSTATES_CONTROL2;
62
63typedef struct {
64 PCI_EXPRESS_EXTENDED_CAPABILITIES_HEADER Header;
65 PCI_EXPRESS_REG_L1_PM_SUBSTATES_CAPABILITY Capability;
66 PCI_EXPRESS_REG_L1_PM_SUBSTATES_CONTROL1 Control1;
67 PCI_EXPRESS_REG_L1_PM_SUBSTATES_CONTROL2 Control2;
68} PCI_EXPRESS_EXTENDED_CAPABILITIES_L1_PM_SUBSTATES;
69
70#pragma pack()
71
72#endif