+++ /dev/null
-/*++\r
-\r
-Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved\r
-\r
- SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
-\r
-\r
-Module Name:\r
-\r
- Hpet.c\r
-\r
-Abstract:\r
-\r
- This file contains a structure definition for the ACPI HPET Table.\r
---*/\r
-\r
-//\r
-// Statements that include other files\r
-//\r
-#ifdef ECP_FLAG\r
-#include <Tiano.h>\r
-#endif\r
-#include <Hpet.h>\r
-#include "AcpiTablePlatform.h"\r
-\r
-// Hpet Table\r
-EFI_ACPI_HIGH_PRECISION_EVENT_TIMER_TABLE_HEADER HPET = {\r
- {\r
- EFI_ACPI_3_0_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE,\r
- sizeof (EFI_ACPI_HIGH_PRECISION_EVENT_TIMER_TABLE_HEADER),\r
- EFI_ACPI_HIGH_PRECISION_EVENT_TIMER_TABLE_REVISION,\r
- 0, // to make sum of entire table == 0\r
- EFI_ACPI_OEM_ID, // OEMID is a 6 bytes long field\r
- EFI_ACPI_OEM_TABLE_ID, // OEM table identification(8 bytes long)\r
- EFI_ACPI_OEM_REVISION, // OEM revision\r
- EFI_ACPI_CREATOR_ID, // ASL compiler vendor ID\r
- EFI_ACPI_CREATOR_REVISION // ASL compiler revision number\r
- },\r
- 0x0, // EventTimerBlockId\r
- {\r
- 0x00, // Address_Space_ID = System Memory\r
- 0x40, // Register_Bit_Width = 32 bits, mentioned about write failures when in 64bit in SCU HAS\r
- 0x00, // Register_Bit_offset\r
- 0x00, // Dword access\r
- HPET_BASE_ADDRESS, // Base addresse of HPET\r
- },\r
- 0x0, // Only HPET's _UID in Namespace\r
- MAIN_COUNTER_MIN_PERIODIC_CLOCK_TICKS,\r
- 0x0\r
-};\r
-\r
-VOID*\r
-ReferenceAcpiTable (\r
- VOID\r
- )\r
-{\r
- //\r
- // Reference the table being generated to prevent the optimizer from\r
- // removing the data structure from the executable\r
- //\r
- return (VOID*)&HPET;\r
-}\r