Changes for V4 ============== 1) Move delete of QuarkSocPkg\QuarkNorthCluster\Binary\QuarkMicrocode from QuarkPlatformPkg commit to QuarkSocPkg commit 2) Fix incorrect license header in PlatformSecLibModStrs.uni Changes for V3 ============== 1) Set PcdResetOnMemoryTypeInformationChange FALSE in QuarkMin.dsc This is required because QuarkMin.dsc uses the emulated variable driver that does not preserve any non-volatile UEFI variables across reset. If the condition is met where the memory type information variable needs to be updated, then the system will reset every time the UEFI Shell is run. By setting this PCD to FALSE, then reset action is disabled. 2) Move one binary file to QuarkSocBinPkg 3) Change RMU.bin FILE statements to INF statement in DSC FD region to be compatible with PACKAGES_PATH search for QuarkSocBinPkg Changes for V2 ============== 1) Use new generic PCI serial driver PciSioSerialDxe in MdeModulePkg 2) Configure PcdPciSerialParameters for PCI serial driver for Quark 3) Use new MtrrLib API to reduce time to set MTRRs for all DRAM 4) Convert all UNI files to utf-8 5) Replace tabs with spaces and remove trailing spaces 6) Add License.txt Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Acked-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19287 6f19259b-4bc3-4df7-8a09-765794883524
		
			
				
	
	
		
			127 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			127 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /** @file
 | |
| This is an implementation of the ACPI platform driver.  Requirements for
 | |
| this driver are defined in the Tiano ACPI External Product Specification,
 | |
| revision 0.3.6.
 | |
| 
 | |
| Copyright (c) 2013-2015 Intel Corporation.
 | |
| 
 | |
| This program and the accompanying materials
 | |
| are licensed and made available under the terms and conditions of the BSD License
 | |
| which accompanies this distribution.  The full text of the license may be found at
 | |
| http://opensource.org/licenses/bsd-license.php
 | |
| 
 | |
| THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 | |
| WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 | |
| 
 | |
| 
 | |
| **/
 | |
| 
 | |
| #ifndef _ACPI_PLATFORM_H_
 | |
| #define _ACPI_PLATFORM_H_
 | |
| 
 | |
| //
 | |
| // Statements that include other header files
 | |
| //
 | |
| 
 | |
| #include <PiDxe.h>
 | |
| #include <IntelQNCDxe.h>
 | |
| #include <Platform.h>
 | |
| #include <PlatformBoards.h>
 | |
| #include <Ioh.h>
 | |
| #include <QNCCommonDefinitions.h>
 | |
| 
 | |
| #include <Protocol/GlobalNvsArea.h>
 | |
| #include <Protocol/MpService.h>
 | |
| #include <Protocol/AcpiSystemDescriptionTable.h>
 | |
| #include <Protocol/FirmwareVolume2.h>
 | |
| 
 | |
| #include <Library/UefiDriverEntryPoint.h>
 | |
| #include <Library/UefiBootServicesTableLib.h>
 | |
| #include <Library/UefiRuntimeServicesTableLib.h>
 | |
| #include <Library/DebugLib.h>
 | |
| #include <Library/BaseMemoryLib.h>
 | |
| #include <Library/IoLib.h>
 | |
| #include <Library/PcdLib.h>
 | |
| #include <Library/UefiLib.h>
 | |
| #include <Library/DxeServicesLib.h>
 | |
| #include <Library/DevicePathLib.h>
 | |
| #include <Library/MemoryAllocationLib.h>
 | |
| #include <Library/QNCAccessLib.h>
 | |
| #include <Library/PlatformHelperLib.h>
 | |
| 
 | |
| #include <IndustryStandard/Acpi.h>
 | |
| #include <IndustryStandard/HighPrecisionEventTimerTable.h>
 | |
| #include <IndustryStandard/MemoryMappedConfigurationSpaceAccessTable.h>
 | |
| 
 | |
| #include "Madt.h"
 | |
| #include "AcpiPciUpdate.h"
 | |
| 
 | |
| #pragma pack(1)
 | |
| typedef struct {
 | |
|   UINT8   StartByte;
 | |
|   UINT32  NameStr;
 | |
|   UINT8   OpCode;
 | |
|   UINT16  Size;                // Hardcode to 16bit width because the table we use is fixed size
 | |
|   UINT8   NumEntries;
 | |
| } EFI_ACPI_NAME_COMMAND;
 | |
| 
 | |
| typedef struct {
 | |
|   UINT8   PackageOp;
 | |
|   UINT8   PkgLeadByte;
 | |
|   UINT8   NumEntries;
 | |
|   UINT8   DwordPrefix0;
 | |
|   UINT32  CoreFreq;
 | |
|   UINT8   DwordPrefix1;
 | |
|   UINT32  Power;
 | |
|   UINT8   DwordPrefix2;
 | |
|   UINT32  TransLatency;
 | |
|   UINT8   DwordPrefix3;
 | |
|   UINT32  BMLatency;
 | |
|   UINT8   DwordPrefix4;
 | |
|   UINT32  Control;
 | |
|   UINT8   DwordPrefix5;
 | |
|   UINT32  Status;
 | |
| } EFI_PSS_PACKAGE;
 | |
| #pragma pack()
 | |
| 
 | |
| 
 | |
| #define AML_NAME_OP               0x08
 | |
| #define AML_METHOD_OP             0x14
 | |
| #define AML_OPREGION_OP           0x80
 | |
| #define AML_PACKAGE_OP            0x12    // Package operator.
 | |
| 
 | |
| //
 | |
| // ACPI table information used to initialize tables.
 | |
| //
 | |
| #define EFI_ACPI_OEM_ID           "INTEL "
 | |
| #define EFI_ACPI_OEM_TABLE_ID     0x2020204F4E414954ULL  // "TIANO   "
 | |
| #define EFI_ACPI_OEM_REVISION     0x00000002
 | |
| #define EFI_ACPI_CREATOR_ID       0x5446534D          // "MSFT"
 | |
| #define EFI_ACPI_CREATOR_REVISION 0x01000013
 | |
| 
 | |
| #define ACPI_COMPATIBLE_1_0       0
 | |
| #define ACPI_COMPATIBLE_2_0       1
 | |
| #define ACPI_COMPATIBLE_3_0       2
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| //
 | |
| // Private Driver Data
 | |
| //
 | |
| 
 | |
| //
 | |
| // Define Union of IO APIC & Local APIC structure;
 | |
| //
 | |
| 
 | |
| typedef union {
 | |
|   EFI_ACPI_2_0_PROCESSOR_LOCAL_APIC_STRUCTURE     AcpiLocalApic;
 | |
|   EFI_ACPI_2_0_IO_APIC_STRUCTURE                  AcpiIoApic;
 | |
|   struct {
 | |
|     UINT8                                         Type;
 | |
|     UINT8                                         Length;
 | |
|   } AcpiApicCommon;
 | |
| } ACPI_APIC_STRUCTURE_PTR;
 | |
| 
 | |
| #endif
 |