MdeModulePkg/ResetSystemRuntimeDxe: Add platform filter and handler
[mirror_edk2.git] / MdeModulePkg / Include / Ppi / PlatformSpecificResetFilter.h
1 /** @file
2 This PPI provides services to register a platform specific reset filter
3 for ResetSystem(). A reset filter evaluates the parameters passed to
4 ResetSystem() and converts a ResetType of EfiResetPlatformSpecific to a
5 non-platform specific reset type. The registered filters are processed before
6 EDKII_PLATFORM_SPECIFIC_RESET_HANDLER_PPI handlers.
7
8 Copyright (c) 2017 Intel Corporation. All rights reserved.<BR>
9 This program and the accompanying materials are licensed and made available under
10 the terms and conditions of the BSD License that accompanies this distribution.
11 The full text of the license may be found at
12 http://opensource.org/licenses/bsd-license.php.
13
14 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
15 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16
17 **/
18
19 #ifndef _PLATFORM_SPECIFIC_RESET_FILTER_PPI_H_
20 #define _PLATFORM_SPECIFIC_RESET_FILTER_PPI_H_
21
22 #include <Protocol/ResetNotification.h>
23
24 #define EDKII_PLATFORM_SPECIFIC_RESET_FILTER_PPI_GUID \
25 { 0x8c9f4de3, 0x7b90, 0x47ef, { 0x93, 0x8, 0x28, 0x7c, 0xec, 0xd6, 0x6d, 0xe8 } }
26
27 typedef EFI_RESET_NOTIFICATION_PROTOCOL EDKII_PLATFORM_SPECIFIC_RESET_FILTER_PPI;
28
29 extern EFI_GUID gEdkiiPlatformSpecificResetFilterPpiGuid;
30
31 #endif