]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Include/IndustryStandard/WatchdogDescriptionTable.h
Program SD Cards into 4-bit mode (support for this is required in the spec). This...
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Include / IndustryStandard / WatchdogDescriptionTable.h
CommitLineData
3eb9473e 1/*++\r
2\r
f57387d5
HT
3Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
3eb9473e 5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 WatchdogDescriptionTable.h\r
15\r
16Abstract:\r
17\r
18 ACPI Watchdog Description Table as defined in Intel\r
19 ICH Family Watchdog Timer (WDT) Application Note (AP-725)\r
20\r
21--*/\r
22\r
23#ifndef _WATCH_DOG_DESCRIPTION_TABLE_H_\r
24#define _WATCH_DOG_DESCRIPTION_TABLE_H_\r
25\r
26//\r
27// Include files\r
28//\r
29#include "Acpi2_0.h"\r
30\r
31//\r
32// Ensure proper structure formats\r
33//\r
34#pragma pack(1)\r
35//\r
36// WDDT structure\r
37//\r
38typedef struct {\r
39 EFI_ACPI_DESCRIPTION_HEADER Header;\r
40 UINT16 SpecVersion;\r
41 UINT16 TableVersion;\r
42 UINT16 Vid;\r
43 EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE BaseAddress;\r
44 UINT16 TimerMaxCount;\r
45 UINT16 TimerMinCount;\r
46 UINT16 TimerCountPeriod;\r
47 UINT16 Status;\r
48 UINT16 Capability;\r
49} EFI_ACPI_1_0_WATCH_DOG_DESCRIPTION_TABLE;\r
50\r
51//\r
52// "WDDT" Watchdog Description Table signatures\r
53//\r
54#define EFI_ACPI_1_0_WDDT_SIGNATURE 0x54444457\r
55\r
56#pragma pack()\r
57\r
58//\r
59// WDDT Revision\r
60//\r
61#define EFI_ACPI_WATCHDOG_DESCRIPTION_1_0_TABLE_REVISION 0x01\r
62\r
63//\r
64// WDDT Spec Version\r
65//\r
66#define EFI_ACPI_WDDT_SPEC_1_0_VERSION 0x01\r
67\r
68//\r
69// WDDT Description Table Version\r
70//\r
71#define EFI_ACPI_WDDT_TABLE_1_0_VERSION 0x01\r
72\r
73//\r
74// WDT Status\r
75//\r
76#define EFI_ACPI_WDDT_STATUS_AVAILABLE 0x0001\r
77#define EFI_ACPI_WDDT_STATUS_ACTIVE 0x0002\r
78#define EFI_ACPI_WDDT_STATUS_OWNED_BY_BIOS 0x0000\r
79#define EFI_ACPI_WDDT_STATUS_OWNED_BY_OS 0x0004\r
80#define EFI_ACPI_WDDT_STATUS_USER_RESET_EVENT 0x0800\r
81#define EFI_ACPI_WDDT_STATUS_WDT_EVENT 0x1000\r
82#define EFI_ACPI_WDDT_STATUS_POWER_FAIL_EVENT 0x2000\r
83#define EFI_ACPI_WDDT_STATUS_UNKNOWN_RESET_EVENT 0x4000\r
84\r
85//\r
86// WDT Capability\r
87//\r
88#define EFI_ACPI_WDDT_CAPABILITY_AUTO_RESET 0x0001\r
89#define EFI_ACPI_WDDT_CAPABILITY_ALERT_SUPPORT 0x0002\r
90#define EFI_ACPI_WDDT_CAPABILITY_PLATFORM_SHUTDOWN 0x0004\r
91#define EFI_ACPI_WDDT_CAPABILITY_IMMEDIATE_SHUTDOWN 0x0008\r
92#define EFI_ACPI_WDDT_CAPABILITY_BIOS_HANDOFF_SUPPORT 0x0010\r
93\r
94#endif\r