1 /*++ 2 3 Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved 4 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. 9 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. 12 13 14 15 Module Name: 16 17 Ea815acpiFACS.c 18 19 20 Abstract: 21 22 This file contains the FACS structure definition. 23 24 --*/ 25 26 // 27 // Statements that include other files 28 // 29 #ifdef ECP_FLAG 30 #include "EDKIIGlueDxe.h" 31 #else 32 #include <PiDxe.h> 33 #endif 34 #include <IndustryStandard/Acpi50.h> 35 #include "AcpiTablePlatform.h" 36 37 EFI_ACPI_5_0_FIRMWARE_ACPI_CONTROL_STRUCTURE FACS = { 38 EFI_ACPI_5_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE, 39 sizeof (EFI_ACPI_5_0_FIRMWARE_ACPI_CONTROL_STRUCTURE), 40 41 // 42 // Hardware Signature will be updated at runtime 43 // 44 0x00000000, //HardwareSignature 45 0x00000000, //FirmwareWakingVector 46 0x00000000, //GlobalLock 47 0x00000000, //Flags 48 0x0000000000000000, //XFirmwareWakingVector 49 EFI_ACPI_5_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_VERSION, 50 EFI_ACPI_RESERVED_BYTE, //Reserved0[3] 51 EFI_ACPI_RESERVED_BYTE, 52 EFI_ACPI_RESERVED_BYTE, 53 0x00000000, //OspmFlags 54 EFI_ACPI_RESERVED_BYTE, //Reserved1[24] 55 EFI_ACPI_RESERVED_BYTE, 56 EFI_ACPI_RESERVED_BYTE, 57 EFI_ACPI_RESERVED_BYTE, 58 EFI_ACPI_RESERVED_BYTE, 59 EFI_ACPI_RESERVED_BYTE, 60 EFI_ACPI_RESERVED_BYTE, 61 EFI_ACPI_RESERVED_BYTE, 62 EFI_ACPI_RESERVED_BYTE, 63 EFI_ACPI_RESERVED_BYTE, 64 EFI_ACPI_RESERVED_BYTE, 65 EFI_ACPI_RESERVED_BYTE, 66 EFI_ACPI_RESERVED_BYTE, 67 EFI_ACPI_RESERVED_BYTE, 68 EFI_ACPI_RESERVED_BYTE, 69 EFI_ACPI_RESERVED_BYTE, 70 EFI_ACPI_RESERVED_BYTE, 71 EFI_ACPI_RESERVED_BYTE, 72 EFI_ACPI_RESERVED_BYTE, 73 EFI_ACPI_RESERVED_BYTE, 74 EFI_ACPI_RESERVED_BYTE, 75 EFI_ACPI_RESERVED_BYTE, 76 EFI_ACPI_RESERVED_BYTE, 77 EFI_ACPI_RESERVED_BYTE 78 }; 79 80 VOID* 81 ReferenceAcpiTable ( 82 VOID 83 ) 84 { 85 // 86 // Reference the table being generated to prevent the optimizer from 87 // removing the data structure from the executable 88 // 89 return (VOID*)&FACS; 90 } 91