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