]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/IndustryStandard/PciExpress21.h
MdePkg: Add NFIT definition from ACPI 6.1
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / PciExpress21.h
index 3d121a24aefa3bb5a120827658f18ceb8a1b0987..57cfab228d7385a7dde82f47c1ddc59a3d6cf313 100644 (file)
@@ -2,6 +2,7 @@
   Support for the latest PCI standard.\r
 \r
   Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+  (C) Copyright 2016 Hewlett Packard Enterprise Development LP<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
@@ -90,7 +91,7 @@ typedef struct {
   UINT32                                    CorrectableErrorStatus;\r
   UINT32                                    CorrectableErrorMask;\r
   UINT32                                    AdvancedErrorCapabilitiesAndControl;\r
-  UINT32                                    HeaderLog;\r
+  UINT32                                    HeaderLog[4];\r
   UINT32                                    RootErrorCommand;\r
   UINT32                                    RootErrorStatus;\r
   UINT16                                    ErrorSourceIdentification;\r
@@ -241,6 +242,8 @@ typedef struct {
   PCI_EXPRESS_EXTENDED_CAPABILITIES_RESIZABLE_BAR_ENTRY  Capability[1];\r
 } PCI_EXPRESS_EXTENDED_CAPABILITIES_RESIZABLE_BAR;\r
 \r
+#define GET_NUMBER_RESIZABLE_BARS(x) (((x->Capability[0].ResizableBarControl) & 0xE0) >> 5)\r
+\r
 #define PCI_EXPRESS_EXTENDED_CAPABILITY_ARI_CAPABILITY_ID    0x000E\r
 #define PCI_EXPRESS_EXTENDED_CAPABILITY_ARI_CAPABILITY_VER1  0x1\r
 \r
@@ -284,4 +287,6 @@ typedef struct {
   UINT16                                                  TphStTable[1];\r
 } PCI_EXPRESS_EXTENDED_CAPABILITIES_TPH;\r
 \r
+#define GET_TPH_TABLE_SIZE(x) ((x->TphRequesterCapability & 0x7FF0000)>>16) * sizeof(UINT16)\r
+\r
 #endif\r