]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/IndustryStandard/PciExpress30.h
MdePkg: TpmPtp: Add CapCRBIdleBypass definition
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / PciExpress30.h
index 6e9e105da912d29b201e29e2a4313fe3381c8927..db6a427bc8749e65d55ab4e9dc7cafafcb3e298f 100644 (file)
@@ -3,7 +3,7 @@
 \r
   This header file may not define all structures.  Please extend as required.\r
 \r
-  Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials                          \r
   are licensed and made available under the terms and conditions of the BSD License         \r
   which accompanies this distribution.  The full text of the license may be found at        \r
 #ifndef _PCIEXPRESS30_H_\r
 #define _PCIEXPRESS30_H_\r
 \r
-#include "PciExpress21.h"\r
+#include <IndustryStandard/PciExpress21.h>\r
+\r
+#pragma pack(1)\r
 \r
 #define PCI_EXPRESS_EXTENDED_CAPABILITY_SECONDARY_PCIE_ID    0x0019\r
 #define PCI_EXPRESS_EXTENDED_CAPABILITY_SECONDARY_PCIE_VER1  0x1\r
 \r
+typedef union {\r
+  struct {\r
+    UINT32 PerformEqualization : 1;\r
+    UINT32 LinkEqualizationRequestInterruptEnable : 1;\r
+    UINT32 Reserved : 30;\r
+  } Bits;\r
+  UINT32   Uint32;\r
+} PCI_EXPRESS_REG_LINK_CONTROL3;\r
+\r
+typedef union {\r
+  struct {\r
+    UINT16 DownstreamPortTransmitterPreset : 4;\r
+    UINT16 DownstreamPortReceiverPresetHint : 3;\r
+    UINT16 Reserved : 1;\r
+    UINT16 UpstreamPortTransmitterPreset : 4;\r
+    UINT16 UpstreamPortReceiverPresetHint : 3;\r
+    UINT16 Reserved2 : 1;\r
+  } Bits;\r
+  UINT16   Uint16;\r
+} PCI_EXPRESS_REG_LANE_EQUALIZATION_CONTROL;\r
+\r
 typedef struct {\r
   PCI_EXPRESS_EXTENDED_CAPABILITIES_HEADER                Header;\r
-  UINT32                                                  LinkControl3;\r
+  PCI_EXPRESS_REG_LINK_CONTROL3                           LinkControl3;\r
   UINT32                                                  LaneErrorStatus;\r
-  UINT16                                                  EqualizationControl[2];\r
+  PCI_EXPRESS_REG_LANE_EQUALIZATION_CONTROL               EqualizationControl[2];\r
 } PCI_EXPRESS_EXTENDED_CAPABILITIES_SECONDARY_PCIE;\r
 \r
+#pragma pack()\r
+\r
 #endif\r