From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-x22d.google.com (mail-pf0-x22d.google.com [IPv6:2607:f8b0:400e:c00::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8620F821D2 for ; Tue, 28 Feb 2017 22:36:18 -0800 (PST) Received: by mail-pf0-x22d.google.com with SMTP id j5so8083259pfb.2 for ; Tue, 28 Feb 2017 22:36:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yefiSav1aCbqlrYDF7pPRJEfgWKSHhqH55MTZVyq4go=; b=EsTw3BzviEpCAHa1MrJxe/o9bUkdwBeWS8s/jEDETh740wXCbSGO9TBzpqXuASpTaC Q2Xx2rU50HQNWDFD3Ki8D0PLmnGOfpTgO7jZLRo/fOoE3UM7E16njx2HDy1thQe8dG8l 2B882An7CXsvqBwBluZREIByZfAvj7l4l4ApQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yefiSav1aCbqlrYDF7pPRJEfgWKSHhqH55MTZVyq4go=; b=IPKrEOR+6OH0MdKC7n9US11olyQFxmoPeNjV0ws6GaFGsUMLRyFYOI1HfDIgqrTLnf 7G50AobT7IHiR+iI107QXLMdiLrjIZUvTKkZIbkj91/SCff9kWm1z7AxrmqqHCjWo4ID whsSNHFxQ4P+/M4GG9HUMk27xLvC9Wf63dXCs6Nd9awM9835HcDDILX+Umax9/dqzeoS BVX69smSD8Ra0ZSCBN7b7L/DqIug1jDMR3WL0P0lCJCNYMBTL1TeArxlzTM5T0M6L8mP +cd6LBlGhPusTmGq0HQ6HkWhqTXlnoE0yHjqcBXFDX21L80fdQF02TlcARqYxk6W3FcN xIkg== X-Gm-Message-State: AMke39nM+2ZYhZFtsz0TcbOE7QNeOhYUxE0OPlQV4wXu3nM2IR7YIU0eYxwipj4NFdPNJxk/ X-Received: by 10.99.101.67 with SMTP id z64mr2281891pgb.78.1488350178189; Tue, 28 Feb 2017 22:36:18 -0800 (PST) Received: from localhost.localdomain ([45.56.159.97]) by smtp.gmail.com with ESMTPSA id r17sm7910668pgg.19.2017.02.28.22.36.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Feb 2017 22:36:17 -0800 (PST) From: Haojian Zhuang To: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, edk2-devel@lists.01.org, linaro-uefi@lists.linaro.org Cc: Haojian Zhuang Date: Wed, 1 Mar 2017 14:36:04 +0800 Message-Id: <1488350167-30752-2-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488350167-30752-1-git-send-email-haojian.zhuang@linaro.org> References: <1488350167-30752-1-git-send-email-haojian.zhuang@linaro.org> Subject: [PATCH 1/4] EmbeddedPkg/AndroidFastboot: add the GetKernelArgs interface X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Mar 2017 06:36:18 -0000 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 --- 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