]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Ppi/TemporaryRamSupport.h
Rename EFI_PEI_PCI_CFG_PPI_IO to EFI_PEI_PCI_CFG2_PPI_IO to avoid collision with...
[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
5879b875 13 @par Revision Reference:\r
14 This PPI is defined in PI.\r
15 Version 1.00.\r
16\r
17**/\r
18\r
19#ifndef __TEMPORARY_RAM_SUPPORT_H__\r
20#define __TEMPORARY_RAM_SUPPORT_H__\r
21\r
22#define TEMPORARY_RAM_SUPPORT_PPI_GUID \\r
00edb218 23 { 0xdbe23aa9, 0xa345, 0x4b97, {0x85, 0xb6, 0xb2, 0x26, 0xf1, 0x61, 0x73, 0x89} }\r
5879b875 24\r
25\r
26/*\r
27 This service of the TEMPORARY_RAM_SUPPORT_PPI that migrates temporary RAM into\r
00edb218 28 permanent memory.\r
5879b875 29\r
00edb218 30 @param PeiServices Pointer to the PEI Services Table.\r
5879b875 31\r
00edb218
A
32 @param TemporaryMemoryBase Source Address in temporary memory from which the SEC or PEIM will copy the\r
33 Temporary RAM contents.\r
5879b875 34\r
00edb218
A
35 @param PermanentMemoryBase Destination Address in permanent memory into which the SEC or PEIM will copy the\r
36 Temporary RAM contents.\r
5879b875 37\r
00edb218 38 @param CopySize Amount of memory to migrate from temporary to permanent memory.\r
5879b875 39\r
40\r
41\r
00edb218 42 @retval EFI_SUCCESS The data was successfully returned.\r
5879b875 43\r
00edb218
A
44 @retval EFI_INVALID_PARAMETER PermanentMemoryBase + CopySize >\r
45 TemporaryMemoryBase when TemporaryMemoryBase >\r
46 PermanentMemoryBase.\r
5879b875 47\r
48**/\r
49typedef\r
50EFI_STATUS\r
51(EFIAPI * TEMPORARY_RAM_MIGRATION) (\r
00edb218
A
52 IN CONST EFI_PEI_SERVICES **PeiServices,\r
53 IN EFI_PHYSICAL_ADDRESS TemporaryMemoryBase,\r
54 IN EFI_PHYSICAL_ADDRESS PermanentMemoryBase,\r
55 IN UINTN CopySize\r
5879b875 56);\r
57\r
58\r
59typedef struct {\r
00edb218 60 TEMPORARY_RAM_MIGRATION TemporaryRamMigration;\r
5879b875 61} TEMPORARY_RAM_SUPPORT_PPI;\r
62\r
53f2d96e 63extern EFI_GUID gEfiTemporaryRamSupportPpiGuid;\r
5879b875 64\r
65#endif\r