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