diff options
Diffstat (limited to 'ArmPkg/Drivers')
24 files changed, 0 insertions, 3463 deletions
diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Apic.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Apic.aslc deleted file mode 100644 index e18c1a555..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Apic.aslc +++ /dev/null @@ -1,216 +0,0 @@ -/** @file - MADT Table - - This file contains a structure definition for the ACPI 1.0 Multiple APIC - Description Table (MADT). - - Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR> - 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. - -**/ - -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ -#include <IndustryStandard/Acpi.h> -#include <Platform.h> - -// -// Local APIC address -// -#define EFI_ACPI_LOCAL_APIC_ADDRESS 0x2C002000 // TBD - - -#define ACPI_PROCESSOR_LOCAL_GIC 0xb -#define ACPI_GIC_DISTRIBUTOR 0xc - -//These addresses are defined by the MP shared region defined in the UEFI memory map. -#define MP_REGISTER_ADDRESS_GIC0 0x80301000 -#define DISTRIBUTOR_PHYSICAL_ADDRESS 0x02000000 - -#define ACPI_GICC_NUM 0x8 - -// -// Ensure proper structure formats -// -#pragma pack (1) -// -// ACPI 5.0 MADT structure -// -typedef struct { - EFI_ACPI_5_0_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER Header; - EFI_ACPI_5_0_GIC_STRUCTURE Gic[ACPI_GICC_NUM]; - EFI_ACPI_5_0_GIC_DISTRIBUTOR_STRUCTURE Distributor; - -} EFI_ACPI_5_0_MULTIPLE_APIC_DESCRIPTION_TABLE; - -#pragma pack () - -// -// Multiple APIC Description Table -// -EFI_ACPI_5_0_MULTIPLE_APIC_DESCRIPTION_TABLE Madt = { - { - { - EFI_ACPI_5_0_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE, - sizeof (EFI_ACPI_5_0_MULTIPLE_APIC_DESCRIPTION_TABLE), - EFI_ACPI_5_0_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION, - 0x00, // Checksum will be updated at runtime - {EFI_ACPI_OEM_ID}, - EFI_ACPI_OEM_TABLE_ID, - EFI_ACPI_OEM_REVISION, - EFI_ACPI_CREATOR_ID, - EFI_ACPI_CREATOR_REVISION - }, - - // - // MADT specific fields - // - EFI_ACPI_LOCAL_APIC_ADDRESS, - 0x00000000 - }, - { - //LocalGic0 - { - ACPI_PROCESSOR_LOCAL_GIC, //Type - sizeof (EFI_ACPI_5_0_GIC_STRUCTURE), //Length - 0x00, //Reserved - 0x00, //GicId - 0x00, //AcpiProcessorUid - 0x00000001, //Flags - 0x00000000, //ParkingProtocolVersion - 0x00000000, //PerformanceInterruptGsiv - 0x0000000000000000, //ParkedAddress - 0x000000002C002000, //PhysicalBaseAddress - }, - //LocalGic1 - { - ACPI_PROCESSOR_LOCAL_GIC, //Type - sizeof (EFI_ACPI_5_0_GIC_STRUCTURE), //Length - 0x00, //Reserved - 0x01, //GicId - 0x01, //AcpiProcessorUid - EFI_ACPI_5_0_GIC_ENABLED, //Flags - 0x00000000, //ParkingProtocolVersion - 0x00000000, //PerformanceInterruptGsiv - 0x0000000000000000, //ParkedAddress - 0x000000002C002000 //PhysicalBaseAddress - }, - //LocalGic2 - { - ACPI_PROCESSOR_LOCAL_GIC, //Type: - sizeof (EFI_ACPI_5_0_GIC_STRUCTURE), //Length - 0x00, //Reserved - 0x02, //GicId - 0x02, //AcpiProcessorUid - EFI_ACPI_5_0_GIC_ENABLED, //Flags - 0x00000000, //ParkingProtocolVersion - 0x00000000, //PerformanceInterruptGsiv - 0x0000000000000000, //ParkedAddress - 0x000000002C002000, //PhysicalBaseAddress - }, - //LocalGic3 - { - ACPI_PROCESSOR_LOCAL_GIC, //Type - sizeof (EFI_ACPI_5_0_GIC_STRUCTURE), //Length - 0x00, //Reserved - 0x03, //GicId - 0x03, //AcpiProcessorUid - EFI_ACPI_5_0_GIC_ENABLED, //Flags - 0x00000000, //ParkingProtocolVersion - 0x00000000, //PerformanceInterruptGsiv - 0x0000000000000000, //ParkedAddress - 0x000000002C002000, //PhysicalBaseAddress - }, - //LocalGic4 - { - ACPI_PROCESSOR_LOCAL_GIC, //Type - sizeof (EFI_ACPI_5_0_GIC_STRUCTURE), //Length - 0x00, //Reserved - 0x04, //GicId - 0x04, //AcpiProcessorUid - 0, //Flags - 0x00000000, //ParkingProtocolVersion - 0x00000000, //PerformanceInterruptGsiv - 0x0000000000000000, //ParkedAddress - 0x000000002C002000, //PhysicalBaseAddress - }, - //LocalGic5 - { - ACPI_PROCESSOR_LOCAL_GIC, //Type - sizeof (EFI_ACPI_5_0_GIC_STRUCTURE), //Length - 0x00, //Reserved - 0x05, //GicId - 0x05, //AcpiProcessorUid - 0x0, //Flags - 0x00000000, //ParkingProtocolVersion - 0x00000000, //PerformanceInterruptGsiv - 0x0000000000000000, //ParkedAddress - 0x000000002C002000, //PhysicalBaseAddress - }, - //LocalGic6 - { - ACPI_PROCESSOR_LOCAL_GIC, //Type - sizeof (EFI_ACPI_5_0_GIC_STRUCTURE), //Length - 0x00, //Reserved - 0x06, //GicId - 0x06, //AcpiProcessorUid - 0x0, //Flags - 0x00000000, //ParkingProtocolVersion - 0x00000000, //PerformanceInterruptGsiv - 0x0000000000000000, //ParkedAddress - 0x000000002C002000 , //PhysicalBaseAddress - }, - //LocalGic7 - { - ACPI_PROCESSOR_LOCAL_GIC, //Type - sizeof (EFI_ACPI_5_0_GIC_STRUCTURE), //Length - 0x00, //Reserved - 0x07, //GicId - 0x07, //AcpiProcessorUid - 0x0, //Flags - 0x00000000, //ParkingProtocolVersion - 0x00000000, //PerformanceInterruptGsiv - 0x0000000000000000, //ParkedAddress - 0x000000002C002000, //PhysicalBaseAddress - }, - }, - //Distributor - { - ACPI_GIC_DISTRIBUTOR, //Type - sizeof (EFI_ACPI_5_0_GIC_DISTRIBUTOR_STRUCTURE), //Length - 0, //Reserved1 - 0, //GicId - 0x000000002C001000, //PhysicalBaseAddress - 0, //SystemVectorBase - 0 //Reserved2 - } - -}; - - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Madt; -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Bert.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Bert.aslc deleted file mode 100644 index 0fe2bc43a..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Bert.aslc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#include <IndustryStandard/Acpi.h> -#include <Platform.h> - -// Generic error severity in data entry -#define BOOT_ERROR_SEVERITY_RECOVERABLE 0 -#define BOOT_ERROR_SEVERITY_FATAL 1 -#define BOOT_ERROR_SEVERITY_CORRECTED 2 -#define BOOT_ERROR_SEVERITY_NONE 3 - -#pragma pack(1) - -// ErrorStatus block record definitions for various errors -typedef struct { - UINT32 UeValid:1; - UINT32 CeValid:1; - UINT32 MultipleUeValid:1; - UINT32 MultipleCeValid:1; - UINT32 NumErrorDataEntry:10; - UINT32 Resv1:18; -} BOOT_ERROR_BLOCK_STATUS; - - -typedef struct { - // Error Status block - BOOT_ERROR_BLOCK_STATUS BlockStatus; - UINT32 RawDataOffset; - UINT32 RawDataSize; - UINT32 ErrDataSize; - UINT32 Severity; - // Error Status data... -} EFI_ACPI_5_0_BOOT_ERROR_REGION; - - -typedef struct { - EFI_ACPI_DESCRIPTION_HEADER Header; - UINT32 BootErrorRegionLen; - UINT64 BootErrorRegion; -} EFI_ACPI_5_0_BOOT_ERROR_RECORD_TABLE; - -#pragma pack() - - - -EFI_ACPI_5_0_BOOT_ERROR_RECORD_TABLE Bert = { - { - EFI_ACPI_5_0_BOOT_ERROR_RECORD_TABLE_SIGNATURE, - sizeof (EFI_ACPI_5_0_BOOT_ERROR_RECORD_TABLE), - EFI_ACPI_5_0_BOOT_ERROR_RECORD_TABLE_REVISION, - 0x00, // Checksum will be updated at runtime - {EFI_ACPI_OEM_ID}, - EFI_ACPI_OEM_TABLE_ID, - 0x02, - EFI_ACPI_CREATOR_ID, - EFI_ACPI_CREATOR_REVISION - }, - 0x9D, //BootErrorRegionLen - 0xFFFF0008 //BootErrorRegion - -}; - - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Bert; -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Dsdt.asl b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Dsdt.asl deleted file mode 100644 index c4185fecb..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Dsdt.asl +++ /dev/null @@ -1,255 +0,0 @@ -/* - * Copyright (c) 2013, Al Stone <al.stone@linaro.org> - * - * [DSDT] Description of the armv8 VE Model - * - * This source is released under the terms of the GPLv2. - */ - -DefinitionBlock ( - "dsdt.aml", // output filename - "DSDT", // table signature - 2, // DSDT compliance revision - "LINARO", // OEM ID - "RTSMVEV8", // table ID - 0x00000003) // OEM revision -{ - Scope (\_SB) - { - Method (_OSC, 4, NotSerialized) - { - /* Platform-Wide OSPM Capabilities */ - If(LEqual(Arg0,ToUUID("0811B06E-4A27-44F9-8D60-3CBBC22E7B48"))) - { - /* APEI support unconditionally */ - Return (Arg3) - } Else { - CreateDWordField (Arg3, Zero, CDW1) - /* Set invalid UUID error bit */ - Or (CDW1, 0x04, CDW1) - Return (Arg3) - } - } - - Device (HED) - { - Name (_HID, EisaId ("PNP0C33")) - Name (_UID, 0x00) - } - - Device (SCK0) - { - Name (_HID, "ACPI0004") - Name (_UID, 0x00) - Method (_STA, 0, NotSerialized) - { - Return (0x0F) - } - - Device (PRC0) - { - Name (_HID, "ACPI0007") - Name (_UID, 0x00) - - /* CPU0 will be always present */ - Method (_STA, 0, NotSerialized) - { - Return (0x0F) - } - - Name (MAT0, Buffer (0x28) - { - /* 0000 */ 0x0B, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* type, len, reserved, gic_id */ - /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, /* uid, flags */ - /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* parking_version, performance_interrupt */ - /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* parked_address */ - /* 0020 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 /* base_address */ - }) - - Name (MAT1, Buffer (0x28) - { - /* 0000 */ 0x0B, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - /* 0020 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 - }) - - Method (_MAT, 0, NotSerialized) - { - If (_STA()) - { - Return (MAT0) - } - Else - { - Return (MAT1) - } - } - } - - Device (PRC1) - { - Name (_HID, "ACPI0007") - Name (_UID, 0x01) - - Name (STA1, 0x0F) - Method (_STA, 0, NotSerialized) - { - Return (STA1) - } - - Method (_EJ0, 1, NotSerialized) - { - If (LEqual (STA1, 0x0F)) - { - Store (0x00, STA1) - } - } - - Name (MAT0, Buffer (0x28) - { - /* 0000 */ 0x0B, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - /* 0008 */ 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, - /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - /* 0020 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 - }) - - Name (MAT1, Buffer (0x28) - { - /* 0000 */ 0x0B, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - /* 0008 */ 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, - /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - /* 0020 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 - }) - - Method (_MAT, 0, NotSerialized) - { - If (_STA()) - { - Return (MAT0) - } - Else - { - Return (MAT1) - } - } - } - - Device (PRC2) - { - Name (_HID, "ACPI0007") - Name (_UID, 0x02) - - Name (STA2, 0x0F) - Method (_STA, 0, NotSerialized) - { - Return (STA2) - } - - Method (_EJ0, 1, NotSerialized) - { - If (LEqual (STA2, 0x0F)) - { - Store (0x00, STA2) - } - } - - Name (MAT0, Buffer (0x28) - { - /* 0000 */ 0x0B, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, - /* 0008 */ 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, - /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - /* 0020 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 - }) - - Name (MAT1, Buffer (0x28) - { - /* 0000 */ 0x0B, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, - /* 0008 */ 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, - /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - /* 0020 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 - }) - - Method (_MAT, 0, NotSerialized) - { - If (_STA()) - { - Return (MAT0) - } - Else - { - Return (MAT1) - } - } - } - - Device (PRC3) - { - Name (_HID, "ACPI0007") - Name (_UID, 0x03) - - Name (STA3, 0x0F) - Method (_STA, 0, NotSerialized) - { - Return (STA3) - } - - Method (_EJ0, 1, NotSerialized) - { - If (LEqual (STA3, 0x0F)) - { - Store (0x00, STA3) - } - } - - Name (MAT0, Buffer (0x28) - { - /* 0000 */ 0x0B, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, - /* 0008 */ 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x01, - /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - /* 0020 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 - }) - - Name (MAT1, Buffer (0x28) - { - /* 0000 */ 0x0B, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, - /* 0008 */ 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, - /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - /* 0020 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 - }) - - Method (_MAT, 0, NotSerialized) - { - If (_STA()) - { - Return (MAT0) - } - Else - { - Return (MAT1) - } - } - } - } - - Device (NET0) { - Name (_HID, "LINA0003") - Name (_UID, 0) - - Method (_CRS, 0x0, Serialized) { - Name (RBUF, ResourceTemplate () { - Memory32Fixed (ReadWrite, 0x1a000000, 0x00010000) - Interrupt (ResourceConsumer, Edge, ActiveBoth, Exclusive, , , ) {0x2F} - }) - Return (RBUF) - } - } - } -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Ecdt.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Ecdt.aslc deleted file mode 100644 index d817d5988..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Ecdt.aslc +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#include <IndustryStandard/Acpi.h> -#include <Platform.h> - -typedef struct -{ - EFI_ACPI_5_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE table; - UINT8 ucNamepath; -}EFI_ACPI_5_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_EX; - - -EFI_ACPI_5_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_EX Ecdt= { - { - { - EFI_ACPI_5_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE, - sizeof (EFI_ACPI_5_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_EX), - EFI_ACPI_5_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_REVISION, - 0x00, // Checksum will be updated at runtime - {EFI_ACPI_OEM_ID}, - EFI_ACPI_OEM_TABLE_ID, - EFI_ACPI_OEM_REVISION, - EFI_ACPI_CREATOR_ID, - EFI_ACPI_CREATOR_REVISION - }, - /*Command/Status Register Generic Address Structure*/ - { - 0x01, //Space ID:SystemIO - 0x08, //Bit Width - 0x00, //Bit Offset - 0x00, //Encoded Access Width - 0x0000000000000066, //Address - }, - /*Data Register Generic Address Structure*/ - { - 0x01, //Space ID:SystemIO - 0x08, //Bit Width - 0x00, //Bit Offset - 0x00, //Encoded Access Width - 0x0000000000000062, //Address - }, - 0x00000000, //UID - 0x9, //GPE Number - }, - 0x0 //Namepath -}; - - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Ecdt; -} - diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Einj.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Einj.aslc deleted file mode 100644 index 7392cc2f3..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Einj.aslc +++ /dev/null @@ -1,202 +0,0 @@ -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#include <IndustryStandard/Acpi.h> -#include <Platform.h> - -#pragma pack (1) -typedef struct { - UINT8 Operation; - UINT8 Instruction; - UINT8 Flags; - UINT8 Reserved8; - EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE Register; - UINT64 Value; - UINT64 Mask; -} EFI_ACPI_WHEA_SERIALIZATION_ACTION; - -typedef struct { - EFI_ACPI_DESCRIPTION_HEADER Header; - UINT32 InjectionHeaderSize; - UINT32 Resv1; - UINT32 InstructionEntryCount; -} EFI_ACPI_WHEA_ERROR_INJECTION_HEADER; - -typedef struct { - EFI_ACPI_WHEA_ERROR_INJECTION_HEADER header; - EFI_ACPI_WHEA_SERIALIZATION_ACTION InstructionEntry[8]; -} EFI_ACPI_5_0_ERROR_INJECTION_TABLE; - -#pragma pack () - - -EFI_ACPI_5_0_ERROR_INJECTION_TABLE Einj = { - { - { - EFI_ACPI_5_0_ERROR_INJECTION_TABLE_SIGNATURE, - sizeof (EFI_ACPI_5_0_ERROR_INJECTION_TABLE), - EFI_ACPI_5_0_ERROR_INJECTION_TABLE_REVISION, - 0x00, // Checksum will be updated at runtime - {EFI_ACPI_OEM_ID}, - EFI_ACPI_OEM_TABLE_ID, - 0x00000002, - EFI_ACPI_CREATOR_ID, - EFI_ACPI_CREATOR_REVISION - }, - sizeof(EFI_ACPI_WHEA_ERROR_INJECTION_HEADER), - EFI_ACPI_RESERVED_DWORD, - 0x08, /*Injection Entry Count*/ - }, - - { - { //Action0 - 0x00, // Action:Begin Operation - 0x0, // Instruction:Read Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - { - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0x0000000000000000, //Address - }, - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action1 - 0x01, // Action:Get Trigger Table - 0x0, // Instruction:Read Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - { - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0x0000000000000000, //Address - }, - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action2 - 0x02, // Action:Set Error Type - 0x2, // Instruction:Write Register - 0x1, // Flags - 0x00, // Reserved - /*Register Region*/ - { - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0x0000000000000000, //Address - }, - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action3 - 0x03, // Action:Get Error Type - 0x0, // Instruction:Read Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - { - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0x0000000000000000, //Address - }, - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action4 - 0x04, // Action:End Operation - 0x3, // Instruction:Write Register - 0x1, // Flags - 0x00, // Reserved - /*Register Region*/ - { - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0x0000000000000000, //Address - }, - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action5 - 0x05, // Action:Execute Operation - 0x3, // Instruction:Write Register - 0x1, // Flags - 0x00, // Reserved - /*Register Region*/ - { - EFI_ACPI_3_0_SYSTEM_IO, //Space ID - 0x10, //Bit Width - 0x0, //Bit Offset - 0x2, //Encoded Access Width - 0x0000000000000000, //Address - }, - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action6 - 0x06, // Action:Check Busy Status - 0x1, // Instruction:Read Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - { - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0x0000000000000000, //Address - }, - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action7 - 0x07, // Action:Get Command Status - 0x0, // Instruction:Read Register - 0x1, // Flags - 0x00, // Reserved - /*Register Region*/ - { - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0x0000000000000000, //Address - }, - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - }, -}; - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Einj; -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Erst.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Erst.aslc deleted file mode 100644 index 0170b99f4..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Erst.aslc +++ /dev/null @@ -1,319 +0,0 @@ -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#include <IndustryStandard/Acpi.h> -#include <Platform.h> - -#define ACTION_BEGIN_WRITE_OPERATION 0x00 -#define ACTION_BEGIN_READ_OPERATION 0x01 -#define ACTION_BEGIN_CLEAR_OPERATION 0x02 -#define ACTION_END_OPERATION 0x03 -#define ACTION_SET_RECORD_OFFSET 0x04 -#define ACTION_EXECUTE_OPEARTION 0x05 -#define ACTION_CHECK_BUSY_STATUS 0x06 -#define ACTION_GET_COMMAND_STATUS 0x07 -#define ACTION_GET_RECORD_IDENTIFIER 0x08 -#define ACTION_SET_RECORD_IDENTIFIER 0x09 -#define ACTION_GET_RECORD_COUNT 0x0A -#define ACTION_BEGIN_DUMMY_WRITE_OPERATION 0x0B -#define ACTION_GET_NEXT_RECORD_IDENTIFIER 0x0C -#define ACTION_GET_ERROR_LOG_ADDRESS_RANGE 0x0D -#define ACTION_GET_ERROR_LOG_ADDRESS_RANGE_LENGTH 0x0E -#define ACTION_GET_ERROR_LOG_ADDRESS_RANGE_ATTRIBUTES 0x0F - - -#pragma pack (1) - -typedef struct { - UINT8 Operation; - UINT8 Instruction; - UINT8 Flags; - UINT8 Reserved8; - EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE Register; - UINT64 Value; - UINT64 Mask; -} EFI_ACPI_5_0_SERIALIZATION_ACTION; - - -typedef struct { - EFI_ACPI_DESCRIPTION_HEADER Header; - UINT32 SerializationHeaderSize; - UINT32 Resv1; - UINT32 InstructionEntryCount; - EFI_ACPI_5_0_SERIALIZATION_ACTION InstructionEntry[16]; -} EFI_ACPI_5_0_BOOT_ERROR_RECORD_SERIALIZATION_TABLE; - -typedef struct { - EFI_ACPI_DESCRIPTION_HEADER Header; - UINT32 SerializationHeaderSize; - UINT32 Resv1; - UINT32 InstructionEntryCount; -} EFI_ACPI_5_0_SERIALIZATION_ACTION_HEADER; -#pragma pack () - - - -EFI_ACPI_5_0_BOOT_ERROR_RECORD_SERIALIZATION_TABLE Erst = { - { - EFI_ACPI_5_0_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE, - sizeof (EFI_ACPI_5_0_BOOT_ERROR_RECORD_SERIALIZATION_TABLE), - EFI_ACPI_5_0_ERROR_RECORD_SERIALIZATION_TABLE_REVISION, - 0x00, // Checksum will be updated at runtime - {EFI_ACPI_OEM_ID}, - EFI_ACPI_OEM_TABLE_ID, - 0x00000002, - EFI_ACPI_CREATOR_ID, - EFI_ACPI_CREATOR_REVISION - }, - sizeof(EFI_ACPI_5_0_SERIALIZATION_ACTION_HEADER), - EFI_ACPI_RESERVED_DWORD, - 0x10, - { - { //Action0 - 0x00, // Action:Begin Operation - 0x3, // Instruction:Write Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0xFFFF0100, //Address - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action1 - 0x01, // Action:Begin Read Operation - 0x3, // Instruction:Write Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0xFFFF0108, //Address - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action2 - 0x02, // Action:Begin Clear Operation - 0x3, // Instruction:Write Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0xFFFF0110, //Address - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action3 - 0x03, // Action:Begin Clear Operation - 0x4, // Instruction:Noop - 0x1, // Flags - 0x00, // Reserved - /*Register Region*/ - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0xFFFF0118, //Address - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action4 - 0x04, // Action:Begin Clear Operation - 0x2, // Instruction:Write Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0xFFFF0120, //Address - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action5 - 0x05, // Action:Execute Operation - 0x3, // Instruction:Write Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - EFI_ACPI_5_0_SYSTEM_MEMORY, //Space ID - 0x8, //Bit Width - 0x0, //Bit Offset - 0x1, //Encoded Access Width - 0xFFFF0128, //Address - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action6 - 0x06, // Action:Check Busy Status - 0x1, // Instruction:Read Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0xFFFF0130, //Address - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action7 - 0x07, // Action:Get Command Status - 0x0, // Instruction:Read Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0xFFFF0138, //Address - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action8 - 0x08, // Action:Get Command Status - 0x0, // Instruction:Read Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0xFFFF0140, //Address - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action9 - 0x09, // Action:Set Record Identifier - 0x2, // Instruction:Write Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0xFFFF0148, //Address - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action10 - 0x0A, // Action:Get Record Count - 0x0, // Instruction:Read Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0xFFFF0150, //Address - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action11 - 0x0B, // Action:Begin Dummy Write - 0x3, // Instruction:Write Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0xFFFF0158, //Address - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action12 - 0x0C, // Action:Unused/Unknown Action - 0x0, // Instruction:Read Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0xFFFF0160, //Address - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action13 - 0x0D, // Action:Get Error Address Range - 0x0, // Instruction:Read Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0xFFFF0168, //Address - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action14 - 0x0E, // Action:Get Error Address Length - 0x0, // Instruction:Read Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0xFFFF0170, //Address - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - { //Action15 - 0x0F, // Action:Get Error Attributes - 0x0, // Instruction:Read Register - 0x0, // Flags - 0x00, // Reserved - /*Register Region*/ - EFI_ACPI_3_0_SYSTEM_MEMORY, //Space ID - 0x40, //Bit Width - 0x0, //Bit Offset - 0x4, //Encoded Access Width - 0xFFFF0178, //Address - 0x0000000000000000, // Value for InjectError() - 0xFFFFFFFFFFFFFFFF // Mask is only valid for 32-bits - }, - } - -}; - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Erst; -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Facp.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Facp.aslc deleted file mode 100644 index 729c5bc38..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Facp.aslc +++ /dev/null @@ -1,175 +0,0 @@ -/** @file - FACP Table - - Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR> - 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. - -**/ -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#include "Platform.h" - -EFI_ACPI_5_0_FIXED_ACPI_DESCRIPTION_TABLE Facp = { - { - EFI_ACPI_5_0_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE, - sizeof (EFI_ACPI_5_0_FIXED_ACPI_DESCRIPTION_TABLE), - EFI_ACPI_5_0_FIXED_ACPI_DESCRIPTION_TABLE_REVISION, - 0, // to make sum of entire table == 0 - {EFI_ACPI_OEM_ID}, // OEMID is a 6 bytes long field - EFI_ACPI_OEM_TABLE_ID, // OEM table identification(8 bytes long) - 0x00, // OEM revision number - EFI_ACPI_CREATOR_ID, // ASL compiler vendor ID - EFI_ACPI_CREATOR_REVISION // ASL compiler revision number - }, - 0, // Physical addesss of FACS - 0x00000010, // Physical address of DSDT - 0x0, // System Interrupt Model - 0x4, // PM Profile - SCI_INT_VECTOR, // System vector of SCI interrupt - SMI_CMD_IO_PORT, // Port address of SMI command port - ACPI_ENABLE, // value to write to port smi_cmd to enable ACPI - ACPI_DISABLE, // value to write to port smi_cmd to disable ACPI - S4BIOS_REQ, // Value to write to SMI CMD port to enter the S4BIOS state - 0, // PState control - PM1a_EVT_BLK, // Port address of Power Mgt 1a Event Reg Blk - PM1b_EVT_BLK, // Port address of Power Mgt 1b Event Reg Blk - PM1a_CNT_BLK, // Port address of Power Mgt 1a Ctrl Reg Blk - PM1b_CNT_BLK, // Port address of Power Mgt 1b Ctrl Reg Blk - PM2_CNT_BLK, // Port address of Power Mgt 2 Ctrl Reg Blk - PM_TMR_BLK, // Port address of Power Mgt Timer Ctrl Reg Blk - GPE0_BLK, // Port addr of General Purpose Event 0 Reg Blk - GPE1_BLK, // Port addr of General Purpose Event 1 Reg Blk - PM1_EVT_LEN, // Byte Length of ports at pm1X_evt_blk - PM1_CNT_LEN, // Byte Length of ports at pm1X_cnt_blk - PM2_CNT_LEN, // Byte Length of ports at pm2_cnt_blk - PM_TM_LEN, // Byte Length of ports at pm_tm_blk - GPE0_BLK_LEN, // Byte Length of ports at gpe0_blk - GPE1_BLK_LEN, // Byte Length of ports at gpe1_blk - GPE1_BASE, // offset in gpe model where gpe1 events start - 0, // _CST support - P_LVL2_LAT, // worst case HW latency to enter/exit C2 state - P_LVL3_LAT, // worst case HW latency to enter/exit C3 state - FLUSH_SIZE, // Size of area read to flush caches - FLUSH_STRIDE, // Stride used in flushing caches - DUTY_OFFSET, // bit location of duty cycle field in p_cnt reg - DUTY_WIDTH, // bit width of duty cycle field in p_cnt reg - DAY_ALRM, // index to day-of-month alarm in RTC CMOS RAM - MON_ALRM, // index to month-of-year alarm in RTC CMOS RAM - CENTURY, // index to century in RTC CMOS RAM - 0x0000, // Boot architecture flag - 0x00, // reserved - FLAG, - - { - 0x01, //Space ID - 0x8, //Bit Width - 0x0, //Bit Offset - 0x1, //Encoded Access Width - 0x0000000000000001,//Address - }, - - 0x0, //Value to cause reset - {0,0,0}, //Reserved - 0x0000000000000000,//FACS Address - 0x0000000000000010,//DSDT Address - - - /*PM1A Event Block*/ - 0x1, //Space ID:SystemIO - 0x20, //Bit Width - 0x0, //Bit Offset - 0x2, //Encoded Access Width - 0x0000000000000001, //Address - - /*PM1B Event Block*/ - 0x1, //Space ID:SystemIO - 0x0, //Bit Width - 0x0, //Bit Offset - 0x0, //Encoded Access Width - 0x0000000000000000, //Address - - /*PM1A Control Block*/ - 0x1, //Space ID:SystemIO - 0x10, //Bit Width - 0x0, //Bit Offset - 0x02, //Encoded Access Width - 0000000000000001, //Address - - /*PM1B Control Block*/ - 0x1, //Space ID:SystemIO - 0x00, //Bit Width - 0x0, //Bit Offset - 0x0, //Encoded Access Width - 0x0000000000000000, //Address - - /*PM2 Control Block*/ - 0x1, //Space ID:SystemIO - 0x08, //Bit Width - 0x0, //Bit Offset - 0x0, //Encoded Access Width - 0x0000000000000001, //Address - - /*PM Timer Block*/ - 0x1, //Space ID:SystemIO - 0x20, //Bit Width - 0x0, //Bit Offset - 0x3, //Encoded Access Width - 0x0000000000000001, //Address - - /*GPE0 Block*/ - 0x1, //Space ID:SystemIO - 0x80, //Bit Width - 0x0, //Bit Offset - 0x1, //Encoded Access Width - 0x0000000000000001, //Address - - /*GPE1 Block*/ - 0x1, //Space ID:SystemIO - 0x00, //Bit Width - 0x0, //Bit Offset - 0x0, //Encoded Access Width - 0x0000000000000000, //Address - - /*Sleep Control Register*/ - 0x1, //Space ID:SystemIO - 0x08, //Bit Width - 0x0, //Bit Offset - 0x1, //Encoded Access Width - 0x0000000000000000, //Address - - /*Sleep Status Register*/ - 0x1, //Space ID:SystemIO - 0x08, //Bit Width - 0x0, //Bit Offset - 0x1, //Encoded Access Width - 0x0000000000000000, //Address - -}; - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Facp; -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Facs.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Facs.aslc deleted file mode 100644 index 9bcddeaad..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Facs.aslc +++ /dev/null @@ -1,86 +0,0 @@ -/** @file - FACS Table - - Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR> - 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. - -**/ - -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#include <IndustryStandard/Acpi.h> - -EFI_ACPI_5_0_FIRMWARE_ACPI_CONTROL_STRUCTURE Facs = { - EFI_ACPI_5_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE, - sizeof (EFI_ACPI_5_0_FIRMWARE_ACPI_CONTROL_STRUCTURE), - - // - // Hardware Signature will be updated at runtime - // - 0x00000000, //HardwareSignature - 0x00, //FirmwareWakingVector - 0x00, //GlobalLock - 0x00, //Flags - 0x0000000000000000, //XFirmwareWakingVector - 0x02, //Version - { - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE - }, - 0x00, - { - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE, - EFI_ACPI_RESERVED_BYTE - } -}; - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Facs; -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Gtdt.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Gtdt.aslc deleted file mode 100644 index ab8a60ac0..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Gtdt.aslc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#include <IndustryStandard/Acpi.h> -#include <Platform.h> - -EFI_ACPI_5_0_GENERIC_TIMER_DESCRIPTION_TABLE Gtdt = -{ - { - EFI_ACPI_5_0_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE, - sizeof (EFI_ACPI_5_0_GENERIC_TIMER_DESCRIPTION_TABLE), - EFI_ACPI_5_0_GENERIC_TIMER_DESCRIPTION_TABLE_REVISION, - 0x00, // Checksum will be updated at runtime - {EFI_ACPI_OEM_ID}, - EFI_ACPI_OEM_TABLE_ID, - EFI_ACPI_OEM_REVISION, - EFI_ACPI_CREATOR_ID, - EFI_ACPI_CREATOR_REVISION - }, - 0x0000000000000000, //Timer Address - 0x00000001, //Flags - 0x00000000, //Secure PL1 Interrupt - 0x00000000, //SPL1 Flags - 0x00000000, //Non-Secure PL1 Interrupt - 0x00000000, //NSPL1 Flags - 0x00000000, //Virtual Timer Interrupt - 0x00000000, //VT Flags - 0x00000000, //Non-Secure PL2 Interrupt - 0x00000000, //NSPL2 Flags -}; - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Gtdt; -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Hest.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Hest.aslc deleted file mode 100644 index 08092acea..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Hest.aslc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#include <IndustryStandard/Acpi.h> -#include <Platform.h> - -#pragma pack(1) - -typedef struct { - EFI_ACPI_DESCRIPTION_HEADER Header; - UINT32 ErrorEntryCount; - EFI_ACPI_5_0_GENERIC_HARDWARE_ERROR_SOURCE_STRUCTURE GenHardWareError; - -} EFI_ACPI_5_0_HARDWARE_ERROR_SOURCE_TABLE; - -#pragma pack() - -EFI_ACPI_5_0_HARDWARE_ERROR_SOURCE_TABLE Hest = { - { - EFI_ACPI_5_0_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE, - sizeof (EFI_ACPI_5_0_HARDWARE_ERROR_SOURCE_TABLE), - EFI_ACPI_5_0_HARDWARE_ERROR_SOURCE_TABLE_REVISION, - 0x00, // Checksum will be updated at runtime - {EFI_ACPI_OEM_ID}, - EFI_ACPI_OEM_TABLE_ID, - 0x02, - EFI_ACPI_CREATOR_ID, - EFI_ACPI_CREATOR_REVISION - }, - 0x00000001, //Error Source Count -{ - 0x0009, //Subtable Type:Generic Hardware Error Source - 0x0002, //Source Id - 0xFFFF, //Related Source Id - 0x00, //Reserved - 0x01, //Enabled - 0x00000001, //Records To Preallocate - 0x00000001, //Max Sections Per Record - 0x00001000, //Max Raw Data Length - - /* Error Status Address : [Generic Address Structure]*/ - { - 0x00, //Space ID:SystemMemory - 0x40, //Bit Width - 0x00, //Bit Offset - 0x04, //Encoded Access Width - 0xFFFF0000, //Address - }, - /*Notify : [Hardware Error Notification Structure]*/ - { - 0x03, //Notify Type:SCI - 0x1c, //Notify Length - 0x0000, //Configuration Write Enable - 0x00000000, //PollInterval - 0x00000000, //Vector - 0x00000000, //Polling Threshold Value - 0x00000000, //Polling Threshold Window - 0x00000000, //Error Threshold Value - 0x00000000, //Error Threshold Window - }, - 0x00001000, //Error Status Block Length -}, -}; - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Hest; -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Mcfg.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Mcfg.aslc deleted file mode 100644 index 9451e9c50..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Mcfg.aslc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#include <IndustryStandard/Acpi.h> -#include <Platform.h> - -#define ACPI_5_0_MCFG_VERSION 0x1 - -#pragma pack(1) -typedef struct -{ - EFI_ACPI_DESCRIPTION_HEADER Header; - UINT64 Reserved1; - UINT64 ullBaseAddress; - UINT16 usSegGroupNum; - UINT8 ucStartBusNum; - UINT8 ucEndBusNum; - UINT32 Reserved2; -}EFI_ACPI_5_0_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_TABLE; -#pragma pack() - -EFI_ACPI_5_0_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_TABLE Mcfg= -{ - { - EFI_ACPI_5_0_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE, - sizeof (EFI_ACPI_5_0_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_TABLE), - ACPI_5_0_MCFG_VERSION, - 0x00, // Checksum will be updated at runtime - {EFI_ACPI_OEM_ID}, - EFI_ACPI_OEM_TABLE_ID, - EFI_ACPI_OEM_REVISION, - EFI_ACPI_CREATOR_ID, - EFI_ACPI_CREATOR_REVISION - }, - 0x0000000000000000, //Reserved - 0x0000000000000000, //Base Address - 0x0000, //Segment Group Number - 0x00, //Start Bus Number - 0x00, //End Bus Number - 0x00000000, //Reserved -}; - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Mcfg; -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Mpst.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Mpst.aslc deleted file mode 100644 index dfdda34a5..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Mpst.aslc +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#include <IndustryStandard/Acpi.h> -#include <Platform.h> - -#define MAX_POWER_STATES_NUM 0x2 -#define MAX_PHYSICAL_COMPONENTS_NUM 0x3 -#define MAX_MEMORY_POWER_NODE_COUNT 0x2 -#define MAX_CHARACTERISTICS_COUNT 0x2 - -#pragma pack (1) -typedef struct -{ - EFI_ACPI_5_0_MPST_MEMORY_POWER_STRUCTURE structre; - EFI_ACPI_5_0_MPST_MEMORY_POWER_STATE state[MAX_POWER_STATES_NUM]; - UINT16 components[MAX_PHYSICAL_COMPONENTS_NUM]; -}EFI_ACPI_5_0_MPST_MEMORY_POWER_STRUCTURE_EX; - -typedef struct -{ - EFI_ACPI_5_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE structre; - UINT64 ulResverd; -}EFI_ACPI_5_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_EX; - -typedef struct -{ - EFI_ACPI_5_0_MEMORY_POWER_STATUS_TABLE table; - EFI_ACPI_5_0_MPST_MEMORY_POWER_NODE_TABLE node; - EFI_ACPI_5_0_MPST_MEMORY_POWER_STRUCTURE_EX powerNode[MAX_MEMORY_POWER_NODE_COUNT]; - EFI_ACPI_5_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_TABLE Characteristics; - EFI_ACPI_5_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_EX powerChar[MAX_CHARACTERISTICS_COUNT]; -}EFI_ACPI_5_0_MEMORY_POWER_STATUS_TABLE_EX; -#pragma pack () - - -EFI_ACPI_5_0_MEMORY_POWER_STATUS_TABLE_EX Mpst ={ - { - { - EFI_ACPI_5_0_MEMORY_POWER_STATE_TABLE_SIGNATURE, - 0x000000B6, - EFI_ACPI_5_0_MEMORY_POWER_STATE_TABLE_REVISION, - 0x00, // Checksum will be updated at runtime - {EFI_ACPI_OEM_ID}, - EFI_ACPI_OEM_TABLE_ID, - EFI_ACPI_OEM_REVISION, - EFI_ACPI_CREATOR_ID, - EFI_ACPI_CREATOR_REVISION - }, - 0x00, //Channel ID - {0,0,0}, //Reserved - - }, - 0x0002, //Power Node Count - {0,0}, //Reserved - { - { - 0x00, //Flags - 0x00, //Reserved - 0x0000, //Node ID - 0x0000000000, //Length - 0x00000000000000000000, //ange Address - 0x00000000000000000000, //Range Length - 0x00000002, // Num Power - 0x00000003, // Num Physical Components - { - { - 0x00, //Power State - 0x00, //InfoIndex - }, - { - 0x00, //Power State - 0x00, //InfoIndex - }, - }, - 0x0000, //Component Id - 0x0001, //Component Id - 0x0002, //Component Id - }, - { - 0x00, //Flags - 0x00, //Reserved - 0x0000, //Node ID - 0x0000000000, //Length - 0x00000000000000000000, //ange Address - 0x00000000000000000000, //Range Length - 0x00000001, // Num Power - 0x00000001, // Num Physical Components - { - 0x00, //Power State - 0x00, //InfoIndex - }, - 0x0000, //Component Id - - }, - }, - - 0x0002, //Characteristics Count - {0,0}, //Reserved - { - { - 0x01, //Structure ID - 0x00, //Flags - 0x0000, //Reserved - 0x00000000, //Average Power - 0x00000000, //Power Saving - 0x0000000000000000, //Exit Latency - 0x0000000000000000, //Reserved - }, - { - 0x01, //Structure ID - 0x00, //Flags - 0x0000, //Reserved - 0x00000000, //Average Power - 0x00000000, //Power Saving - 0x0000000000000000, //Exit Latency - 0x0000000000000000, //Reserved - }, - }, -}; - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Mpst; -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Msct.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Msct.aslc deleted file mode 100644 index 80c9d59b4..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Msct.aslc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#include <IndustryStandard/Acpi.h> -#include <Platform.h> - -#define EFI_ACPI_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE_REVISION 0x1 -// -// MSCT Table definition -// -#pragma pack (1) -typedef struct { - UINT8 Revision; - UINT8 Length; - UINT32 ProxDomRangeLow; - UINT32 ProxDomRangeHigh; - UINT32 MaxProcessorCapacity; - UINT64 MaxMemoryCapacity; -} EFI_ACPI_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE; - -typedef struct { - EFI_ACPI_5_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_HEADER Header; - EFI_ACPI_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE ProxDomInfoStructure[4]; -} EFI_ACPI_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE; - -#pragma pack () - -EFI_ACPI_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE Msct = { - { - { - EFI_ACPI_5_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_SIGNATURE, - sizeof (EFI_ACPI_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE), - EFI_ACPI_5_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_REVISION, - 0x00, // Checksum will be updated at runtime - {EFI_ACPI_OEM_ID}, - EFI_ACPI_OEM_TABLE_ID, - EFI_ACPI_OEM_REVISION, - EFI_ACPI_CREATOR_ID, - EFI_ACPI_CREATOR_REVISION - }, - // - // Beginning of MSCT specific fields - // - 0x00000038, // OffsetProxDomInfo - 4 - 1, // MaxNumProxDom - 0x00000000, // MaxNumClockDom - 0x00000FFFFFFFFFFF, // MaxPhysicalAddress - }, - { - { - EFI_ACPI_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE_REVISION, // Revision - sizeof (EFI_ACPI_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE), // Length - 0x00000000, // ProxDomRangeLow - 0x00000003, // ProxDomRangeHigh - 0x00000010, // MaxProcessorCapacity - 0x0000004000000000 // MaxMemoryCapacity - }, - { - EFI_ACPI_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE_REVISION, // Revision - sizeof (EFI_ACPI_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE), // Length - 0x00000000, // ProxDomRangeLow - 0x00000000, // ProxDomRangeHigh - 0x00000000, // MaxProcessorCapacity - 0x0000000000000000, // MaxMemoryCapacity - }, - - { - EFI_ACPI_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE_REVISION, // Revision - sizeof (EFI_ACPI_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE), // Length - 0x00000000, // ProxDomRangeLow - 0x00000000, // ProxDomRangeHigh - 0x00000000, // MaxProcessorCapacity - 0x0000000000000000, // MaxMemoryCapacity - }, - - { - EFI_ACPI_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE_REVISION, // Revision - sizeof (EFI_ACPI_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE), // Length - 0x00000000, // ProxDomRangeLow - 0x00000000, // ProxDomRangeHigh - 0x00000000, // MaxProcessorCapacity - 0x0000000000000000, // MaxMemoryCapacity - }, - }, -}; - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Msct; -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Oem0.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Oem0.aslc deleted file mode 100644 index 2e84daf4a..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Oem0.aslc +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#include <IndustryStandard/Acpi.h> -#include <Platform.h> - -#define EFI_ACPI_5_0_OEM0_SIGNATURE SIGNATURE_32('O', 'E', 'M', '0') -#define ACPI_5_0_OEM0_REVISION 0x1 - -typedef struct{ - EFI_ACPI_DESCRIPTION_HEADER Header; -}EFI_ACPI_5_0_OEM0_TABLE; - -EFI_ACPI_5_0_OEM0_TABLE Oem0= -{ - { - EFI_ACPI_5_0_OEM0_SIGNATURE, - sizeof (EFI_ACPI_5_0_OEM0_TABLE), - ACPI_5_0_OEM0_REVISION, - 0x00, // Checksum will be updated at runtime - {EFI_ACPI_OEM_ID}, - EFI_ACPI_OEM_TABLE_ID, - 0x0000000A, - EFI_ACPI_CREATOR_ID, - EFI_ACPI_CREATOR_REVISION - }, -}; - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Oem0; -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Platform.h b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Platform.h deleted file mode 100644 index 147d3324e..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Platform.h +++ /dev/null @@ -1,75 +0,0 @@ -/** @file - Platform specific defines for constructing ACPI tables - - Copyright (c) 2008, Intel Corporation. All rights reserved.<BR> - 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. - -**/ - -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#ifndef _Platform_h_INCLUDED_ -#define _Platform_h_INCLUDED_ - -#include <PiDxe.h> -#include <IndustryStandard/Acpi.h> - -// -// ACPI table information used to initialize tables.RTSMVEV8 -// -#define EFI_ACPI_OEM_ID 'L','I','N','A','R','O' // OEMID 6 bytes long -#define EFI_ACPI_OEM_TABLE_ID SIGNATURE_64('R','T','S','M','V','E','V','8' ) // OEM table id 8 bytes long -#define EFI_ACPI_OEM_REVISION 0x00000001 -#define EFI_ACPI_CREATOR_ID SIGNATURE_32('I','N','T','L') -#define EFI_ACPI_CREATOR_REVISION 0x20130517 - -#define INT_MODEL 0x01 -#define SCI_INT_VECTOR 0x0 -#define SMI_CMD_IO_PORT 0x0 -#define ACPI_ENABLE 0x0 -#define ACPI_DISABLE 0x0 -#define S4BIOS_REQ 0x00 -#define PM1a_EVT_BLK 0x00000001 -#define PM1b_EVT_BLK 0x00000000 -#define PM1a_CNT_BLK 0x00000001 -#define PM1b_CNT_BLK 0x00000000 -#define PM2_CNT_BLK 0x00000001 -#define PM_TMR_BLK 0x00000001 -#define GPE0_BLK 0x00000001 -#define GPE1_BLK 0x00000000 -#define PM1_EVT_LEN 0x04 -#define PM1_CNT_LEN 0x02 -#define PM2_CNT_LEN 0x01 -#define PM_TM_LEN 0x04 -#define GPE0_BLK_LEN 0x08 -#define GPE1_BLK_LEN 0x00 -#define GPE1_BASE 0x00 -#define RESERVED 0x00 -#define P_LVL2_LAT 0x0000 -#define P_LVL3_LAT 0x0000 -#define FLUSH_SIZE 0x0000 -#define FLUSH_STRIDE 0x0000 -#define DUTY_OFFSET 0x00 -#define DUTY_WIDTH 0x00 -#define DAY_ALRM 0x00 -#define MON_ALRM 0x00 -#define CENTURY 0x00 -#define FLAG 0x00321033 -#endif - diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Pmtt.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Pmtt.aslc deleted file mode 100644 index f0b4f6cfe..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Pmtt.aslc +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#include <IndustryStandard/Acpi.h> -#include <Platform.h> - -#define EFI_ACPI_MEMORY_AGGREGATOR_TYPE_SOCKET 00 //socket -#define EFI_ACPI_MEMORY_AGGREGATOR_TYPE_MEMCTRL 01 //Memory Controller -#define EFI_ACPI_MEMORY_AGGREGATOR_TYPE_DIMM 02 //DIMM -#define EFI_ACPI_MEMORY_AGGREGATOR_TYPE_RESVERVED 03 //RESVERVED - -#define EFI_ACPI_MEMORY_AGGREGATOR_FLAG_TLAD 01 -#define EFI_ACPI_MEMORY_AGGREGATOR_FLAG_PHYELEMENT 02 // BIT1 - set to 1 since socket is a physical element of the topology -//Bit 2 and 3 - If 00, indicates that all components aggregated by this device implements volatile memory -// If 01, indicates that components aggregated by this device implements both volatile and non-volatile memory -// If 10, indicates that all components aggregated by this device implements non-volatile memory -#define EFI_ACPI_MEMORY_AGGREGATOR_FLAG__VOLATILE 00 -#define EFI_ACPI_MEMORY_AGGREGATOR_FLAG__MIXED 4 -#define EFI_ACPI_MEMORY_AGGREGATOR_FLAG__NONVOLATILE 0x08 -#define EFI_ACPI_MEMORY_AGGREGATOR_FLAG__RSVD 0x0C - -#define MAXNUMBER_OF_PROXIMITY_DOMAINS 0x3 - -#define MAX_SOCKET 0x2 -#define NUM_MEM_CONTROLLERS 0x2 -#define MAX_DIMM 0x02 - -#pragma pack (1) -// PMMT Table fields -typedef struct { - UINT32 ReadLatency; - UINT32 WriteLatency; - UINT32 ReadBW; - UINT32 WriteBW; - UINT16 OptimalAccUnit; - UINT16 OptimalAccAlignment; -} EFI_ACPI_MEMCTRL_CHAR_TABLE; - -typedef struct { - UINT8 Type; - UINT8 Rsvd; - UINT16 Length; - UINT16 Flag; - UINT16 Rsvd1; - UINT16 PhyCompIdentifier; - UINT16 Rsvd2; - UINT32 Size; - UINT32 SmBiosHandle; -} EFI_ACPI_MEMORY_AGGREGATOR_DIMM_STRUC; - -typedef struct { - UINT8 Type; - UINT8 Rsvd; - UINT16 Length; - UINT16 Flag; - UINT16 Rsvd1; - EFI_ACPI_MEMCTRL_CHAR_TABLE MemCtrlCharTable; - UINT16 Rsvd2; - UINT16 NumProxDomains; - UINT32 ProxDomain[MAXNUMBER_OF_PROXIMITY_DOMAINS]; - EFI_ACPI_MEMORY_AGGREGATOR_DIMM_STRUC PhyCompIdentStruc[MAX_DIMM]; -} EFI_ACPI_MEMORY_AGGREGATOR_MEMCTRL_STRUC; - -typedef struct { - UINT8 Type; - UINT8 Rsvd; - UINT16 Length; - UINT16 Flag; - UINT16 Rsvd1; - UINT16 SckIdent; - UINT16 Rsvd2; - EFI_ACPI_MEMORY_AGGREGATOR_MEMCTRL_STRUC MemCtrlStruc[NUM_MEM_CONTROLLERS]; -} EFI_ACPI_MEMORY_AGGREGATOR_SOCKET_STRUC; - -typedef struct { - EFI_ACPI_5_0_MEMORY_TOPOLOGY_TABLE Header; - EFI_ACPI_MEMORY_AGGREGATOR_SOCKET_STRUC TopLevelmemAggrDevStruc[MAX_SOCKET]; -} EFI_ACPI_5_0_PLATFORM_MEMORY_TOPOLOGY_TABLE; -#pragma pack () - - -EFI_ACPI_5_0_PLATFORM_MEMORY_TOPOLOGY_TABLE Pmtt = { - { - { - EFI_ACPI_5_0_PLATFORM_MEMORY_TOPOLOGY_TABLE_SIGNATURE, - sizeof (EFI_ACPI_5_0_PLATFORM_MEMORY_TOPOLOGY_TABLE), // Length - EFI_ACPI_5_0_MEMORY_TOPOLOGY_TABLE_REVISION, // Revision - 0x00, // Checksum will be updated at runtime - {EFI_ACPI_OEM_ID}, - EFI_ACPI_OEM_TABLE_ID, - EFI_ACPI_OEM_REVISION, - EFI_ACPI_CREATOR_ID, - EFI_ACPI_CREATOR_REVISION - }, - EFI_ACPI_RESERVED_DWORD, // Reserved[0] - }, - { - /*Socket 0*/ - { - 0x00, //Subtable Type:Socket - 0x00, //Reserved - 0x0080, //Length - 0x0001, //Flags - 0x0000, //Reserved - 0x0000, //Socket ID - 0x0000, //Reserved - { - /*Memory Controller 1*/ - - { - 0x01, //Subtable Type:Memory Controller - 0x00, //Reserved - 0x0054, //Length - 0x0005, //Flags - 0x0000, //Reserved - { - 0x00000000, //Read Latency - 0x00000000, //Write Latency - 0x00000000, //Read Bandwidth - 0x00000000, //Write Bandwidth - 0x0000, //Access Width - 0x0000, //Alignment - }, - 0x0000, //Reserved - MAXNUMBER_OF_PROXIMITY_DOMAINS, //Domain Count - 0x00000000, //Proximity Domain - 0x00000000, //Proximity Domain - 0x00000000, //Proximity Domain - { - /*DIMM 0*/ - { - 0x02, //Subtable Type:Physical Component (DIMM) - 0x00, //Reserved - 0x0014, //Length - 0x0002, //Flags - 0x0000, //Reserved - 0x0000, //Component ID - 0x0000, //Reserved - 0x00000000, //Memory Size - 0x00000000, //Bios Handle - }, - /*DIMM 1*/ - { - 0x02, //Subtable Type:Physical Component (DIMM) - 0x00, //Reserved - 0x0014, //Length - 0x0002, //Flags - 0x0000, //Reserved - 0x0000, //Component ID - 0x0000, //Reserved - 0x00000000, //Memory Size - 0x00000000, //Bios Handle - }, - }, - }, - - /*Memory Controller 2*/ - { - 0x01, //Subtable Type:Memory Controller - 0x00, //Reserved - 0x0020, //Length - 0x0001, //Flags - 0x0000, //Reserved - { - 0x00000000, //Read Latency - 0x00000000, //Write Latency - 0x00000000, //Read Bandwidth - 0x00000000, //Write Bandwidth - 0x0000, //Access Width - 0x0000 //Alignment - }, - 0x0000, //Reserved - 0x0000, //Domain Count - {0}, - {0}, - - }, - }, - }, - - - /*Socket 1*/ - { - 0x00, //Subtable Type:Socket - 0x00, //Reserved - 0x000c, //Length - 0x0001, //Flags - 0x0000, //Reserved - 0x0000, //Socket ID - 0x0000 //Reserved - }, - }, - - -}; - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Pmtt; -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Slit.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Slit.aslc deleted file mode 100644 index 05d96e029..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Slit.aslc +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#include <IndustryStandard/Acpi.h> -#include <Platform.h> - -#define EFI_ACPI_SYSTEM_LOCALITIES_ENTRY_COUNT 0x0000000000000014 - -#pragma pack(1) -typedef struct { - UINT8 Entry[EFI_ACPI_SYSTEM_LOCALITIES_ENTRY_COUNT]; -} EFI_ACPI_5_0_NUMBER_OF_SYSTEM_LOCALITIES_STRUCTURE; - -typedef struct { - EFI_ACPI_5_0_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_HEADER Header; - EFI_ACPI_5_0_NUMBER_OF_SYSTEM_LOCALITIES_STRUCTURE NumSlit[EFI_ACPI_SYSTEM_LOCALITIES_ENTRY_COUNT]; - -} EFI_ACPI_5_0_SYSTEM_LOCALITY_INFORMATION_TABLE; -#pragma pack() - -// -// System Locality Information Table -// Please modify all values in Slit.h only. -// -EFI_ACPI_5_0_SYSTEM_LOCALITY_INFORMATION_TABLE Slit = { - { - { - EFI_ACPI_5_0_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE, - sizeof (EFI_ACPI_5_0_SYSTEM_LOCALITY_INFORMATION_TABLE), - EFI_ACPI_5_0_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_REVISION, - 0x00, // Checksum will be updated at runtime - {EFI_ACPI_OEM_ID}, - EFI_ACPI_OEM_TABLE_ID, - EFI_ACPI_OEM_REVISION, - EFI_ACPI_CREATOR_ID, - EFI_ACPI_CREATOR_REVISION, - }, - // - // Beginning of SLIT specific fields - // - EFI_ACPI_SYSTEM_LOCALITIES_ENTRY_COUNT, - }, - { - {0x0A, 0x10, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27}, //Locality 0 - {0x10, 0x0A, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26,}, //Locality 1 - {0x16, 0x15, 0x0A, 0x10, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25,}, //Locality 2 - {0x17, 0x16, 0x10, 0x0A, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24,}, //Locality 3 - {0x18, 0x17, 0x16, 0x15, 0x0A, 0x10, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23,}, //Locality 4 - {0x19, 0x18, 0x17, 0x16, 0x10, 0x0A, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22,}, //Locality 5 - {0x1A, 0x19, 0x18, 0x17, 0x16, 0x15, 0x0A, 0x10, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21,}, //Locality 6 - {0x1B, 0x1A, 0x19, 0x18, 0x17, 0x16, 0x10, 0x0A, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20,}, //Locality 7 - {0x1C, 0x1B, 0x1A, 0x19, 0x18, 0x17, 0x16, 0x15, 0x0A, 0x10, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F,}, //Locality 8 - {0x1D, 0x1C, 0x1B, 0x1A, 0x19, 0x18, 0x17, 0x16, 0x10, 0x0A, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E,}, //Locality 9 - {0x1E, 0x1D, 0x1C, 0x1B, 0x1A, 0x19, 0x18, 0x17, 0x16, 0x15, 0x0A, 0x10, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D,}, //Locality 10 - {0x1F, 0x1E, 0x1D, 0x1C, 0x1B, 0x1A, 0x19, 0x18, 0x17, 0x16, 0x10, 0x0A, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C,}, //Locality 11 - {0x20, 0x1F, 0x1E, 0x1D, 0x1C, 0x1B, 0x1A, 0x19, 0x18, 0x17, 0x16, 0x15, 0x0A, 0x10, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B,}, //Locality 12 - {0x21, 0x20, 0x1F, 0x1E, 0x1D, 0x1C, 0x1B, 0x1A, 0x19, 0x18, 0x17, 0x16, 0x10, 0x0A, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A,}, //Locality 13 - {0x22, 0x21, 0x20, 0x1F, 0x1E, 0x1D, 0x1C, 0x1B, 0x1A, 0x19, 0x18, 0x17, 0x16, 0x15, 0x0A, 0x10, 0x16, 0x17, 0x18, 0x19,}, //Locality 14 - {0x23, 0x22, 0x21, 0x20, 0x1F, 0x1E, 0x1D, 0x1C, 0x1B, 0x1A, 0x19, 0x18, 0x17, 0x16, 0x10, 0x0A, 0x15, 0x16, 0x17, 0x18,}, //Locality 15 - {0x24, 0x23, 0x22, 0x21, 0x20, 0x1F, 0x1E, 0x1D, 0x1C, 0x1B, 0x1A, 0x19, 0x18, 0x17, 0x16, 0x15, 0x0A, 0x10, 0x16, 0x17,}, //Locality 16 - {0x25, 0x24, 0x23, 0x22, 0x21, 0x20, 0x1F, 0x1E, 0x1D, 0x1C, 0x1B, 0x1A, 0x19, 0x18, 0x17, 0x16, 0x10, 0x0A, 0x15, 0x16,}, //Locality 17 - {0x26, 0x25, 0x24, 0x23, 0x22, 0x21, 0x20, 0x1F, 0x1E, 0x1D, 0x1C, 0x1B, 0x1A, 0x19, 0x18, 0x17, 0x16, 0x15, 0x0A, 0x10,}, //Locality 18 - {0x27, 0x26, 0x25, 0x24, 0x23, 0x22, 0x21, 0x20, 0x1F, 0x1E, 0x1D, 0x1C, 0x1B, 0x1A, 0x19, 0x18, 0x17, 0x16, 0x10, 0x0A,}, //Locality 19 - }, -}; - - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Slit; -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Spmi.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Spmi.aslc deleted file mode 100644 index 77836a471..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Spmi.aslc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#include <IndustryStandard/Acpi.h> -#include <Platform.h> - -#define ACPI_5_0_SPMI_REVISION 0x4 - -#pragma pack(1) -typedef struct -{ - - EFI_ACPI_DESCRIPTION_HEADER Header; - UINT8 ucInterfaceType; - UINT8 Reserved; - UINT16 usIPMISpecVersion; - UINT8 ucInterruptType; - UINT8 ucGPENumber; - UINT8 Reserved2; - UINT8 ucPCIDeviceFlag; - UINT32 uwInterrupt; - EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE IPMIRegister; - UINT8 ucPCISegment; - UINT8 ucPCIBus; - UINT8 ucPCIDevice; - UINT8 ucPCIFunction; - UINT8 Reserved3; -}EFI_ACPI_5_0_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE; -#pragma pack() - -EFI_ACPI_5_0_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE Spmi = -{ - { - EFI_ACPI_5_0_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE_SIGNATURE, - sizeof (EFI_ACPI_5_0_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE), - ACPI_5_0_SPMI_REVISION, - 0x00, // Checksum will be updated at runtime - {EFI_ACPI_OEM_ID}, - EFI_ACPI_OEM_TABLE_ID, - 0x00, - EFI_ACPI_CREATOR_ID, - EFI_ACPI_CREATOR_REVISION - }, - 0x00, //Interface Type - 0x00, //Reserved - 0x0000, //IPMI Spec Version - 0x00, //Interrupt Type - 0x00, //GPE Number - 0x00, //Reserved - 0x00, //PCI Device Flag - 0x00000000, //Interrupt - { - 0x00, //Space ID:SystemMemory - 0x08, //Bit Width - 0x00, //Bit Offset - 0x01, //Encoded Access Width - 0x0000000000000000, //Address - }, - 0x00, //PCI Segment - 0x00, //PCI Bus - 0x00, //PCI Device - 0x00, //PCI Function - 0x00, //Reserved -}; - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Spmi; -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Srat.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Srat.aslc deleted file mode 100644 index d5c433ffc..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Srat.aslc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#include <IndustryStandard/Acpi.h> -#include <Platform.h> - - -// -// Define the number of each table type. -// This is where the table layout is modified. -// -#define EFI_ACPI_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY_STRUCTURE_COUNT 4 -#define EFI_ACPI_MEMORY_AFFINITY_STRUCTURE_COUNT 4 - - -#pragma pack(1) -typedef struct { - EFI_ACPI_5_0_SYSTEM_RESOURCE_AFFINITY_TABLE_HEADER Header; - EFI_ACPI_5_0_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY_STRUCTURE Apic; - EFI_ACPI_5_0_MEMORY_AFFINITY_STRUCTURE Memory; - EFI_ACPI_5_0_PROCESSOR_LOCAL_X2APIC_AFFINITY_STRUCTURE x2APIC; -} EFI_ACPI_5_0_SYSTEM_RESOURCE_AFFINITY_TABLE; - -#pragma pack() - - -// -// Static Resource Affinity Table definition -// -EFI_ACPI_5_0_SYSTEM_RESOURCE_AFFINITY_TABLE Srat = { - { - EFI_ACPI_5_0_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE, - sizeof (EFI_ACPI_5_0_SYSTEM_RESOURCE_AFFINITY_TABLE), - EFI_ACPI_5_0_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION, - 0x00, // Checksum will be updated at runtime - {EFI_ACPI_OEM_ID}, - EFI_ACPI_OEM_TABLE_ID, - EFI_ACPI_OEM_REVISION, - EFI_ACPI_CREATOR_ID, - EFI_ACPI_CREATOR_REVISION, - /*Reserved*/ - 0x00000001, // Reserved to be 1 for backward compatibility - EFI_ACPI_RESERVED_QWORD - }, - /**/ - { - 0x00, // Subtable Type:Processor Local APIC/SAPIC Affinity - sizeof(EFI_ACPI_5_0_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY_STRUCTURE), //Length - 0x00, //Proximity Domain Low(8) - 0x00, //Apic ID - 0x00000001, //Flags - 0x00, //Local Sapic EID - {0,0,0}, //Proximity Domain High(24) - 0x00000000, //ClockDomain - }, - // - // - // Memory Affinity - // - { - 0x01, // Subtable Type:Memory Affinity - sizeof (EFI_ACPI_5_0_MEMORY_AFFINITY_STRUCTURE), // Length - 0x00000000, // Proximity Domain - EFI_ACPI_RESERVED_WORD, // Reserved - 0x00000000, // Address Base Low - 0x00000000, // Address Base High - 0x0009FC00, // Length Low - 0x00000000, // Length High - EFI_ACPI_RESERVED_DWORD, // Reserved - 0x00000001, // Flags disabled, until enabled by Platform driver - EFI_ACPI_RESERVED_QWORD , // Reserved - }, - - /*Processor Local x2APIC Affinity*/ - { - 0x02, // Subtable Type:Processor Local x2APIC Affinity - sizeof(EFI_ACPI_5_0_PROCESSOR_LOCAL_X2APIC_AFFINITY_STRUCTURE), - {0,0}, //Reserved1 - 0x00000000, //Proximity Domain - 0x00000000, //Apic ID - 0x00000001, //Flags - 0x00000000, //Clock Domain - {0,0,0,0}, //Reserved2 - }, -}; - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Srat; -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Ssdt0.asl b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Ssdt0.asl deleted file mode 100644 index c13ceef56..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Ssdt0.asl +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2013, Al Stone <al.stone@linaro.org> - * - * [SSDT] Description of the armv8 VE Model - * - * This source is released under the terms of the GPLv2. - */ - -DefinitionBlock ( - "ssdt0.aml", // output filename - "SSDT", // table signature - 2, // SSDT compliance revision - "LINARO", // OEM ID - "RTSMVEV8", // table ID - 0x00000001) // OEM revision -{ -} diff --git a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Uefi.aslc b/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Uefi.aslc deleted file mode 100644 index c3bbce3ed..000000000 --- a/ArmPkg/Drivers/AcpiTables/rtsm_ve-aemv8a/Uefi.aslc +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2013 Linaro Limited - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the BSD License which accompanies - * this distribution, and is available at - * http://opensource.org/licenses/bsd-license.php - * - * Contributors: - * Yi Li - yi.li@linaro.org -*/ - -#include <IndustryStandard/Acpi.h> -#include <Platform.h> - - -#define ACPI_5_0_UEFI_REVISION 0x1 - -#pragma pack(1) - -typedef struct -{ - EFI_ACPI_DESCRIPTION_HEADER Header; - EFI_GUID guid; - UINT16 usDataOffset; -}EFI_ACPI_5_0_UEFI_TABLE; -#pragma pack() - -EFI_ACPI_5_0_UEFI_TABLE Uefi= -{ - { - EFI_ACPI_5_0_UEFI_ACPI_DATA_TABLE_SIGNATURE, - sizeof (EFI_ACPI_5_0_UEFI_TABLE), - ACPI_5_0_UEFI_REVISION, - 0x00, // Checksum will be updated at runtime - {EFI_ACPI_OEM_ID}, - EFI_ACPI_OEM_TABLE_ID, - EFI_ACPI_OEM_REVISION, - EFI_ACPI_CREATOR_ID, - EFI_ACPI_CREATOR_REVISION - }, - //03020100-0504-0706-0809-0A0B0C0D0E0F - { 0x03020100, 0x0504, 0x0706, { 0x08, 0x09, 0x0A, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f } }, - 0x0036 //Data Offset -}; - -VOID* -ReferenceAcpiTable ( - VOID - ) -{ - // - // Reference the table being generated to prevent the optimizer from removing the - // data structure from the exeutable - // - return (VOID*)&Uefi; -} diff --git a/ArmPkg/Drivers/UpdateSmbios/UpdateSmbios.c b/ArmPkg/Drivers/UpdateSmbios/UpdateSmbios.c deleted file mode 100644 index bd2d7008c..000000000 --- a/ArmPkg/Drivers/UpdateSmbios/UpdateSmbios.c +++ /dev/null @@ -1,829 +0,0 @@ -/** @file - - This code responsible for constructing and updating SMBIOS table into system table. -Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR> -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. -**/ - -#include "UpdateSmbios.h" - - -/*********************************************************************** - SMBIOS data definition TYPE0 BIOS Information -************************************************************************/ - -SMBIOS_TABLE_TYPE0 mBIOSInfoType0 = { - { EFI_SMBIOS_TYPE_BIOS_INFORMATION, sizeof (SMBIOS_TABLE_TYPE0), 0 }, - 1, // Vendor String - 2, // BiosVersion String - 0xE000, // BiosSegment - 3, // BiosReleaseDate String - 0x7F, // BiosSize - { // BiosCharacteristics - 0, // Reserved :2; ///< Bits 0-1. - 0, // Unknown :1; - 0, // BiosCharacteristicsNotSupported :1; - 0, // IsaIsSupported :1; - 0, // McaIsSupported :1; - 0, // EisaIsSupported :1; - 1, // PciIsSupported :1; - 0, // PcmciaIsSupported :1; - 0, // PlugAndPlayIsSupported :1; - 0, // ApmIsSupported :1; - 1, // BiosIsUpgradable :1; - 1, // BiosShadowingAllowed :1; - 0, // VlVesaIsSupported :1; - 0, // EscdSupportIsAvailable :1; - 0, // BootFromCdIsSupported :1; - 1, // SelectableBootIsSupported :1; - 0, // RomBiosIsSocketed :1; - 0, // BootFromPcmciaIsSupported :1; - 0, // EDDSpecificationIsSupported :1; - 0, // JapaneseNecFloppyIsSupported :1; - 0, // JapaneseToshibaFloppyIsSupported :1; - 0, // Floppy525_360IsSupported :1; - 0, // Floppy525_12IsSupported :1; - 0, // Floppy35_720IsSupported :1; - 0, // Floppy35_288IsSupported :1; - 0, // PrintScreenIsSupported :1; - 0, // Keyboard8042IsSupported :1; - 0, // SerialIsSupported :1; - 0, // PrinterIsSupported :1; - 0, // CgaMonoIsSupported :1; - 0, // NecPc98 :1; - 0 // ReservedForVendor :32; ///< Bits 32-63. Bits 32-47 reserved for BIOS vendor - ///< and bits 48-63 reserved for System Vendor. - }, - { // BIOSCharacteristicsExtensionBytes[] - 0x81, // AcpiIsSupported :1; - // UsbLegacyIsSupported :1; - // AgpIsSupported :1; - // I2OBootIsSupported :1; - // Ls120BootIsSupported :1; - // AtapiZipDriveBootIsSupported :1; - // Boot1394IsSupported :1; - // SmartBatteryIsSupported :1; - // BIOSCharacteristicsExtensionBytes[1] - 0x0a, // BiosBootSpecIsSupported :1; - // FunctionKeyNetworkBootIsSupported :1; - // TargetContentDistributionEnabled :1; - // UefiSpecificationSupported :1; - // VirtualMachineSupported :1; - // ExtensionByte2Reserved :3; - }, - 0x00, // SystemBiosMajorRelease - 0x01, // SystemBiosMinorRelease - 0xFF, // EmbeddedControllerFirmwareMajorRelease - 0xFF, // EmbeddedControllerFirmwareMinorRelease -}; - - -CHAR8 *mBIOSInfoType0Strings[] = { - "edk2.sourceforge.net", // Vendor String - __TIME__, // BiosVersion String - __DATE__, // BiosReleaseDate String - NULL -}; - - -/*********************************************************************** - SMBIOS data definition TYPE1 System Information -************************************************************************/ -SMBIOS_TABLE_TYPE1 mSysInfoType1 = { - { EFI_SMBIOS_TYPE_SYSTEM_INFORMATION, sizeof (SMBIOS_TABLE_TYPE1), 0 }, - 1, // Manufacturer String - 2, // ProductName String - 3, // Version String - 4, // SerialNumber String - { 0x25EF0280, 0xEC82, 0x42B0, { 0x8F, 0xB6, 0x10, 0xAD, 0xCC, 0xC6, 0x7C, 0x02 } }, - SystemWakeupTypePowerSwitch, - 5, // SKUNumber String - 6, // Family String -}; -CHAR8 *mSysInfoType1Strings[] = { - "edk2.sourceforge.net", - "EmulatorPkg", - "1.0", - "System Serial#", - "System SKU#", - "edk2", - NULL -}; - -/*********************************************************************** - SMBIOS data definition TYPE2 Board Information -************************************************************************/ - -SMBIOS_TABLE_TYPE2 mBoardInfoType2 = { - { EFI_SMBIOS_TYPE_BASEBOARD_INFORMATION, sizeof (SMBIOS_TABLE_TYPE2), 0 }, - 1, // Manufacturer String - 2, // ProductName String - 3, // Version String - 4, // SerialNumber String - 5, // AssetTag String - { // FeatureFlag - 1, // Motherboard :1; - 0, // RequiresDaughterCard :1; - 0, // Removable :1; - 0, // Replaceable :1; - 0, // HotSwappable :1; - 0, // Reserved :3; - }, - 6, // LocationInChassis String - 0, // ChassisHandle; - BaseBoardTypeMotherBoard, // BoardType; - 0, // NumberOfContainedObjectHandles; - { 0 } // ContainedObjectHandles[1]; -}; -CHAR8 *mBoardInfoType2Strings[] = { - "edk2.sourceforge.net", - "EmulatorPkg", - "1.0", - "Base Board Serial#", - "Base Board Asset Tag#", - "Part Component", - NULL -}; - - -/*********************************************************************** - SMBIOS data definition TYPE3 Enclosure Information -************************************************************************/ - -SMBIOS_TABLE_TYPE3 mEnclosureInfoType3 = { - { EFI_SMBIOS_TYPE_SYSTEM_ENCLOSURE, sizeof (SMBIOS_TABLE_TYPE3), 0 }, - 1, // Manufacturer String - MiscChassisTypeLapTop, // Type; - 2, // Version String - 3, // SerialNumber String - 4, // AssetTag String - ChassisStateSafe, // BootupState; - ChassisStateSafe, // PowerSupplyState; - ChassisStateSafe, // ThermalState; - ChassisSecurityStatusNone,// SecurityStatus; - { 0, 0, 0, 0 }, // OemDefined[4]; - 0, // Height; - 0, // NumberofPowerCords; - 0, // ContainedElementCount; - 0, // ContainedElementRecordLength; - { 0 }, // ContainedElements[1]; -}; -CHAR8 *mEnclosureInfoType3Strings[] = { - "edk2.sourceforge.net", - "EmulatorPkg", - "Chassis Board Serial#", - "Chassis Board Asset Tag#", - NULL -}; - - - -/*********************************************************************** - SMBIOS data definition TYPE4 Processor Information -************************************************************************/ - -SMBIOS_TABLE_TYPE4 mProcessorInfoType4 = { - - { EFI_SMBIOS_TYPE_PROCESSOR_INFORMATION, sizeof (SMBIOS_TABLE_TYPE4), 0}, - - 1, // Socket String - ProcessorOther, // ProcessorType; ///< The enumeration value from PROCESSOR_TYPE_DATA. - ProcessorFamilyOther, // ProcessorFamily; ///< The enumeration value from PROCESSOR_FAMILY_DATA. - 2, // ProcessorManufacture String; - { // ProcessorId; - { // PROCESSOR_SIGNATURE - 0, // ProcessorSteppingId:4; - 0, // ProcessorModel: 4; - 0, // ProcessorFamily: 4; - 0, // ProcessorType: 2; - 0, // ProcessorReserved1: 2; - 0, // ProcessorXModel: 4; - 0, // ProcessorXFamily: 8; - 0, // ProcessorReserved2: 4; - }, - - { // PROCESSOR_FEATURE_FLAGS - 0, // ProcessorFpu :1; - 0, // ProcessorVme :1; - 0, // ProcessorDe :1; - 0, // ProcessorPse :1; - 0, // ProcessorTsc :1; - 0, // ProcessorMsr :1; - 0, // ProcessorPae :1; - 0, // ProcessorMce :1; - 0, // ProcessorCx8 :1; - 0, // ProcessorApic :1; - 0, // ProcessorReserved1 :1; - 0, // ProcessorSep :1; - 0, // ProcessorMtrr :1; - 0, // ProcessorPge :1; - 0, // ProcessorMca :1; - 0, // ProcessorCmov :1; - 0, // ProcessorPat :1; - 0, // ProcessorPse36 :1; - 0, // ProcessorPsn :1; - 0, // ProcessorClfsh :1; - 0, // ProcessorReserved2 :1; - 0, // ProcessorDs :1; - 0, // ProcessorAcpi :1; - 0, // ProcessorMmx :1; - 0, // ProcessorFxsr :1; - 0, // ProcessorSse :1; - 0, // ProcessorSse2 :1; - 0, // ProcessorSs :1; - 0, // ProcessorReserved3 :1; - 0, // ProcessorTm :1; - 0, // ProcessorReserved4 :2; - } - }, - 3, // ProcessorVersion String; - { // Voltage; - 1, // ProcessorVoltageCapability5V :1; - 1, // ProcessorVoltageCapability3_3V :1; - 1, // ProcessorVoltageCapability2_9V :1; - 0, // ProcessorVoltageCapabilityReserved :1; ///< Bit 3, must be zero. - 0, // ProcessorVoltageReserved :3; ///< Bits 4-6, must be zero. - 0 // ProcessorVoltageIndicateLegacy :1; - }, - 0, // ExternalClock; - 0, // MaxSpeed; - 0, // CurrentSpeed; - 0x41, // Status; - ProcessorUpgradeOther, // ProcessorUpgrade; ///< The enumeration value from PROCESSOR_UPGRADE. - 0, // L1CacheHandle; - 0, // L2CacheHandle; - 0, // L3CacheHandle; - 4, // SerialNumber; - 5, // AssetTag; - 6, // PartNumber; - 0, // CoreCount; - 0, // EnabledCoreCount; - 0, // ThreadCount; - 0, // ProcessorCharacteristics; - 0, // ProcessorFamily2; -}; - - -CHAR8 *mProcessorInfoType4Strings[] = { - "Socket", - "edk2.svn.sourceforge.net", - "Emulated Processor", - "1.0", - "1.0", - "1.0", - NULL -}; - - -/*********************************************************************** - SMBIOS data definition TYPE7 Cache Information -************************************************************************/ - -SMBIOS_TABLE_TYPE7 mCacheInfoType7 = { - { EFI_SMBIOS_TYPE_CACHE_INFORMATION, sizeof (SMBIOS_TABLE_TYPE7), 0 }, - 1, // SocketDesignation String - 0x018A, // Cache Configuration - 0x00FF, // Maximum Size 256k - 0x00FF, // Install Size 256k - { // Supported SRAM Type - 0, //Other :1 - 0, //Unknown :1 - 0, //NonBurst :1 - 1, //Burst :1 - 0, //PiplelineBurst :1 - 1, //Synchronous :1 - 0, //Asynchronous :1 - 0 //Reserved :9 - }, - { // Current SRAM Type - 0, //Other :1 - 0, //Unknown :1 - 0, //NonBurst :1 - 1, //Burst :1 - 0, //PiplelineBurst :1 - 1, //Synchronous :1 - 0, //Asynchronous :1 - 0 //Reserved :9 - }, - 0, // Cache Speed unknown - CacheErrorMultiBit, // Error Correction Multi - CacheTypeUnknown, // System Cache Type - CacheAssociativity2Way // Associativity -}; -CHAR8 *mCacheInfoType7Strings[] = { - "Cache1", - NULL -}; - - -/*********************************************************************** - SMBIOS data definition TYPE9 System Slot Information -************************************************************************/ - -SMBIOS_TABLE_TYPE9 mSysSlotInfoType9 = { - { EFI_SMBIOS_TYPE_SYSTEM_SLOTS, sizeof (SMBIOS_TABLE_TYPE9), 0 }, - 1, // SlotDesignation String - SlotTypeOther, // SlotType; ///< The enumeration value from MISC_SLOT_TYPE. - SlotDataBusWidthOther, // SlotDataBusWidth; ///< The enumeration value from MISC_SLOT_DATA_BUS_WIDTH. - SlotUsageAvailable, // CurrentUsage; ///< The enumeration value from MISC_SLOT_USAGE. - SlotLengthOther, // SlotLength; ///< The enumeration value from MISC_SLOT_LENGTH. - 0, // SlotID; - { // SlotCharacteristics1; - 1, // CharacteristicsUnknown :1; - 0, // Provides50Volts :1; - 0, // Provides33Volts :1; - 0, // SharedSlot :1; - 0, // PcCard16Supported :1; - 0, // CardBusSupported :1; - 0, // ZoomVideoSupported :1; - 0, // ModemRingResumeSupported:1; - }, - { // SlotCharacteristics2; - 0, // PmeSignalSupported :1; - 0, // HotPlugDevicesSupported :1; - 0, // SmbusSignalSupported :1; - 0, // Reserved :5; ///< Set to 0. - }, - 0, // SegmentGroupNum; - 0, // BusNum; - 0, // DevFuncNum; -}; -CHAR8 *mSysSlotInfoType9Strings[] = { - "SD Card", - NULL -}; - -/*********************************************************************** - SMBIOS data definition TYPE16 Physical Memory ArrayInformation -************************************************************************/ - -SMBIOS_TABLE_TYPE16 mPhyMemArrayInfoType16 = { - { EFI_SMBIOS_TYPE_PHYSICAL_MEMORY_ARRAY, sizeof (SMBIOS_TABLE_TYPE16), 0 }, - MemoryArrayLocationSystemBoard, // Location; ///< The enumeration value from MEMORY_ARRAY_LOCATION. - MemoryArrayUseSystemMemory, // Use; ///< The enumeration value from MEMORY_ARRAY_USE. - MemoryErrorCorrectionUnknown, // MemoryErrorCorrection; ///< The enumeration value from MEMORY_ERROR_CORRECTION. - 0x80000000, // MaximumCapacity; - 0xFFFE, // MemoryErrorInformationHandle; - 1, // NumberOfMemoryDevices; - 0x3fffffffffffffffULL, // ExtendedMaximumCapacity; -}; -CHAR8 *mPhyMemArrayInfoType16Strings[] = { - NULL -}; - -/*********************************************************************** - SMBIOS data definition TYPE17 Memory Device Information -************************************************************************/ - -SMBIOS_TABLE_TYPE17 mMemDevInfoType17 = { - { EFI_SMBIOS_TYPE_MEMORY_DEVICE, sizeof (SMBIOS_TABLE_TYPE17), 0 }, - 0, // MemoryArrayHandle; - 0xFFFE, // MemoryErrorInformationHandle; - 0xFFFF, // TotalWidth; - 0xFFFF, // DataWidth; - 0xFFFF, // Size; - MemoryFormFactorUnknown, // FormFactor; ///< The enumeration value from MEMORY_FORM_FACTOR. - 0xff, // DeviceSet; - 1, // DeviceLocator String - 2, // BankLocator String - MemoryTypeDram, // MemoryType; ///< The enumeration value from MEMORY_DEVICE_TYPE. - { // TypeDetail; - 0, // Reserved :1; - 0, // Other :1; - 1, // Unknown :1; - 0, // FastPaged :1; - 0, // StaticColumn :1; - 0, // PseudoStatic :1; - 0, // Rambus :1; - 0, // Synchronous :1; - 0, // Cmos :1; - 0, // Edo :1; - 0, // WindowDram :1; - 0, // CacheDram :1; - 0, // Nonvolatile :1; - 0, // Registered :1; - 0, // Unbuffered :1; - 0, // Reserved1 :1; - }, - 0, // Speed; - 3, // Manufacturer String - 0, // SerialNumber String - 0, // AssetTag String - 0, // PartNumber String - 0, // Attributes; - 0, // ExtendedSize; - 0, // ConfiguredMemoryClockSpeed; -}; -CHAR8 *mMemDevInfoType17Strings[] = { - "OS Virtual Memory", - "malloc", - "OSV", - NULL -}; - -/*********************************************************************** - SMBIOS data definition TYPE19 Memory Array Mapped Address Information -************************************************************************/ - -SMBIOS_TABLE_TYPE19 mMemArrMapInfoType19 = { - { EFI_SMBIOS_TYPE_MEMORY_ARRAY_MAPPED_ADDRESS, sizeof (SMBIOS_TABLE_TYPE19), 0 }, - 0x80000000, // StartingAddress; - 0xbfffffff, // EndingAddress; - 0, // MemoryArrayHandle; - 1, // PartitionWidth; - 0, // ExtendedStartingAddress; - 0, // ExtendedEndingAddress; -}; -CHAR8 *mMemArrMapInfoType19Strings[] = { - NULL -}; - - - - -/*********************************************************************** - SMBIOS data definition TYPE32 Boot Information -************************************************************************/ - -SMBIOS_TABLE_TYPE32 mBootInfoType32 = { - { EFI_SMBIOS_TYPE_SYSTEM_BOOT_INFORMATION, sizeof (SMBIOS_TABLE_TYPE32), 0 }, - { 0, 0, 0, 0, 0, 0 }, // Reserved[6]; - BootInformationStatusNoError // BootStatus -}; - -CHAR8 *mBootInfoType32Strings[] = { - NULL -}; - - -/** - - Create SMBIOS record. - - Converts a fixed SMBIOS structure and an array of pointers to strings into - an SMBIOS record where the strings are cat'ed on the end of the fixed record - and terminated via a double NULL and add to SMBIOS table. - - SMBIOS_TABLE_TYPE32 gSmbiosType12 = { - { EFI_SMBIOS_TYPE_SYSTEM_CONFIGURATION_OPTIONS, sizeof (SMBIOS_TABLE_TYPE12), 0 }, - 1 // StringCount - }; - - CHAR8 *gSmbiosType12Strings[] = { - "Not Found", - NULL - }; - - ... - - LogSmbiosData ( - (EFI_SMBIOS_TABLE_HEADER*)&gSmbiosType12, - gSmbiosType12Strings - ); - - @param Template Fixed SMBIOS structure, required. - @param StringArray Array of strings to convert to an SMBIOS string pack. - NULL is OK. -**/ - - -EFI_STATUS -EFIAPI -LogSmbiosData ( - IN EFI_SMBIOS_TABLE_HEADER *Template, - IN CHAR8 **StringPack - ) -{ - - EFI_STATUS Status; - EFI_SMBIOS_PROTOCOL *Smbios; - EFI_SMBIOS_HANDLE SmbiosHandle; - EFI_SMBIOS_TABLE_HEADER *Record; - UINTN Index; - UINTN StringSize; - UINTN Size; - CHAR8 *Str; - - // - // Locate Smbios protocol. - // - - Status = gBS->LocateProtocol (&gEfiSmbiosProtocolGuid, NULL, (VOID **)&Smbios); - - if (EFI_ERROR (Status)) { - - return Status; - - } - - - // Calculate the size of the fixed record and optional string pack - - Size = Template->Length; - - if (StringPack == NULL) { - - // At least a double null is required - - Size += 2; - - } else { - - for (Index = 0; StringPack[Index] != NULL; Index++) { - - StringSize = AsciiStrSize (StringPack[Index]); - - Size += StringSize; - - } - - if (StringPack[0] == NULL) { - - // At least a double null is required - - Size += 1; - - } - - // Don't forget the terminating double null - - Size += 1; - - } - - - - // Copy over Template - Record = (EFI_SMBIOS_TABLE_HEADER *)AllocateZeroPool (Size); - - if (Record == NULL) { - - return EFI_OUT_OF_RESOURCES; - - } - - CopyMem (Record, Template, Template->Length); - - - - // Append string pack - - Str = ((CHAR8 *)Record) + Record->Length; - - - - for (Index = 0; StringPack[Index] != NULL; Index++) { - - StringSize = AsciiStrSize (StringPack[Index]); - - CopyMem (Str, StringPack[Index], StringSize); - - Str += StringSize; - - } - - *Str = 0; - - SmbiosHandle = SMBIOS_HANDLE_PI_RESERVED; - - Status = Smbios->Add ( - Smbios, - gImageHandle, - &SmbiosHandle, - Record - ); - - ASSERT_EFI_ERROR (Status); - - FreePool (Record); - - return Status; - -} - - - -/*********************************************************************** - SMBIOS data update TYPE0 BIOS Information -************************************************************************/ - - -VOID -BIOSInfoUpdateSmbiosType0 ( - VOID - ) - -{ - - LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER *)&mBIOSInfoType0, mBIOSInfoType0Strings); - -} - - - -/*********************************************************************** - SMBIOS data update TYPE1 System Information -************************************************************************/ -VOID -SysInfoUpdateSmbiosType1 ( - VOID - ) - -{ - - LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER *)&mSysInfoType1, mSysInfoType1Strings); - -} - -/*********************************************************************** - SMBIOS data update TYPE2 Board Information -************************************************************************/ -VOID -BoardInfoUpdateSmbiosType2 ( - VOID - ) - -{ - - LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER *)&mBoardInfoType2, mBoardInfoType2Strings); - -} - -/*********************************************************************** - SMBIOS data update TYPE3 Enclosure Information -************************************************************************/ -VOID -EnclosureInfoUpdateSmbiosType3 ( - VOID - ) - -{ - - LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER *)&mEnclosureInfoType3, mEnclosureInfoType3Strings); - -} - - -/*********************************************************************** - SMBIOS data update TYPE4 Processor Information -************************************************************************/ - - -VOID - -ProcessorInfoUpdateSmbiosType4 ( - - IN UINTN MaxCpus - - ) - -{ - - mProcessorInfoType4.CoreCount = (UINT8) MaxCpus; - - mProcessorInfoType4.EnabledCoreCount = (UINT8) MaxCpus; - - mProcessorInfoType4.ThreadCount = (UINT8) MaxCpus; - - - - LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER *)&mProcessorInfoType4, mProcessorInfoType4Strings); - -} - - -/*********************************************************************** - SMBIOS data update TYPE7 Cache Information -************************************************************************/ -VOID -CacheInfoUpdateSmbiosType7 ( - VOID - ) - -{ - - LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER *)&mCacheInfoType7, mCacheInfoType7Strings); - -} - -/*********************************************************************** - SMBIOS data update TYPE9 System Slot Information -************************************************************************/ -VOID -SysSlotInfoUpdateSmbiosType9 ( - VOID - ) - -{ - - LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER *)&mSysSlotInfoType9, mSysSlotInfoType9Strings); - -} - -/*********************************************************************** - SMBIOS data update TYPE16 Physical Memory Array Information -************************************************************************/ -VOID -PhyMemArrayInfoUpdateSmbiosType16 ( - VOID - ) - -{ - - LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER *)&mPhyMemArrayInfoType16, mPhyMemArrayInfoType16Strings); - -} - -/*********************************************************************** - SMBIOS data update TYPE17 Memory Device Information -************************************************************************/ -VOID -MemDevInfoUpdateSmbiosType17 ( - VOID - ) - -{ - - LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER *)&mMemDevInfoType17, mMemDevInfoType17Strings); - -} - -/*********************************************************************** - SMBIOS data update TYPE19 Memory Array Map Information -************************************************************************/ -VOID -MemArrMapInfoUpdateSmbiosType19 ( - VOID - ) - -{ - - LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER *)&mMemArrMapInfoType19, mMemArrMapInfoType19Strings); - -} - - -/*********************************************************************** - SMBIOS data update TYPE32 Boot Information -************************************************************************/ -VOID -BootInfoUpdateSmbiosType32 ( - VOID - ) - -{ - - LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER *)&mBootInfoType32, mBootInfoType32Strings); - -} - - -/*********************************************************************** - Driver Entry -************************************************************************/ - -EFI_STATUS - -EFIAPI - -UpdateSmbios ( - - IN EFI_HANDLE ImageHandle, - - IN EFI_SYSTEM_TABLE *SystemTable - - ) - -{ - - BIOSInfoUpdateSmbiosType0(); - - SysInfoUpdateSmbiosType1(); - - BoardInfoUpdateSmbiosType2(); - - EnclosureInfoUpdateSmbiosType3(); - - ProcessorInfoUpdateSmbiosType4 (2); - - CacheInfoUpdateSmbiosType7(); - - SysSlotInfoUpdateSmbiosType9(); - - PhyMemArrayInfoUpdateSmbiosType16(); - - MemDevInfoUpdateSmbiosType17(); - - MemArrMapInfoUpdateSmbiosType19(); - - BootInfoUpdateSmbiosType32(); - - return EFI_SUCCESS; - -} diff --git a/ArmPkg/Drivers/UpdateSmbios/UpdateSmbios.h b/ArmPkg/Drivers/UpdateSmbios/UpdateSmbios.h deleted file mode 100644 index 620ccd528..000000000 --- a/ArmPkg/Drivers/UpdateSmbios/UpdateSmbios.h +++ /dev/null @@ -1,42 +0,0 @@ -/** @file - -Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR> -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 _UPDATE_SMBIOS_DRIVER_H_ -#define _UPDATE_SMBIOS_DRIVER_H_ - - -#include <PiDxe.h> -#include <Protocol/Smbios.h> -#include <IndustryStandard/SmBios.h> -#include <Guid/SmBios.h> -#include <Library/DebugLib.h> -#include <Library/UefiDriverEntryPoint.h> -#include <Library/UefiLib.h> -#include <Library/BaseLib.h> -#include <Library/BaseMemoryLib.h> -#include <Library/MemoryAllocationLib.h> -#include <Library/UefiBootServicesTableLib.h> -#include <Library/PcdLib.h> - - -EFI_STATUS -EFIAPI -UpdateSmbios ( - IN EFI_HANDLE ImageHandle, - IN EFI_SYSTEM_TABLE *SystemTable - ); -#endif - diff --git a/ArmPkg/Drivers/UpdateSmbios/UpdateSmbios.inf b/ArmPkg/Drivers/UpdateSmbios/UpdateSmbios.inf deleted file mode 100644 index 36552fd1e..000000000 --- a/ArmPkg/Drivers/UpdateSmbios/UpdateSmbios.inf +++ /dev/null @@ -1,49 +0,0 @@ -## @file -# -# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR> -# -# 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. -# -## - -[Defines] - INF_VERSION = 0x00010005 - BASE_NAME = UpdateSmbios - FILE_GUID = 3847D23F-1D95-4772-B60C-4BBFBC4D532F - MODULE_TYPE = DXE_DRIVER - VERSION_STRING = 1.0 - ENTRY_POINT = UpdateSmbios - -[Sources] - UpdateSmbios.c - UpdateSmbios.h - -[Packages] - MdePkg/MdePkg.dec - MdeModulePkg/MdeModulePkg.dec - ArmPlatformPkg/ArmPlatformPkg.dec - -[LibraryClasses] - UefiBootServicesTableLib - MemoryAllocationLib - BaseMemoryLib - BaseLib - UefiLib - UefiDriverEntryPoint - DebugLib - PcdLib - -[Protocols] - gEfiSmbiosProtocolGuid # PROTOCOL SOMETIMES_CONSUMED - -[Guids] - -[Depex] - gEfiSmbiosProtocolGuid - |