From nobody Sat Nov 2 14:35:52 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 148835018113491.8434782862638; Tue, 28 Feb 2017 22:36:21 -0800 (PST) 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) 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) 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) X-Original-To: edk2-devel@lists.01.org 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) 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 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" 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/Embed= dedPkg/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 ); =20 +/* + 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; =20 #endif --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel