]>
Commit | Line | Data |
---|---|---|
42eedea9 | 1 | /** @file\r |
568eb0cb | 2 | ACPI high precision event timer table definition, defined at \r |
3 | ftp://download.intel.com/labs/platcomp/hpet/download/hpetspec098a.pdf.\r | |
4 | Specification name is IA-PC HPET (High Precision Event Timers) Specification.\r | |
5 | \r | |
6 | Copyright (c) 2007, Intel Corporation\r | |
7 | All rights reserved. This program and the accompanying materials \r | |
8 | are licensed and made available under the terms and conditions of the BSD License \r | |
9 | which accompanies this distribution. The full text of the license may be found at \r | |
10 | http://opensource.org/licenses/bsd-license.php \r | |
11 | \r | |
12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
13 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
14 | **/\r | |
15 | \r | |
16 | #ifndef _HIGH_PRECISION_EVENT_TIMER_TABLE_H_\r | |
17 | #define _HIGH_PRECISION_EVENT_TIMER_TABLE_H_\r | |
18 | \r | |
ecc40942 | 19 | #include <IndustryStandard/Acpi.h>\r |
20 | \r | |
568eb0cb | 21 | //\r |
22 | // Ensure proper structure formats\r | |
23 | //\r | |
24 | #pragma pack(1)\r | |
1bc5d021 | 25 | \r |
26 | ///\r | |
27 | /// High Precision Event Timer Table header definition.\r | |
28 | ///\r | |
568eb0cb | 29 | typedef struct {\r |
30 | EFI_ACPI_DESCRIPTION_HEADER Header;\r | |
31 | UINT32 EventTimerBlockId;\r | |
32 | EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE BaseAddressLower32Bit;\r | |
33 | UINT8 HpetNumber;\r | |
34 | UINT16 MainCounterMinimumClockTickInPeriodicMode;\r | |
35 | UINT8 PageProtectionAndOemAttribute;\r | |
36 | } EFI_ACPI_HIGH_PRECISION_EVENT_TIMER_TABLE_HEADER;\r | |
37 | \r | |
1bc5d021 | 38 | ///\r |
39 | /// HPET Revision (defined in spec)\r | |
40 | ///\r | |
568eb0cb | 41 | #define EFI_ACPI_HIGH_PRECISION_EVENT_TIMER_TABLE_REVISION 0x01\r |
42 | \r | |
43 | //\r | |
44 | // Page protection setting\r | |
45 | // Values 3 through 15 are reserved for use by the specification\r | |
46 | //\r | |
47 | #define EFI_ACPI_NO_PAGE_PROTECTION 0\r | |
48 | #define EFI_ACPI_4KB_PAGE_PROTECTION 1\r | |
49 | #define EFI_ACPI_64KB_PAGE_PROTECTION 2\r | |
50 | \r | |
51 | #pragma pack()\r | |
52 | \r | |
53 | #endif\r |