2017-03-31 12:32:36 +02:00
|
|
|
/** @file
|
|
|
|
*
|
|
|
|
* Copyright (c) 2017, Linaro, Ltd. All rights reserved.
|
|
|
|
*
|
2019-04-04 01:03:38 +02:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause-Patent
|
2017-03-31 12:32:36 +02:00
|
|
|
*
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __DT_PLATFORM_DTB_LOADER_LIB_H__
|
|
|
|
#define __DT_PLATFORM_DTB_LOADER_LIB_H__
|
|
|
|
|
|
|
|
#include <Uefi/UefiBaseType.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
Return a pool allocated copy of the DTB image that is appropriate for
|
|
|
|
booting the current platform via DT.
|
|
|
|
|
|
|
|
@param[out] Dtb Pointer to the DTB copy
|
|
|
|
@param[out] DtbSize Size of the DTB copy
|
|
|
|
|
|
|
|
@retval EFI_SUCCESS Operation completed successfully
|
|
|
|
@retval EFI_NOT_FOUND No suitable DTB image could be located
|
|
|
|
@retval EFI_OUT_OF_RESOURCES No pool memory available
|
|
|
|
|
|
|
|
**/
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
DtPlatformLoadDtb (
|
|
|
|
OUT VOID **Dtb,
|
|
|
|
OUT UINTN *DtbSize
|
|
|
|
);
|
|
|
|
|
|
|
|
#endif
|