blob: 6c5789a9430a97e01e5015b6b03e0b364b3e0418 [file] [log] [blame]
Vishal Bhoj82c80712015-12-15 21:13:33 +05301/*++
2
3Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
4This program and the accompanying materials
5are licensed and made available under the terms and conditions of the BSD License
6which accompanies this distribution. The full text of the license may be found at
7http://opensource.org/licenses/bsd-license.php
8
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12Module Name:
13 Support.h
14
15Abstract:
16
17Revision History:
18
19--*/
20
21#ifndef _EFILDR_SUPPORT_H_
22#define _EFILDR_SUPPORT_H_
23
24EFI_STATUS
25EfiAddMemoryDescriptor(
26 UINTN *NoDesc,
27 EFI_MEMORY_DESCRIPTOR *Desc,
28 EFI_MEMORY_TYPE Type,
29 EFI_PHYSICAL_ADDRESS BaseAddress,
30 UINT64 NoPages,
31 UINT64 Attribute
32 );
33
34UINTN
35FindSpace(
36 UINTN NoPages,
37 IN UINTN *NumberOfMemoryMapEntries,
38 IN EFI_MEMORY_DESCRIPTOR *EfiMemoryDescriptor,
39 EFI_MEMORY_TYPE Type,
40 UINT64 Attribute
41 );
42
43VOID
44GenMemoryMap (
45 UINTN *NumberOfMemoryMapEntries,
46 EFI_MEMORY_DESCRIPTOR *EfiMemoryDescriptor,
47 BIOS_MEMORY_MAP *BiosMemoryMap
48 );
49
50#endif