]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2DeviceRefCodePkg/ValleyView2Soc/SouthCluster/Include/Protocol/TcoReset.h
Vlv2DeviceRefCodePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / Vlv2DeviceRefCodePkg / ValleyView2Soc / SouthCluster / Include / Protocol / TcoReset.h
CommitLineData
3cbfba02
DW
1/*++\r
2\r
3Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved\r
4\r
7ede8060 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
3cbfba02
DW
6\r
7\r
8\r
9Module Name:\r
10\r
11 TcoReset.h\r
12\r
13Abstract:\r
14\r
15 Protocol to communicate with ICH TCO.\r
16\r
17GUID Info:\r
18 {A6A79162-E325-4c30-BCC3-59373064EFB3}\r
19 0xa6a79162, 0xe325, 0x4c30, 0xbc, 0xc3, 0x59, 0x37, 0x30, 0x64, 0xef, 0xb3);\r
20\r
21\r
22--*/\r
23\r
24#ifndef _TCO_RESET_H_\r
25#define _TCO_RESET_H_\r
26\r
27\r
28#define EFI_TCO_RESET_PROTOCOL_GUID \\r
29 {0xa6a79162, 0xe325, 0x4c30, 0xbc, 0xc3, 0x59, 0x37, 0x30, 0x64, 0xef, 0xb3}\r
30\r
31typedef struct _EFI_TCO_RESET_PROTOCOL EFI_TCO_RESET_PROTOCOL;\r
32\r
33typedef\r
34EFI_STATUS\r
35(EFIAPI *EFI_TCO_RESET_PROTOCOL_ENABLE_TCO_RESET) (\r
36 IN UINT32 *RcrbGcsSaveValue\r
37 )\r
38/*++\r
39\r
40Routine Description:\r
41\r
42 Enables the TCO timer to reset the system in case of a system hang. This is\r
43 used when writing the clock registers.\r
44\r
45Arguments:\r
46\r
47 RcrbGcsSaveValue - This is the value of the RCRB GCS register before it is\r
48 changed by this procedure. This will be used to restore\r
49 the settings of this register in PpiDisableTcoReset.\r
50\r
51Returns:\r
52\r
53 EFI_STATUS\r
54\r
55--*/\r
56;\r
57\r
58typedef\r
59EFI_STATUS\r
60(EFIAPI *EFI_TCO_RESET_PROTOCOL_DISABLE_TCO_RESET) (\r
61 OUT UINT32 RcrbGcsRestoreValue\r
62 )\r
63/*++\r
64\r
65Routine Description:\r
66\r
67 Disables the TCO timer. This is used after writing the clock registers.\r
68\r
69Arguments:\r
70\r
71 RcrbGcsRestoreValue - Value saved in PpiEnableTcoReset so that it can\r
72 restored.\r
73\r
74Returns:\r
75\r
76 EFI_STATUS\r
77\r
78--*/\r
79;\r
80\r
81typedef struct _EFI_TCO_RESET_PROTOCOL {\r
82 EFI_TCO_RESET_PROTOCOL_ENABLE_TCO_RESET EnableTcoReset;\r
83 EFI_TCO_RESET_PROTOCOL_DISABLE_TCO_RESET DisableTcoReset;\r
84} EFI_TCO_RESET_PROTOCOL;\r
85\r
86extern EFI_GUID gEfiTcoResetProtocolGuid;\r
87\r
88#endif\r