]>
Commit | Line | Data |
---|---|---|
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 | |
00edb218 | 25 | { 0xdbe23aa9, 0xa345, 0x4b97, {0x85, 0xb6, 0xb2, 0x26, 0xf1, 0x61, 0x73, 0x89} }\r |
5879b875 | 26 | \r |
27 | \r | |
28 | /*\r | |
29 | This service of the TEMPORARY_RAM_SUPPORT_PPI that migrates temporary RAM into\r | |
00edb218 | 30 | permanent memory.\r |
5879b875 | 31 | \r |
00edb218 | 32 | @param PeiServices Pointer to the PEI Services Table.\r |
5879b875 | 33 | \r |
00edb218 A |
34 | @param TemporaryMemoryBase Source Address in temporary memory from which the SEC or PEIM will copy the\r |
35 | Temporary RAM contents.\r | |
5879b875 | 36 | \r |
00edb218 A |
37 | @param PermanentMemoryBase Destination Address in permanent memory into which the SEC or PEIM will copy the\r |
38 | Temporary RAM contents.\r | |
5879b875 | 39 | \r |
00edb218 | 40 | @param CopySize Amount of memory to migrate from temporary to permanent memory.\r |
5879b875 | 41 | \r |
42 | \r | |
43 | \r | |
00edb218 | 44 | @retval EFI_SUCCESS The data was successfully returned.\r |
5879b875 | 45 | \r |
00edb218 A |
46 | @retval EFI_INVALID_PARAMETER PermanentMemoryBase + CopySize >\r |
47 | TemporaryMemoryBase when TemporaryMemoryBase >\r | |
48 | PermanentMemoryBase.\r | |
5879b875 | 49 | \r |
50 | **/\r | |
51 | typedef\r | |
52 | EFI_STATUS\r | |
53 | (EFIAPI * TEMPORARY_RAM_MIGRATION) (\r | |
00edb218 A |
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 | |
5879b875 | 58 | );\r |
59 | \r | |
60 | \r | |
61 | typedef struct {\r | |
00edb218 | 62 | TEMPORARY_RAM_MIGRATION TemporaryRamMigration;\r |
5879b875 | 63 | } TEMPORARY_RAM_SUPPORT_PPI;\r |
64 | \r | |
65 | extern EFI_GUID gEfiPeiTemporaryRamSupportPpiGuid;\r | |
66 | \r | |
67 | #endif\r |