Revision: 16653
          http://sourceforge.net/p/edk2/code/16653
Author:   oliviermartin
Date:     2015-01-23 16:06:09 +0000 (Fri, 23 Jan 2015)
Log Message:
-----------
EmbeddedPkg/AcpiLib.h: Added some helper macros for ACPI 5.1

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <[email protected]>
Reviewed-by: Graeme Gregory <[email protected]>

Modified Paths:
--------------
    trunk/edk2/EmbeddedPkg/Include/Library/AcpiLib.h

Modified: trunk/edk2/EmbeddedPkg/Include/Library/AcpiLib.h
===================================================================
--- trunk/edk2/EmbeddedPkg/Include/Library/AcpiLib.h    2015-01-23 16:03:09 UTC 
(rev 16652)
+++ trunk/edk2/EmbeddedPkg/Include/Library/AcpiLib.h    2015-01-23 16:06:09 UTC 
(rev 16653)
@@ -43,7 +43,26 @@
     GicId, AcpiCpuId, Flags, 0, PmuIrq, 0, GicBase \
   }
 
+// Note the parking protocol is configured by UEFI if required
+#define EFI_ACPI_5_1_GICC_STRUCTURE_INIT(GicId, AcpiCpuUid, Mpidr, Flags, 
PmuIrq,    \
+    GicBase, GicVBase, GicHBase, GsivId, GicRBase)                             
      \
+  {                                                                            
      \
+    EFI_ACPI_5_1_GIC, sizeof (EFI_ACPI_5_1_GIC_STRUCTURE), 
EFI_ACPI_RESERVED_WORD,   \
+    GicId, AcpiCpuUid, Flags, 0, PmuIrq, 0, GicBase, GicVBase, GicHBase,       
      \
+    GsivId, GicRBase, Mpidr                                                    
      \
+  }
 
+//
+// SBSA Generic Watchdog
+//
+#define 
EFI_ACPI_5_1_SBSA_GENERIC_WATCHDOG_STRUCTURE_INIT(RefreshFramePhysicalAddress,  
                \
+    ControlFramePhysicalAddress, WatchdogTimerGSIV, WatchdogTimerFlags)        
                         \
+  {                                                                            
                         \
+    EFI_ACPI_5_1_GTDT_SBSA_GENERIC_WATCHDOG, 
sizeof(EFI_ACPI_5_1_GTDT_SBSA_GENERIC_WATCHDOG_STRUCTURE), \
+    EFI_ACPI_RESERVED_WORD, RefreshFramePhysicalAddress, 
ControlFramePhysicalAddress,                   \
+    WatchdogTimerGSIV, WatchdogTimerFlags                                      
                         \
+  }
+
 /**
   Locate and Install the ACPI tables from the Firmware Volume
 


------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to