EmbeddedPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / EmbeddedPkg / Include / Protocol / AndroidBootImg.h
1 /** @file
2
3 Copyright (c) 2017, Linaro. All rights reserved.<BR>
4
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #ifndef __ANDROID_BOOTIMG_PROTOCOL_H__
10 #define __ANDROID_BOOTIMG_PROTOCOL_H__
11
12 //
13 // Protocol interface structure
14 //
15 typedef struct _ANDROID_BOOTIMG_PROTOCOL ANDROID_BOOTIMG_PROTOCOL;
16
17 //
18 // Function Prototypes
19 //
20 typedef
21 EFI_STATUS
22 (EFIAPI *ANDROID_BOOTIMG_APPEND_KERNEL_ARGS) (
23 IN CHAR16 *Args,
24 IN UINTN Size
25 );
26
27 typedef
28 EFI_STATUS
29 (EFIAPI *ANDROID_BOOTIMG_UPDATE_DTB) (
30 IN EFI_PHYSICAL_ADDRESS OrigDtbBase,
31 OUT EFI_PHYSICAL_ADDRESS *NewDtbBase
32 );
33
34 struct _ANDROID_BOOTIMG_PROTOCOL {
35 ANDROID_BOOTIMG_APPEND_KERNEL_ARGS AppendArgs;
36 ANDROID_BOOTIMG_UPDATE_DTB UpdateDtb;
37 };
38
39 extern EFI_GUID gAndroidBootImgProtocolGuid;
40
41 #endif /* __ANDROID_BOOTIMG_PROTOCOL_H__ */