]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/IndustryStandard/HighPrecisionEventTimerTable.h
MdePkg: TpmPtp: Add CapCRBIdleBypass definition
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / HighPrecisionEventTimerTable.h
index 95648396bac84c59db6d905f4e55f6f11f4e7424..6218a77c543c80453f53cbae293bfee80fea9d52 100644 (file)
@@ -1,10 +1,9 @@
-/**@file\r
-  ACPI high precision event timer table definition, defined at \r
-  ftp://download.intel.com/labs/platcomp/hpet/download/hpetspec098a.pdf.\r
+/** @file\r
+  ACPI high precision event timer table definition, at www.intel.com\r
   Specification name is IA-PC HPET (High Precision Event Timers) Specification.\r
     \r
-  Copyright (c) 2007, Intel Corporation\r
-  All rights reserved. This program and the accompanying materials                          \r
+  Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved.<BR>\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
 #ifndef _HIGH_PRECISION_EVENT_TIMER_TABLE_H_\r
 #define _HIGH_PRECISION_EVENT_TIMER_TABLE_H_\r
 \r
+#include <IndustryStandard/Acpi.h>\r
+\r
 //\r
 // Ensure proper structure formats\r
 //\r
 #pragma pack(1)\r
-//\r
-// High Precision Event Timer Table header definition.\r
-//\r
+\r
+///\r
+/// HPET Event Timer Block ID described in IA-PC HPET Specification, 3.2.4.\r
+///\r
+typedef union {\r
+  struct {\r
+    UINT32 Revision       : 8;\r
+    UINT32 NumberOfTimers : 5;\r
+    UINT32 CounterSize    : 1;\r
+    UINT32 Reserved       : 1;\r
+    UINT32 LegacyRoute    : 1;\r
+    UINT32 VendorId       : 16;\r
+  }      Bits;\r
+  UINT32 Uint32;\r
+} EFI_ACPI_HIGH_PRECISION_EVENT_TIMER_BLOCK_ID;\r
+\r
+\r
+///\r
+/// High Precision Event Timer Table header definition.\r
+///\r
 typedef struct {\r
   EFI_ACPI_DESCRIPTION_HEADER             Header;\r
   UINT32                                  EventTimerBlockId;\r
@@ -32,9 +50,9 @@ typedef struct {
   UINT8                                   PageProtectionAndOemAttribute;\r
 } EFI_ACPI_HIGH_PRECISION_EVENT_TIMER_TABLE_HEADER;\r
 \r
-//\r
-// HPET Revision (defined in spec)\r
-//\r
+///\r
+/// HPET Revision (defined in spec)\r
+///\r
 #define EFI_ACPI_HIGH_PRECISION_EVENT_TIMER_TABLE_REVISION  0x01\r
 \r
 //\r