]> git.proxmox.com Git - mirror_edk2.git/blobdiff - QuarkPlatformPkg/Acpi/AcpiTables/Hpet/Hpet.aslc
QuarkPlatformPkg: Add new package for Galileo boards
[mirror_edk2.git] / QuarkPlatformPkg / Acpi / AcpiTables / Hpet / Hpet.aslc
diff --git a/QuarkPlatformPkg/Acpi/AcpiTables/Hpet/Hpet.aslc b/QuarkPlatformPkg/Acpi/AcpiTables/Hpet/Hpet.aslc
new file mode 100644 (file)
index 0000000..19497ef
--- /dev/null
@@ -0,0 +1,74 @@
+/** @file\r
+This file contains a structure definition for the ACPI 1.0 High Precision Event Timer\r
+Description Table (HPET).  The contents of this file should only be modified\r
+for bug fixes, no porting is required.  The table layout is defined in\r
+HighPrecisionEventTimerTable.h and the table contents are defined in Acpi1.0.h and Hpet.h.\r
+\r
+Copyright (c) 2013-2015 Intel Corporation.\r
+\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+//\r
+// Statements that include other files\r
+//\r
+\r
+#include "Hpet.h"\r
+\r
+//\r
+// High Precision Event Timer Table\r
+// Please modify all values in Hpet.h only.\r
+//\r
+\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
+\r
+    //\r
+    // Checksum will be updated at runtime\r
+    //\r
+    0x00,\r
+\r
+    //\r
+    // It is expected that these values will be updated at runtime\r
+    //\r
+    {' ', ' ', ' ', ' ', ' ', ' '},\r
+\r
+    0,\r
+    EFI_ACPI_OEM_HPET_REVISION,\r
+    0,\r
+    0\r
+  },\r
+  EFI_ACPI_EVENT_TIMER_BLOCK_ID,\r
+  {\r
+    EFI_ACPI_EVENT_TIMER_BLOCK_ADDRESS_SPACE_ID,\r
+    EFI_ACPI_EVENT_TIMER_BLOCK_BIT_WIDTH,\r
+    EFI_ACPI_EVENT_TIMER_BLOCK_BIT_OFFSET,\r
+    EFI_ACPI_EVENT_TIMER_ACCESS_SIZE,\r
+    ACPI_RUNTIME_UPDATE\r
+  },\r
+  EFI_ACPI_HPET_NUMBER,\r
+  EFI_ACPI_MIN_CLOCK_TICK,\r
+  EFI_ACPI_HPET_ATTRIBUTES\r
+};\r
+\r
+VOID*\r
+ReferenceAcpiTable (\r
+  VOID\r
+  )\r
+{\r
+  //\r
+  // Reference the table being generated to prevent the optimizer from removing the\r
+  // data structure from the exeutable\r
+  //\r
+  return (VOID*)&Hpet;\r
+}\r