summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/C/FMMT/Rebase.h
blob: 57604a357f0c147b6952eba5b1f71cc546f1df58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/** @file  Rebase.h

 Library to rebase PE image.

 Copyright (c)  2019, Intel Corporation. All rights reserved.<BR>
 SPDX-License-Identifier: BSD-2-Clause-Patent

**/

#ifndef _FMMT_REBASE_H
#define _FMMT_REBASE_H

#include <Common/UefiBaseTypes.h>
#include <Common/PiFirmwareFile.h>

EFI_STATUS
RebaseFfs(
IN OUT  UINT64                 BaseAddress,
IN      CHAR8                 *FileName,
IN OUT  EFI_FFS_FILE_HEADER   *FfsFile,
IN      UINTN                 XipOffset
);

EFI_STATUS
GetChildFvFromFfs (
  IN      UINT64                 BaseAddress,
  IN      EFI_FFS_FILE_HEADER   *FfsFile,
  IN      UINTN                 XipOffset
);

#endif