3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials are licensed and made available under
6 the terms and conditions of the BSD License that accompanies this distribution.
7 The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 This is an implementation of the ACPI platform driver. Requirements for
21 this driver are defined in the Tiano ACPI External Product Specification,
26 #ifndef _ACPI_PLATFORM_HOOKS_H_
27 #define _ACPI_PLATFORM_HOOKS_H_
30 // Statements that include other header files
33 #include <IndustryStandard/Acpi.h>
35 #include <Protocol/EnhancedSpeedstep.h>
37 #define AML_NAME_OP 0x08
38 #define AML_METHOD_OP 0x14
39 #define AML_OPREGION_OP 0x80
40 #define AML_PACKAGE_OP 0x12 // Package operator.
41 #define AML_NAME_PREFIX_SIZE 0x06
42 #define AML_NAME_DWORD_SIZE 0x0C
47 UINT8 AcpiProcessorId
;
57 } EFI_ACPI_NAMEPACK_DWORD
;
63 UINT16 Size
; // Hardcode to 16bit width because the table we use is fixed size
65 } EFI_ACPI_NAME_COMMAND
;
103 #define ACPI_NAME_COMMAND_FROM_NAME_STR(a) BASE_CR (a, EFI_ACPI_NAME_COMMAND, NameStr)
104 #define ACPI_NAME_COMMAND_FROM_NAMEPACK_STR(a) BASE_CR (a, EFI_ACPI_NAMEPACK_DWORD, NameStr)
114 IN OUT EFI_ACPI_DESCRIPTION_HEADER
*TableHeader
119 IN OUT EFI_ACPI_DESCRIPTION_HEADER
*Table
124 IN OUT EFI_ACPI_DESCRIPTION_HEADER
*Table
128 AppendCpuMapTableEntry (
129 IN EFI_ACPI_2_0_PROCESSOR_LOCAL_APIC_STRUCTURE
*AcpiLocalApic