2014-03-05 05:15:44 +01:00
|
|
|
/** @file
|
|
|
|
|
|
|
|
Copyright (c) 2013-2014, ARM Ltd. All rights reserved.<BR>
|
|
|
|
|
2019-04-04 01:03:38 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2014-03-05 05:15:44 +01:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __ANDROID_FASTBOOT_APP_H__
|
|
|
|
#define __ANDROID_FASTBOOT_APP_H__
|
|
|
|
|
2017-08-02 16:03:40 +02:00
|
|
|
#include <Library/AndroidBootImgLib.h>
|
2014-03-05 05:15:44 +01:00
|
|
|
#include <Library/BaseLib.h>
|
|
|
|
#include <Library/DebugLib.h>
|
|
|
|
#include <Library/MemoryAllocationLib.h>
|
|
|
|
|
|
|
|
#define BOOTIMG_KERNEL_ARGS_SIZE 512
|
|
|
|
|
|
|
|
#define ANDROID_FASTBOOT_VERSION "0.4"
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
BootAndroidBootImg (
|
|
|
|
IN UINTN BufferSize,
|
|
|
|
IN VOID *Buffer
|
|
|
|
);
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
ParseAndroidBootImg (
|
|
|
|
IN VOID *BootImg,
|
|
|
|
OUT VOID **Kernel,
|
|
|
|
OUT UINTN *KernelSize,
|
|
|
|
OUT VOID **Ramdisk,
|
|
|
|
OUT UINTN *RamdiskSize,
|
|
|
|
OUT CHAR8 *KernelArgs
|
|
|
|
);
|
|
|
|
|
|
|
|
#endif //ifdef __ANDROID_FASTBOOT_APP_H__
|