TianoCore EDK2 master
Loading...
Searching...
No Matches
AndroidBootImgLib.h File Reference

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)
 

Detailed Description

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.

Macro Definition Documentation

◆ ANDROID_BOOT_MAGIC

#define ANDROID_BOOT_MAGIC   "ANDROID!"

Definition at line 22 of file AndroidBootImgLib.h.

◆ ANDROID_BOOT_MAGIC_LENGTH

#define ANDROID_BOOT_MAGIC_LENGTH   (sizeof (ANDROID_BOOT_MAGIC) - 1)

Definition at line 23 of file AndroidBootImgLib.h.

◆ ANDROID_BOOTIMG_KERNEL_ARGS_SIZE

#define ANDROID_BOOTIMG_KERNEL_ARGS_SIZE   512

Definition at line 20 of file AndroidBootImgLib.h.

◆ IS_POWER_OF_2

#define IS_POWER_OF_2 (   Val)    ((Val) != 0 && (((Val) & ((Val) - 1)) == 0))

Definition at line 47 of file AndroidBootImgLib.h.

◆ IS_VALID_ANDROID_PAGE_SIZE

#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.

Function Documentation

◆ AndroidBootImgBoot()

EFI_STATUS AndroidBootImgBoot ( IN VOID *  Buffer,
IN UINTN  BufferSize 
)

Definition at line 612 of file AndroidBootImgLib.c.

◆ AndroidBootImgGetImgSize()

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

Definition at line 158 of file AndroidBootImgLib.c.