From patchwork Wed Mar 1 06:36:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 94680 Delivered-To: patch@linaro.org Received: by 10.140.20.113 with SMTP id 104csp1653433qgi; Tue, 28 Feb 2017 22:36:20 -0800 (PST) X-Received: by 10.84.175.132 with SMTP id t4mr8147078plb.38.1488350180400; Tue, 28 Feb 2017 22:36:20 -0800 (PST) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id g2si3794569plk.70.2017.02.28.22.36.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Feb 2017 22:36:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 005E4821D2; Tue, 28 Feb 2017 22:36:20 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org 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 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: [edk2] [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: , Cc: Haojian Zhuang MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(+) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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