EmbeddedPkg[all]  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
AndroidBootImgLib.h File Reference

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)
 

Detailed Description

Copyright (c) 2013-2014, ARM Ltd. All rights reserved.
Copyright (c) 2017, Linaro.

SPDX-License-Identifier: BSD-2-Clause-Patent

Macro Definition Documentation

#define ANDROID_BOOT_MAGIC   "ANDROID!"
#define ANDROID_BOOT_MAGIC_LENGTH   (sizeof (ANDROID_BOOT_MAGIC) - 1)
#define ANDROID_BOOTIMG_KERNEL_ARGS_SIZE   512
#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)))

Function Documentation

EFI_STATUS AndroidBootImgBoot ( IN VOID Buffer,
IN UINTN  BufferSize 
)
EFI_STATUS AndroidBootImgGetImgSize ( IN VOID BootImg,
OUT UINTN *  ImgSize 
)