]> git.proxmox.com Git - mirror_edk2.git/blame - EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.h
EmbeddedPkg/AndroidFastbootApp: remove dependency on deprecated BdsLib
[mirror_edk2.git] / EmbeddedPkg / Application / AndroidFastboot / AndroidFastbootApp.h
CommitLineData
f6755908
OM
1/** @file\r
2\r
3 Copyright (c) 2013-2014, ARM Ltd. All rights reserved.<BR>\r
4\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef __ANDROID_FASTBOOT_APP_H__\r
16#define __ANDROID_FASTBOOT_APP_H__\r
17\r
18#include <Library/BaseLib.h>\r
19#include <Library/DebugLib.h>\r
20#include <Library/MemoryAllocationLib.h>\r
21\r
22#define BOOTIMG_KERNEL_ARGS_SIZE 512\r
23\r
24#define ANDROID_FASTBOOT_VERSION "0.4"\r
25\r
26EFI_STATUS\r
27BootAndroidBootImg (\r
28 IN UINTN BufferSize,\r
29 IN VOID *Buffer\r
30 );\r
31\r
32EFI_STATUS\r
33ParseAndroidBootImg (\r
34 IN VOID *BootImg,\r
35 OUT VOID **Kernel,\r
36 OUT UINTN *KernelSize,\r
37 OUT VOID **Ramdisk,\r
38 OUT UINTN *RamdiskSize,\r
39 OUT CHAR8 *KernelArgs\r
40 );\r
41\r
42#endif //ifdef __ANDROID_FASTBOOT_APP_H__\r