]>
Commit | Line | Data |
---|---|---|
3cbfba02 DW |
1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r | |
4 | \r\r | |
5 | This program and the accompanying materials are licensed and made available under\r\r | |
6 | the terms and conditions of the BSD License that accompanies this distribution. \r\r | |
7 | The full text of the license may be found at \r\r | |
8 | http://opensource.org/licenses/bsd-license.php. \r\r | |
9 | \r\r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r\r | |
12 | \r\r | |
13 | \r | |
14 | \r | |
15 | Module Name:\r | |
16 | \r | |
17 | TcoReset.h\r | |
18 | \r | |
19 | Abstract:\r | |
20 | \r | |
21 | Protocol to communicate with ICH TCO.\r | |
22 | \r | |
23 | GUID Info:\r | |
24 | {A6A79162-E325-4c30-BCC3-59373064EFB3}\r | |
25 | 0xa6a79162, 0xe325, 0x4c30, 0xbc, 0xc3, 0x59, 0x37, 0x30, 0x64, 0xef, 0xb3);\r | |
26 | \r | |
27 | \r | |
28 | --*/\r | |
29 | \r | |
30 | #ifndef _TCO_RESET_H_\r | |
31 | #define _TCO_RESET_H_\r | |
32 | \r | |
33 | \r | |
34 | #define EFI_TCO_RESET_PROTOCOL_GUID \\r | |
35 | {0xa6a79162, 0xe325, 0x4c30, 0xbc, 0xc3, 0x59, 0x37, 0x30, 0x64, 0xef, 0xb3}\r | |
36 | \r | |
37 | typedef struct _EFI_TCO_RESET_PROTOCOL EFI_TCO_RESET_PROTOCOL;\r | |
38 | \r | |
39 | /**\r | |
40 | Enables the TCO timer to reset the system in case of a system hang. This is\r | |
41 | used when writing the clock registers.\r | |
42 | \r | |
43 | @param[in] RcrbGcsSaveValue This is the value of the RCRB GCS register before it is\r | |
44 | changed by this procedure. This will be used to restore\r | |
45 | the settings of this register in PpiDisableTcoReset.\r | |
46 | **/\r | |
47 | typedef\r | |
48 | EFI_STATUS\r | |
49 | (EFIAPI *EFI_TCO_RESET_PROTOCOL_ENABLE_TCO_RESET) (\r | |
50 | IN UINT32 *RcrbGcsSaveValue\r | |
51 | );\r | |
52 | \r | |
53 | /**\r | |
54 | Disables the TCO timer. This is used after writing the clock registers.\r | |
55 | \r | |
56 | @param[in] RcrbGcsRestoreValue Value saved in PpiEnableTcoReset so that it can\r | |
57 | restored.\r | |
58 | **/\r | |
59 | typedef\r | |
60 | EFI_STATUS\r | |
61 | (EFIAPI *EFI_TCO_RESET_PROTOCOL_DISABLE_TCO_RESET) (\r | |
62 | OUT UINT32 RcrbGcsRestoreValue\r | |
63 | );\r | |
64 | \r | |
65 | typedef struct _EFI_TCO_RESET_PROTOCOL {\r | |
66 | EFI_TCO_RESET_PROTOCOL_ENABLE_TCO_RESET EnableTcoReset;\r | |
67 | EFI_TCO_RESET_PROTOCOL_DISABLE_TCO_RESET DisableTcoReset;\r | |
68 | } EFI_TCO_RESET_PROTOCOL;\r | |
69 | \r | |
70 | extern EFI_GUID gEfiTcoResetProtocolGuid;\r | |
71 | \r | |
72 | #endif\r |