TianoCore EDK2 master
|
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Uefi/UefiBaseType.h>
#include <Uefi/UefiSpec.h>
Go to the source code of this file.
Data Structures | |
struct | ANDROID_BOOTIMG_HEADER |
Macros | |
#define | ANDROID_BOOTIMG_KERNEL_ARGS_SIZE 512 |
#define | ANDROID_BOOT_MAGIC "ANDROID!" |
#define | ANDROID_BOOT_MAGIC_LENGTH (sizeof (ANDROID_BOOT_MAGIC) - 1) |
#define | IS_POWER_OF_2(Val) ((Val) != 0 && (((Val) & ((Val) - 1)) == 0)) |
#define | IS_VALID_ANDROID_PAGE_SIZE(Val) (IS_POWER_OF_2(Val) && (Val > sizeof(ANDROID_BOOTIMG_HEADER))) |
Functions | |
EFI_STATUS | AndroidBootImgGetImgSize (IN VOID *BootImg, OUT UINTN *ImgSize) |
EFI_STATUS | AndroidBootImgBoot (IN VOID *Buffer, IN UINTN BufferSize) |
Copyright (c) 2013-2014, ARM Ltd. All rights reserved.
Copyright (c) 2017, Linaro.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file AndroidBootImgLib.h.
#define ANDROID_BOOT_MAGIC "ANDROID!" |
Definition at line 22 of file AndroidBootImgLib.h.
#define ANDROID_BOOT_MAGIC_LENGTH (sizeof (ANDROID_BOOT_MAGIC) - 1) |
Definition at line 23 of file AndroidBootImgLib.h.
#define ANDROID_BOOTIMG_KERNEL_ARGS_SIZE 512 |
Definition at line 20 of file AndroidBootImgLib.h.
#define IS_POWER_OF_2 | ( | Val | ) | ((Val) != 0 && (((Val) & ((Val) - 1)) == 0)) |
Definition at line 47 of file AndroidBootImgLib.h.
#define IS_VALID_ANDROID_PAGE_SIZE | ( | Val | ) | (IS_POWER_OF_2(Val) && (Val > sizeof(ANDROID_BOOTIMG_HEADER))) |
Definition at line 51 of file AndroidBootImgLib.h.
EFI_STATUS AndroidBootImgBoot | ( | IN VOID * | Buffer, |
IN UINTN | BufferSize | ||
) |
Definition at line 612 of file AndroidBootImgLib.c.
EFI_STATUS AndroidBootImgGetImgSize | ( | IN VOID * | BootImg, |
OUT UINTN * | ImgSize | ||
) |
Definition at line 158 of file AndroidBootImgLib.c.