You've already forked edk2-platforms
mirror of
https://github.com/Dasharo/edk2-platforms.git
synced 2026-03-06 14:51:43 -08:00
https://bugzilla.tianocore.org/show_bug.cgi?id=1373 Replace BSD 2-Clause License with BSD+Patent License. This change is based on the following emails: https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html RFCs with detailed process for the license change: V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html NOTE: Files with a BSD 3-Clause license are not modified by this patch series. Cc: Leif Lindholm <leif.lindholm@linaro.org> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
61 lines
1.7 KiB
C
61 lines
1.7 KiB
C
/** @file
|
|
*
|
|
* Copyright (c) 2014, ARM Ltd. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
*
|
|
**/
|
|
|
|
#ifndef __BOOTMONFS_LOADER_H__
|
|
#define __BOOTMONFS_LOADER_H__
|
|
|
|
/**
|
|
Check that loading the file is supported.
|
|
|
|
Not all information is checked, only the properties that matters to us in
|
|
our simplified loader.
|
|
|
|
BootMonFS file properties is not in a file header but in the file-system
|
|
metadata, so we need to pass a handle to the file to allow access to the
|
|
information.
|
|
|
|
@param[in] FileHandle Handle of the file to check.
|
|
|
|
@retval EFI_SUCCESS on success.
|
|
@retval EFI_INVALID_PARAMETER if the header is invalid.
|
|
@retval EFI_UNSUPPORTED if the file type/platform is not supported.
|
|
**/
|
|
EFI_STATUS
|
|
BootMonFsCheckFile (
|
|
IN CONST EFI_FILE_HANDLE FileHandle
|
|
);
|
|
|
|
/**
|
|
Load a binary file from BootMonFS.
|
|
|
|
@param[in] FileHandle Handle of the file to load.
|
|
|
|
@param[in] FileData Address of the file data in memory.
|
|
|
|
@param[out] EntryPoint Will be filled with the ELF entry point address.
|
|
|
|
@param[out] ImageSize Will be filled with the file size in memory. This
|
|
will effectively be equal to the sum of the load
|
|
region sizes.
|
|
|
|
This function assumes the file is valid and supported as checked with
|
|
BootMonFsCheckFile().
|
|
|
|
@retval EFI_SUCCESS on success.
|
|
@retval EFI_INVALID_PARAMETER if the file is invalid.
|
|
**/
|
|
EFI_STATUS
|
|
BootMonFsLoadFile (
|
|
IN CONST EFI_FILE_HANDLE FileHandle,
|
|
IN CONST VOID *FileData,
|
|
OUT VOID **EntryPoint,
|
|
OUT LIST_ENTRY *LoadList
|
|
);
|
|
|
|
#endif // __BOOTMONFS_LOADER_H__
|