EmbeddedPkg: AndroidBootApp: fix clang compilation
[mirror_edk2.git] / EmbeddedPkg / Include / Protocol / AndroidBootImg.h
1 /** @file
2
3 Copyright (c) 2017, Linaro. 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_BOOTIMG_PROTOCOL_H__
16 #define __ANDROID_BOOTIMG_PROTOCOL_H__
17
18 //
19 // Protocol interface structure
20 //
21 typedef struct _ANDROID_BOOTIMG_PROTOCOL ANDROID_BOOTIMG_PROTOCOL;
22
23 //
24 // Function Prototypes
25 //
26 typedef
27 EFI_STATUS
28 (EFIAPI *ANDROID_BOOTIMG_APPEND_KERNEL_ARGS) (
29 IN CHAR16 *Args,
30 IN UINTN Size
31 );
32
33 typedef
34 EFI_STATUS
35 (EFIAPI *ANDROID_BOOTIMG_UPDATE_DTB) (
36 IN EFI_PHYSICAL_ADDRESS OrigDtbBase,
37 OUT EFI_PHYSICAL_ADDRESS *NewDtbBase
38 );
39
40 struct _ANDROID_BOOTIMG_PROTOCOL {
41 ANDROID_BOOTIMG_APPEND_KERNEL_ARGS AppendArgs;
42 ANDROID_BOOTIMG_UPDATE_DTB UpdateDtb;
43 };
44
45 extern EFI_GUID gAndroidBootImgProtocolGuid;
46
47 #endif /* __ANDROID_BOOTIMG_PROTOCOL_H__ */