Revision: 15096
          http://sourceforge.net/p/edk2/code/15096
Author:   jcarsey
Date:     2014-01-10 22:30:37 +0000 (Fri, 10 Jan 2014)
Log Message:
-----------
MdePkg: add missing #defines for decoding PCIe 2.1 extended capability 
structures

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <[email protected]>
Reviewed-by: Erik Bjorge <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdePkg/Include/IndustryStandard/PciExpress21.h

Modified: trunk/edk2/MdePkg/Include/IndustryStandard/PciExpress21.h
===================================================================
--- trunk/edk2/MdePkg/Include/IndustryStandard/PciExpress21.h   2014-01-10 
16:42:45 UTC (rev 15095)
+++ trunk/edk2/MdePkg/Include/IndustryStandard/PciExpress21.h   2014-01-10 
22:30:37 UTC (rev 15096)
@@ -241,6 +241,8 @@
   PCI_EXPRESS_EXTENDED_CAPABILITIES_RESIZABLE_BAR_ENTRY  Capability[1];
 } PCI_EXPRESS_EXTENDED_CAPABILITIES_RESIZABLE_BAR;
 
+#define GET_NUMBER_RESIZABLE_BARS(x) (((x->Capability[0].ResizableBarControl) 
& 0xE0) >> 5)
+
 #define PCI_EXPRESS_EXTENDED_CAPABILITY_ARI_CAPABILITY_ID    0x000E
 #define PCI_EXPRESS_EXTENDED_CAPABILITY_ARI_CAPABILITY_VER1  0x1
 
@@ -284,4 +286,6 @@
   UINT16                                                  TphStTable[1];
 } PCI_EXPRESS_EXTENDED_CAPABILITIES_TPH;
 
+#define GET_TPH_TABLE_SIZE(x) ((x->TphRequesterCapability & 0x7FF0000)>>16) * 
sizeof(UINT16)
+
 #endif

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to