[edk2] [PATCH 1/4] EmbeddedPkg/AndroidFastboot: add the GetKernelArgs interface

Haojian Zhuang posted 4 patches 7 years, 8 months ago
[edk2] [PATCH 1/4] EmbeddedPkg/AndroidFastboot: add the GetKernelArgs interface
Posted by Haojian Zhuang 7 years, 8 months ago
Add the GetKernelArgs () interface in FASTBOOT_PLATFORM_PROTOCOL.
It's used to load platform command line arguments that could
be merged into the command line to boot android kernel.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
---
 EmbeddedPkg/Include/Protocol/AndroidFastbootPlatform.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/EmbeddedPkg/Include/Protocol/AndroidFastbootPlatform.h b/EmbeddedPkg/Include/Protocol/AndroidFastbootPlatform.h
index a9b4aac..b3c868a 100644
--- a/EmbeddedPkg/Include/Protocol/AndroidFastbootPlatform.h
+++ b/EmbeddedPkg/Include/Protocol/AndroidFastbootPlatform.h
@@ -133,6 +133,18 @@ EFI_STATUS
   IN  CHAR8   *Command
   );
 
+/*
+  Get platform kernel arguments.
+
+  @retval Null terminated CHAR16 string.
+  @retval NULL              If fail to get platform kernel arguments.
+ */
+typedef
+CHAR16 *
+(*FASTBOOT_PLATFORM_GETARGS) (
+  VOID
+  );
+
 typedef struct _FASTBOOT_PLATFORM_PROTOCOL {
   FASTBOOT_PLATFORM_INIT          Init;
   FASTBOOT_PLATFORM_UN_INIT       UnInit;
@@ -140,6 +152,7 @@ typedef struct _FASTBOOT_PLATFORM_PROTOCOL {
   FASTBOOT_PLATFORM_ERASE         ErasePartition;
   FASTBOOT_PLATFORM_GETVAR        GetVar;
   FASTBOOT_PLATFORM_OEM_COMMAND   DoOemCommand;
+  FASTBOOT_PLATFORM_GETARGS       GetKernelArgs;
 } FASTBOOT_PLATFORM_PROTOCOL;
 
 #endif
-- 
2.7.4

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel