]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/IndustryStandard/HighPrecisionEventTimerTable.h
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / HighPrecisionEventTimerTable.h
index 37dda9fb614861a298177cc974b89cc9a2ecdfdf..168770ff6b9c88371573d4f5f646bc749098d365 100644 (file)
@@ -1,16 +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
+  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
-  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
+  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 **/\r
 \r
 #ifndef _HIGH_PRECISION_EVENT_TIMER_TABLE_H_\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
@@ -34,9 +44,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