2 This file declares Temporary RAM Support PPI.
4 Copyright (c) 2006 - 2007, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 Module Name: TemporaryRamSupport.h
15 @par Revision Reference:
16 This PPI is defined in PI.
21 #ifndef __TEMPORARY_RAM_SUPPORT_H__
22 #define __TEMPORARY_RAM_SUPPORT_H__
24 #define TEMPORARY_RAM_SUPPORT_PPI_GUID \
25 { 0xdbe23aa9, 0xa345, 0x4b97, {0x85, 0xb6, 0xb2, 0x26, 0xf1, 0x61, 0x73, 0x89} }
29 This service of the TEMPORARY_RAM_SUPPORT_PPI that migrates temporary RAM into
32 @param PeiServices Pointer to the PEI Services Table.
34 @param TemporaryMemoryBase Source Address in temporary memory from which the SEC or PEIM will copy the
35 Temporary RAM contents.
37 @param PermanentMemoryBase Destination Address in permanent memory into which the SEC or PEIM will copy the
38 Temporary RAM contents.
40 @param CopySize Amount of memory to migrate from temporary to permanent memory.
44 @retval EFI_SUCCESS The data was successfully returned.
46 @retval EFI_INVALID_PARAMETER PermanentMemoryBase + CopySize >
47 TemporaryMemoryBase when TemporaryMemoryBase >
53 (EFIAPI
* TEMPORARY_RAM_MIGRATION
) (
54 IN CONST EFI_PEI_SERVICES
**PeiServices
,
55 IN EFI_PHYSICAL_ADDRESS TemporaryMemoryBase
,
56 IN EFI_PHYSICAL_ADDRESS PermanentMemoryBase
,
62 TEMPORARY_RAM_MIGRATION TemporaryRamMigration
;
63 } TEMPORARY_RAM_SUPPORT_PPI
;
65 extern EFI_GUID gEfiTemporaryRamSupportPpiGuid
;