]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | ACPI high precision event timer table definition, at www.intel.com\r | |
3 | Specification name is IA-PC HPET (High Precision Event Timers) Specification.\r | |
4 | \r | |
5 | Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r | |
6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
7 | **/\r | |
8 | \r | |
9 | #ifndef _HIGH_PRECISION_EVENT_TIMER_TABLE_H_\r | |
10 | #define _HIGH_PRECISION_EVENT_TIMER_TABLE_H_\r | |
11 | \r | |
12 | #include <IndustryStandard/Acpi.h>\r | |
13 | \r | |
14 | //\r | |
15 | // Ensure proper structure formats\r | |
16 | //\r | |
17 | #pragma pack(1)\r | |
18 | \r | |
19 | ///\r | |
20 | /// HPET Event Timer Block ID described in IA-PC HPET Specification, 3.2.4.\r | |
21 | ///\r | |
22 | typedef union {\r | |
23 | struct {\r | |
24 | UINT32 Revision : 8;\r | |
25 | UINT32 NumberOfTimers : 5;\r | |
26 | UINT32 CounterSize : 1;\r | |
27 | UINT32 Reserved : 1;\r | |
28 | UINT32 LegacyRoute : 1;\r | |
29 | UINT32 VendorId : 16;\r | |
30 | } Bits;\r | |
31 | UINT32 Uint32;\r | |
32 | } EFI_ACPI_HIGH_PRECISION_EVENT_TIMER_BLOCK_ID;\r | |
33 | \r | |
34 | ///\r | |
35 | /// High Precision Event Timer Table header definition.\r | |
36 | ///\r | |
37 | typedef struct {\r | |
38 | EFI_ACPI_DESCRIPTION_HEADER Header;\r | |
39 | UINT32 EventTimerBlockId;\r | |
40 | EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE BaseAddressLower32Bit;\r | |
41 | UINT8 HpetNumber;\r | |
42 | UINT16 MainCounterMinimumClockTickInPeriodicMode;\r | |
43 | UINT8 PageProtectionAndOemAttribute;\r | |
44 | } EFI_ACPI_HIGH_PRECISION_EVENT_TIMER_TABLE_HEADER;\r | |
45 | \r | |
46 | ///\r | |
47 | /// HPET Revision (defined in spec)\r | |
48 | ///\r | |
49 | #define EFI_ACPI_HIGH_PRECISION_EVENT_TIMER_TABLE_REVISION 0x01\r | |
50 | \r | |
51 | //\r | |
52 | // Page protection setting\r | |
53 | // Values 3 through 15 are reserved for use by the specification\r | |
54 | //\r | |
55 | #define EFI_ACPI_NO_PAGE_PROTECTION 0\r | |
56 | #define EFI_ACPI_4KB_PAGE_PROTECTION 1\r | |
57 | #define EFI_ACPI_64KB_PAGE_PROTECTION 2\r | |
58 | \r | |
59 | #pragma pack()\r | |
60 | \r | |
61 | #endif\r |