1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #ifndef _INTEL_COMMON_RESET_H_
4 #define _INTEL_COMMON_RESET_H_
6 #include <efi/efi_datatype.h>
9 * Implement SoC specific global reset (i.e. a reset of both host and
10 * ME partitions). Usually the ME is asked to perform the reset first.
11 * If that doesn't work out, fall back to a manual global reset.
13 void do_global_reset(void);
15 /* Prepare for reset, run do_global_reset(), halt. */
16 __noreturn
void global_reset(void);
19 * Return PCH Reset Status
20 * The return status can be between EfiResetCold, EfiResetWarm, EfiResetShutdown
21 * or EfiResetPlatformSpecific.
23 * If reset type if `EfiResetPlatformSpecific` then relying on pch_reset_data structure
24 * to know if the reset type is a global reset.
26 efi_return_status_t
fsp_get_pch_reset_status(void);
28 #endif /* _INTEL_COMMON_RESET_H_ */