diff options
author | Yi Li <yi.li@linaro.org> | 2013-09-26 11:00:33 -0500 |
---|---|---|
committer | Leif Lindholm <leif.lindholm@linaro.org> | 2014-01-24 15:45:19 +0000 |
commit | ab49dde065574297dd5a3ea0ce71fa16df53561f (patch) | |
tree | cf2eb3f9de6c8dec27438005757aee7e2552aa96 /ArmPkg/Drivers/AcpiTables/exynos5250-arndale/Uefi.aslc | |
parent | 8ba9e9e7987c29aed43afc736f90602be047ab17 (diff) |
ACPI:Convert the table and asl from acpi-asl
Convert the tables and asl code from acpi-asl[
https://git.linaro.org/gitweb?p=arm/acpi/acpi-asl.git;a=summary]
Add Arndale/Foundation-V8/RTSM-V8/RTSM-V7 ACPI source.
Signed-off-by: Yi Li <yi.li@linaro.org>
Signed-off-by: Steven Kinney <steven.kinney@linaro.org>
Diffstat (limited to 'ArmPkg/Drivers/AcpiTables/exynos5250-arndale/Uefi.aslc')
-rw-r--r-- | ArmPkg/Drivers/AcpiTables/exynos5250-arndale/Uefi.aslc | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/ArmPkg/Drivers/AcpiTables/exynos5250-arndale/Uefi.aslc b/ArmPkg/Drivers/AcpiTables/exynos5250-arndale/Uefi.aslc new file mode 100644 index 000000000..c3bbce3ed --- /dev/null +++ b/ArmPkg/Drivers/AcpiTables/exynos5250-arndale/Uefi.aslc @@ -0,0 +1,57 @@ +/* + * 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; +} |