TianoCore EDK2 master
|
#include <libfdt.h>
#include <Library/AndroidBootImgLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/PrintLib.h>
#include <Library/DevicePathLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>
#include <Protocol/AndroidBootImg.h>
#include <Protocol/LoadFile2.h>
#include <Protocol/LoadedImage.h>
#include <Guid/LinuxEfiInitrdMedia.h>
Go to the source code of this file.
Data Structures | |
struct | MEMORY_DEVICE_PATH |
struct | RAMDISK_DEVICE_PATH |
Macros | |
#define | FDT_ADDITIONAL_ENTRIES_SIZE 0x400 |
Copyright (c) 2013-2014, ARM Ltd. All rights reserved.
Copyright (c) 2017, Linaro. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file AndroidBootImgLib.c.
#define FDT_ADDITIONAL_ENTRIES_SIZE 0x400 |
Definition at line 24 of file AndroidBootImgLib.c.
BOOLEAN AndroidBootImgAcpiSupported | ( | VOID | ) |
Definition at line 407 of file AndroidBootImgLib.c.
EFI_STATUS AndroidBootImgBoot | ( | IN VOID * | Buffer, |
IN UINTN | BufferSize | ||
) |
Definition at line 612 of file AndroidBootImgLib.c.
Definition at line 451 of file AndroidBootImgLib.c.
EFI_STATUS AndroidBootImgGetFdt | ( | IN VOID * | BootImg, |
IN VOID ** | FdtBase | ||
) |
Definition at line 305 of file AndroidBootImgLib.c.
EFI_STATUS AndroidBootImgGetImgSize | ( | IN VOID * | BootImg, |
OUT UINTN * | ImgSize | ||
) |
Definition at line 158 of file AndroidBootImgLib.c.
EFI_STATUS AndroidBootImgGetKernelArgs | ( | IN VOID * | BootImg, |
OUT CHAR8 * | KernelArgs | ||
) |
Definition at line 286 of file AndroidBootImgLib.c.
EFI_STATUS AndroidBootImgGetKernelInfo | ( | IN VOID * | BootImg, |
OUT VOID ** | Kernel, | ||
OUT UINTN * | KernelSize | ||
) |
Definition at line 188 of file AndroidBootImgLib.c.
EFI_STATUS AndroidBootImgGetRamdiskInfo | ( | IN VOID * | BootImg, |
OUT VOID ** | Ramdisk, | ||
OUT UINTN * | RamdiskSize | ||
) |
Definition at line 219 of file AndroidBootImgLib.c.
EFI_STATUS AndroidBootImgGetSecondBootLoaderInfo | ( | IN VOID * | BootImg, |
OUT VOID ** | Second, | ||
OUT UINTN * | SecondSize | ||
) |
Definition at line 252 of file AndroidBootImgLib.c.
EFI_STATUS AndroidBootImgInstallLoadFile2 | ( | IN VOID * | RamdiskData, |
IN UINTN | RamdiskSize | ||
) |
Definition at line 363 of file AndroidBootImgLib.c.
EFI_STATUS EFIAPI AndroidBootImgLoadFile2 | ( | IN EFI_LOAD_FILE2_PROTOCOL * | This, |
IN EFI_DEVICE_PATH_PROTOCOL * | FilePath, | ||
IN BOOLEAN | BootPolicy, | ||
IN OUT UINTN * | BufferSize, | ||
IN VOID *Buffer | OPTIONAL | ||
) |
Causes the driver to load a specified file.
This | Protocol instance pointer. |
FilePath | The device specific path of the file to load. |
BootPolicy | Should always be FALSE. |
BufferSize | On input the size of Buffer in bytes. On output with a return code of EFI_SUCCESS, the amount of data transferred to Buffer. On output with a return code of EFI_BUFFER_TOO_SMALL, the size of Buffer required to retrieve the requested file. |
Buffer | The memory buffer to transfer the file to. IF Buffer is NULL, then no the size of the requested file is returned in BufferSize. |
EFI_SUCCESS | The file was loaded. |
EFI_UNSUPPORTED | BootPolicy is TRUE. |
EFI_INVALID_PARAMETER | FilePath is not a valid device path, or BufferSize is NULL. |
EFI_NO_MEDIA | No medium was present to load the file. |
EFI_DEVICE_ERROR | The file was not loaded due to a device error. |
EFI_NO_RESPONSE | The remote system did not respond. |
EFI_NOT_FOUND | The file was not found |
EFI_ABORTED | The file load process was manually canceled. |
EFI_BUFFER_TOO_SMALL | The BufferSize is too small to read the current directory entry. BufferSize has been updated with the size needed to complete the request. |
Definition at line 110 of file AndroidBootImgLib.c.
EFI_STATUS AndroidBootImgLocateFdt | ( | IN VOID * | BootImg, |
IN VOID ** | FdtBase | ||
) |
Definition at line 419 of file AndroidBootImgLib.c.
EFI_STATUS AndroidBootImgSetProperty64 | ( | IN INTN | UpdatedFdtBase, |
IN INTN | ChosenNode, | ||
IN CHAR8 * | PropertyName, | ||
IN UINT64 | Val | ||
) |
Definition at line 470 of file AndroidBootImgLib.c.
EFI_STATUS AndroidBootImgUninstallLoadFile2 | ( | VOID | ) |
Definition at line 382 of file AndroidBootImgLib.c.
EFI_STATUS AndroidBootImgUpdateArgs | ( | IN VOID * | BootImg, |
OUT VOID ** | KernelArgs | ||
) |
Definition at line 324 of file AndroidBootImgLib.c.
EFI_STATUS AndroidBootImgUpdateFdt | ( | IN VOID * | BootImg, |
IN VOID * | FdtBase, | ||
IN VOID * | RamdiskData, | ||
IN UINTN | RamdiskSize | ||
) |
Definition at line 520 of file AndroidBootImgLib.c.
STATIC ANDROID_BOOTIMG_PROTOCOL* mAndroidBootImg |
Definition at line 36 of file AndroidBootImgLib.c.
STATIC EFI_LOAD_FILE2_PROTOCOL mAndroidBootImgLoadFile2 |
Load File Protocol instance
Definition at line 153 of file AndroidBootImgLib.c.
STATIC CONST MEMORY_DEVICE_PATH mMemoryDevicePathTemplate |
Definition at line 41 of file AndroidBootImgLib.c.
Definition at line 37 of file AndroidBootImgLib.c.
STATIC CONST RAMDISK_DEVICE_PATH mRamdiskDevicePath |
Definition at line 62 of file AndroidBootImgLib.c.
STATIC EFI_HANDLE mRamDiskLoadFileHandle = NULL |
Definition at line 39 of file AndroidBootImgLib.c.
Definition at line 38 of file AndroidBootImgLib.c.