5 Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved
7 SPDX-License-Identifier: BSD-2-Clause-Patent
23 #define PCH_RESET_PROTOCOL_GUID \
25 0xdb63592c, 0xb8cc, 0x44c8, 0x91, 0x8c, 0x51, 0xf5, 0x34, 0x59, 0x8a, 0x5a \
27 #define PCH_RESET_CALLBACK_PROTOCOL_GUID \
29 0x3a3300ab, 0xc929, 0x487d, 0xab, 0x34, 0x15, 0x9b, 0xc1, 0x35, 0x62, 0xc0 \
31 extern EFI_GUID gPchResetProtocolGuid
;
32 extern EFI_GUID gPchResetCallbackProtocolGuid
;
35 /// Forward reference for ANSI C compatibility
37 typedef struct _PCH_RESET_PROTOCOL PCH_RESET_PROTOCOL
;
39 typedef struct _PCH_RESET_CALLBACK_PROTOCOL PCH_RESET_CALLBACK_PROTOCOL
;
42 /// Related Definitions
62 IN PCH_RESET_PROTOCOL
* This
,
63 IN PCH_RESET_TYPE PchResetType
68 Execute Pch Reset from the host controller.
70 @param[in] This Pointer to the PCH_RESET_PROTOCOL instance.
71 @param[in] PchResetType Pch Reset Types which includes ColdReset, WarmReset, ShutdownReset,
72 PowerCycleReset, GlobalReset, GlobalResetWithEc
74 @retval EFI_SUCCESS Successfully completed.
75 @retval EFI_INVALID_PARAMETER If ResetType is invalid.
82 (EFIAPI
*PCH_RESET_CALLBACK
) (
83 IN PCH_RESET_TYPE PchResetType
88 Execute call back function for Pch Reset.
90 @param[in] PchResetType Pch Reset Types which includes PowerCycle, Globalreset.
92 @retval EFI_SUCCESS The callback function has been done successfully
93 @retval EFI_NOT_FOUND Failed to find Pch Reset Callback protocol. Or, none of
94 callback protocol is installed.
95 @retval Others Do not do any reset from PCH
101 /// Interface structure for the Pch Reset Protocol
103 struct _PCH_RESET_PROTOCOL
{
108 /// PCH_RESET_CALLBACK_PROTOCOL Structure Definition
110 struct _PCH_RESET_CALLBACK_PROTOCOL
{
111 PCH_RESET_CALLBACK ResetCallback
;