]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/IndustryStandard/WatchdogResourceTable.h
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / WatchdogResourceTable.h
1 /** @file
2 ACPI Watchdog Resource Table (WDRT) as defined at
3 Microsoft Windows Hardware Developer Central.
4
5 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7 **/
8
9 #ifndef _WATCHDOG_RESOURCE_TABLE_H_
10 #define _WATCHDOG_RESOURCE_TABLE_H_
11
12 #include <IndustryStandard/Acpi.h>
13
14 //
15 // Ensure proper structure formats
16 //
17 #pragma pack(1)
18
19 ///
20 /// Watchdog Resource Table definition.
21 ///
22 typedef struct {
23 EFI_ACPI_DESCRIPTION_HEADER Header;
24 EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE ControlRegisterAddress;
25 EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE CountRegisterAddress;
26 UINT16 PCIDeviceID;
27 UINT16 PCIVendorID;
28 UINT8 PCIBusNumber;
29 UINT8 PCIDeviceNumber;
30 UINT8 PCIFunctionNumber;
31 UINT8 PCISegment;
32 UINT16 MaxCount;
33 UINT8 Units;
34 } EFI_ACPI_WATCHDOG_RESOURCE_1_0_TABLE;
35
36 #pragma pack()
37
38 //
39 // WDRT Revision (defined in spec)
40 //
41 #define EFI_ACPI_WATCHDOG_RESOURCE_1_0_TABLE_REVISION 0x01
42
43 //
44 // WDRT 1.0 Count Unit
45 //
46 #define EFI_ACPI_WDRT_1_0_COUNT_UNIT_1_SEC_PER_COUNT 1
47 #define EFI_ACPI_WDRT_1_0_COUNT_UNIT_100_MILLISEC_PER_COUNT 2
48 #define EFI_ACPI_WDRT_1_0_COUNT_UNIT_10_MILLISEC_PER_COUNT 3
49
50 #endif