1 /** @file 2 Platform PEI module include file. 3 4 Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> 5 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 9 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. 12 13 **/ 14 15 #ifndef _PLATFORM_PEI_H_INCLUDED_ 16 #define _PLATFORM_PEI_H_INCLUDED_ 17 18 #include <IndustryStandard/E820.h> 19 20 VOID 21 AddIoMemoryBaseSizeHob ( 22 EFI_PHYSICAL_ADDRESS MemoryBase, 23 UINT64 MemorySize 24 ); 25 26 VOID 27 AddIoMemoryRangeHob ( 28 EFI_PHYSICAL_ADDRESS MemoryBase, 29 EFI_PHYSICAL_ADDRESS MemoryLimit 30 ); 31 32 VOID 33 AddMemoryBaseSizeHob ( 34 EFI_PHYSICAL_ADDRESS MemoryBase, 35 UINT64 MemorySize 36 ); 37 38 VOID 39 AddMemoryRangeHob ( 40 EFI_PHYSICAL_ADDRESS MemoryBase, 41 EFI_PHYSICAL_ADDRESS MemoryLimit 42 ); 43 44 VOID 45 AddUntestedMemoryBaseSizeHob ( 46 EFI_PHYSICAL_ADDRESS MemoryBase, 47 UINT64 MemorySize 48 ); 49 50 VOID 51 AddReservedMemoryBaseSizeHob ( 52 EFI_PHYSICAL_ADDRESS MemoryBase, 53 UINT64 MemorySize, 54 BOOLEAN Cacheable 55 ); 56 57 VOID 58 AddUntestedMemoryRangeHob ( 59 EFI_PHYSICAL_ADDRESS MemoryBase, 60 EFI_PHYSICAL_ADDRESS MemoryLimit 61 ); 62 63 VOID 64 AddressWidthInitialization ( 65 VOID 66 ); 67 68 EFI_STATUS 69 PublishPeiMemory ( 70 VOID 71 ); 72 73 UINT32 74 GetSystemMemorySizeBelow4gb ( 75 VOID 76 ); 77 78 VOID 79 InitializeRamRegions ( 80 VOID 81 ); 82 83 EFI_STATUS 84 PeiFvInitialization ( 85 VOID 86 ); 87 88 EFI_STATUS 89 InitializeXen ( 90 VOID 91 ); 92 93 BOOLEAN 94 XenDetect ( 95 VOID 96 ); 97 98 extern BOOLEAN mXen; 99 100 VOID 101 XenPublishRamRegions ( 102 VOID 103 ); 104 105 extern EFI_BOOT_MODE mBootMode; 106 107 extern BOOLEAN mS3Supported; 108 109 extern UINT8 mPhysMemAddressWidth; 110 111 #endif // _PLATFORM_PEI_H_INCLUDED_ 112