]> git.proxmox.com Git - mirror_edk2.git/blob - EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.h
f62660feb7abd765cbe11e8add54eb5ee812117e
[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/BaseLib.h>
19 #include <Library/DebugLib.h>
20 #include <Library/MemoryAllocationLib.h>
21
22 #define BOOTIMG_KERNEL_ARGS_SIZE 512
23
24 #define ANDROID_FASTBOOT_VERSION "0.4"
25
26 EFI_STATUS
27 BootAndroidBootImg (
28 IN UINTN BufferSize,
29 IN VOID *Buffer
30 );
31
32 EFI_STATUS
33 ParseAndroidBootImg (
34 IN VOID *BootImg,
35 OUT VOID **Kernel,
36 OUT UINTN *KernelSize,
37 OUT VOID **Ramdisk,
38 OUT UINTN *RamdiskSize,
39 OUT CHAR8 *KernelArgs
40 );
41
42 #endif //ifdef __ANDROID_FASTBOOT_APP_H__