]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Ppi/TemporaryRamSupport.h
Update the copyright notice format
[mirror_edk2.git] / MdePkg / Include / Ppi / TemporaryRamSupport.h
CommitLineData
c311f86b 1/** @file\r
5879b875 2 This file declares Temporary RAM Support PPI.\r
d7132512 3 This Ppi provides the service that migrates temporary RAM into permanent memory.\r
5879b875 4\r
9df063a0
HT
5 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
6 This program and the accompanying materials \r
5879b875 7 are licensed and made available under the terms and conditions of the BSD License \r
8 which accompanies this distribution. The full text of the license may be found at \r
9 http://opensource.org/licenses/bsd-license.php \r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
13\r
5879b875 14 @par Revision Reference:\r
0047820e 15 This PPI is introduced in PI Version 1.0.\r
5879b875 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
06889842 26/**\r
5879b875 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
00edb218
A
31 @param TemporaryMemoryBase Source Address in temporary memory from which the SEC or PEIM will copy the\r
32 Temporary RAM contents.\r
00edb218
A
33 @param PermanentMemoryBase Destination Address in permanent memory into which the SEC or PEIM will copy the\r
34 Temporary RAM contents.\r
00edb218 35 @param CopySize Amount of memory to migrate from temporary to permanent memory.\r
5879b875 36\r
00edb218 37 @retval EFI_SUCCESS The data was successfully returned.\r
13c38031 38 @retval EFI_INVALID_PARAMETER PermanentMemoryBase + CopySize > TemporaryMemoryBase when\r
39 TemporaryMemoryBase > PermanentMemoryBase.\r
5879b875 40\r
41**/\r
42typedef\r
43EFI_STATUS\r
8b13229b 44(EFIAPI * TEMPORARY_RAM_MIGRATION)(\r
00edb218
A
45 IN CONST EFI_PEI_SERVICES **PeiServices,\r
46 IN EFI_PHYSICAL_ADDRESS TemporaryMemoryBase,\r
47 IN EFI_PHYSICAL_ADDRESS PermanentMemoryBase,\r
48 IN UINTN CopySize\r
5879b875 49);\r
50\r
13c38031 51///\r
52/// This service abstracts the ability to migrate contents of the platform early memory store.\r
53///\r
5879b875 54typedef struct {\r
00edb218 55 TEMPORARY_RAM_MIGRATION TemporaryRamMigration;\r
5879b875 56} TEMPORARY_RAM_SUPPORT_PPI;\r
57\r
53f2d96e 58extern EFI_GUID gEfiTemporaryRamSupportPpiGuid;\r
5879b875 59\r
60#endif\r