]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Ppi/TemporaryRamSupport.h
Add PPI definitions introduced in PI1.0.
[mirror_edk2.git] / MdePkg / Include / Ppi / TemporaryRamSupport.h
CommitLineData
5879b875 1/* @file\r
2 This file declares Temporary RAM Support PPI.\r
3\r
4 Copyright (c) 2006 - 2007, Intel Corporation \r
5 All rights reserved. This program and the accompanying materials \r
6 are licensed and made available under the terms and conditions of the BSD License \r
7 which accompanies this distribution. The full text of the license may be found at \r
8 http://opensource.org/licenses/bsd-license.php \r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
12\r
13 Module Name: TemporaryRamSupport.h\r
14\r
15 @par Revision Reference:\r
16 This PPI is defined in PI.\r
17 Version 1.00.\r
18\r
19**/\r
20\r
21#ifndef __TEMPORARY_RAM_SUPPORT_H__\r
22#define __TEMPORARY_RAM_SUPPORT_H__\r
23\r
24#define TEMPORARY_RAM_SUPPORT_PPI_GUID \\r
25 { 0xdbe23aa9, 0xa345, 0x4b97, {0x85, 0xb6, 0xb2, 0x26, 0xf1, 0x61, 0x73, 0x89} }\r
26\r
27\r
28/*\r
29 This service of the TEMPORARY_RAM_SUPPORT_PPI that migrates temporary RAM into\r
30 permanent memory.\r
31\r
32 @param PeiServices Pointer to the PEI Services Table.\r
33\r
34 @param TemporaryMemoryBase Source Address in temporary memory from which the SEC or PEIM will copy the\r
35 Temporary RAM contents.\r
36\r
37 @param PermanentMemoryBase Destination Address in permanent memory into which the SEC or PEIM will copy the\r
38 Temporary RAM contents.\r
39\r
40 @param CopySize Amount of memory to migrate from temporary to permanent memory.\r
41\r
42\r
43\r
44 @retval EFI_SUCCESS The data was successfully returned.\r
45\r
46 @retval EFI_INVALID_PARAMETER PermanentMemoryBase + CopySize >\r
47 TemporaryMemoryBase when TemporaryMemoryBase >\r
48 PermanentMemoryBase.\r
49\r
50**/\r
51typedef\r
52EFI_STATUS\r
53(EFIAPI * TEMPORARY_RAM_MIGRATION) (\r
54 IN CONST EFI_PEI_SERVICES **PeiServices,\r
55 IN EFI_PHYSICAL_ADDRESS TemporaryMemoryBase,\r
56 IN EFI_PHYSICAL_ADDRESS PermanentMemoryBase,\r
57 IN UINTN CopySize\r
58);\r
59\r
60\r
61typedef struct {\r
62 TEMPORARY_RAM_MIGRATION TemporaryRamMigration;\r
63} TEMPORARY_RAM_SUPPORT_PPI;\r
64\r
65extern EFI_GUID gEfiPeiTemporaryRamSupportPpiGuid;\r
66\r
67#endif\r