5 Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved
7 This program and the accompanying materials are licensed and made available under
8 the terms and conditions of the BSD License that accompanies this distribution.
9 The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php.
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
29 #define PCH_RESET_PROTOCOL_GUID \
31 0xdb63592c, 0xb8cc, 0x44c8, 0x91, 0x8c, 0x51, 0xf5, 0x34, 0x59, 0x8a, 0x5a \
33 #define PCH_RESET_CALLBACK_PROTOCOL_GUID \
35 0x3a3300ab, 0xc929, 0x487d, 0xab, 0x34, 0x15, 0x9b, 0xc1, 0x35, 0x62, 0xc0 \
37 extern EFI_GUID gPchResetProtocolGuid
;
38 extern EFI_GUID gPchResetCallbackProtocolGuid
;
41 /// Forward reference for ANSI C compatibility
43 typedef struct _PCH_RESET_PROTOCOL PCH_RESET_PROTOCOL
;
45 typedef struct _PCH_RESET_CALLBACK_PROTOCOL PCH_RESET_CALLBACK_PROTOCOL
;
48 /// Related Definitions
68 IN PCH_RESET_PROTOCOL
* This
,
69 IN PCH_RESET_TYPE PchResetType
74 Execute Pch Reset from the host controller.
76 @param[in] This Pointer to the PCH_RESET_PROTOCOL instance.
77 @param[in] PchResetType Pch Reset Types which includes ColdReset, WarmReset, ShutdownReset,
78 PowerCycleReset, GlobalReset, GlobalResetWithEc
80 @retval EFI_SUCCESS Successfully completed.
81 @retval EFI_INVALID_PARAMETER If ResetType is invalid.
88 (EFIAPI
*PCH_RESET_CALLBACK
) (
89 IN PCH_RESET_TYPE PchResetType
94 Execute call back function for Pch Reset.
96 @param[in] PchResetType Pch Reset Types which includes PowerCycle, Globalreset.
98 @retval EFI_SUCCESS The callback function has been done successfully
99 @retval EFI_NOT_FOUND Failed to find Pch Reset Callback protocol. Or, none of
100 callback protocol is installed.
101 @retval Others Do not do any reset from PCH
107 /// Interface structure for the Pch Reset Protocol
109 struct _PCH_RESET_PROTOCOL
{
114 /// PCH_RESET_CALLBACK_PROTOCOL Structure Definition
116 struct _PCH_RESET_CALLBACK_PROTOCOL
{
117 PCH_RESET_CALLBACK ResetCallback
;