hc
2024-03-25 edb30157bad0c0001c32b854271ace01d3b9a16a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/** @file
  This file defines the PPI for notifying PlatformInitPreMem
  of temporary memory being disabled.
 
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
 
**/
 
#ifndef _PLATFORM_INIT_TEMP_RAM_EXIT_PPI_H_
#define _PLATFORM_INIT_TEMP_RAM_EXIT_PPI_H_
 
#include <PiPei.h>
 
//
// Forward declaration for the PLATFORM_INIT_TEMP_RAM_EXIT_PPI.
//
typedef struct _PLATFORM_INIT_TEMP_RAM_EXIT_PPI PLATFORM_INIT_TEMP_RAM_EXIT_PPI;
 
/**
  A hook for platform-specific initialization prior to disabling temporary RAM.
 
  @retval EFI_SUCCESS   The platform initialization was successful.
  @retval EFI_NOT_READY The platform has not been detected yet.
**/
typedef
EFI_STATUS
(EFIAPI *PLATFORM_INIT_BEFORE_TEMP_RAM_EXIT) (
  VOID
  );
 
/**
  A hook for platform-specific initialization after disabling temporary RAM.
 
  @retval EFI_SUCCESS   The platform initialization was successful.
  @retval EFI_NOT_READY The platform has not been detected yet.
**/
typedef
EFI_STATUS
(EFIAPI *PLATFORM_INIT_AFTER_TEMP_RAM_EXIT) (
  VOID
  );
 
///
/// This PPI provides functions for notifying PlatformInitPreMem
/// of temporary memory being disabled.
///
struct _PLATFORM_INIT_TEMP_RAM_EXIT_PPI {
  PLATFORM_INIT_BEFORE_TEMP_RAM_EXIT    PlatformInitBeforeTempRamExit;
  PLATFORM_INIT_AFTER_TEMP_RAM_EXIT     PlatformInitAfterTempRamExit;
};
 
extern EFI_GUID gPlatformInitTempRamExitPpiGuid;
 
#endif // _PLATFORM_INIT_TEMP_RAM_EXIT_PPI_H_