VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/IndustryStandard/HighPrecisionEventTimerTable.h

Last change on this file was 99404, checked in by vboxsync, 2 years ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

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

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette