From patchwork Thu Nov 15 04:58:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 151159 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6553578ljp; Wed, 14 Nov 2018 20:56:46 -0800 (PST) X-Google-Smtp-Source: AJdET5fRkqqe83byaqej73RM30TkbwRPNTVwYia/HuBDJ/88mt031kR5+ExPm1xZG0BO0svY6Ra0 X-Received: by 2002:a17:906:5451:: with SMTP id d17-v6mr3980888ejp.65.1542257806135; Wed, 14 Nov 2018 20:56:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542257806; cv=none; d=google.com; s=arc-20160816; b=RsG4W2gLlYb0RNAELQXfbfRTisVPKy0AwU+3nTeAqFbhXWEAYGxrER7H5JVCH8JHqg vVG75KNdmGWVD7bda+jPIL9flbrEMazALCp6A3TscBgnEL+CTDo75ehHAzIOkmUpnQPM SN+AMZHuBlklZMSXwoGBSA9lfsdP+8sga1X4RRp/pxFuMXspNk6e098gwqN+3Z63P3BY XkLWe40+CItk1Ft27Fdquv1MU73kn0RLZ+cjDZjejpWygPrYAd6cg8JwXCbsnd+7Impr Mci6b1mNGrIOI8Tc14+vsqJATZhSoztMDAN3QDGeOoqizw1STMboi0ueHaKYOBLb0Fbd 0fTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature; bh=aeWfbizHoZv5nZsh0Lcyhb9mIX9ikgpnbXzyeJvlrxU=; b=y8IEbKLM1kmB+075oTBu0jo6BBNUfuRdY2+DCajkdqZb4nCNgMXW+ZKkuxZ1yzaszV aCAIr12U6tVH/Iw625jXL6Bd8bpNdbIOLkPLtnQOe4PNqlyxDL2DaS+jIKr6obHPn+iF EW0qX0Z2kD7Ynho5tNnqNzdWVEXpJUf3alj6ndb3mJM6kJ18UY3H8KY8tIvMAy3d2oec t4D8XJviylwOh7ilSpm2xwF1aV8TPTR+t+15HvUYQdxLOw60tT9q3dqN7uv7FXDoW31+ iMsruy5zc1SAAE2/i9uyod5hos/1BdMexLOY71wXNl/8nJGcCJlnwk3PPvxMKXUFhLMV M+7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FnCEE9vZ; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id g7-v6si4011150ejl.130.2018.11.14.20.56.45; Wed, 14 Nov 2018 20:56:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FnCEE9vZ; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id AF2B4C222EA; Thu, 15 Nov 2018 04:56:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 1200FC2222E; Thu, 15 Nov 2018 04:56:19 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C1DCEC2230E; Thu, 15 Nov 2018 04:56:08 +0000 (UTC) Received: from mail-yb1-f195.google.com (mail-yb1-f195.google.com [209.85.219.195]) by lists.denx.de (Postfix) with ESMTPS id 3C7FEC224BC for ; Thu, 15 Nov 2018 04:56:04 +0000 (UTC) Received: by mail-yb1-f195.google.com with SMTP id z2-v6so7899287ybj.2 for ; Wed, 14 Nov 2018 20:56:04 -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 :mime-version:content-transfer-encoding; bh=OI5gh0nWF6I0YMQWT1smhvKgKU/mIhq5m46Ts4nuKQ4=; b=FnCEE9vZPYqfu2LMapj6NZ1BqlLC20C4qOLSPuj1VnmtMe2mwKT3akiyHYNFyQ0GJr JIbsrEM7o4kDBCdH69d9ckyVwfbJIMjgQflMKtXjAk7lfHzjP1H4R5TmYG8Kmd57f8zx mbedo+6RPdxAFkPTN07kNsh35AdGXG/4VSAJs= 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:mime-version:content-transfer-encoding; bh=OI5gh0nWF6I0YMQWT1smhvKgKU/mIhq5m46Ts4nuKQ4=; b=gM2PvdKPSDN+ZD10OC3T+Av8iPeiKLdZFlEQE7TPef7YEmzf0Y0Q0DKNzhXhPu/uu0 MpVkoRixvczirlA8OGPU6VwnnKNk3fRToHpHTsdcrv2XhgrYnuysq+Jyr4SuiOWoEp4l LXHw02CAUNyA5fI0I2UvQoKcGoXTTdoMnluYYahly1q07WYcJkkbly2vcp+T4ipJhfao KtECLY7sQm308oCvbjJPFsSBaDMp7L7CU7BhB+QBMTNfEFc99Gwwn4UnmVeuPzYHie76 3qFF0mVlg5jzNZJcnWZCAXqK+fU73Dfm7RCtFc6EoLDFBu9sGKgx7ggYHA1QOrhUTE0h zi2A== X-Gm-Message-State: AGRZ1gIs0HuMTuW+V8qrPC0JwH88ofuVkk5sXGuUHM70S7TF0zkyBU0U UKBU/hKP+IoXRXNYz2Rzn+gVuQ== X-Received: by 2002:a25:1c5:: with SMTP id 188-v6mr4410714ybb.374.1542257762957; Wed, 14 Nov 2018 20:56:02 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id x4-v6sm4572394ywe.105.2018.11.14.20.56.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 20:56:02 -0800 (PST) From: AKASHI Takahiro To: trini@konsulko.com, agraf@suse.de Date: Thu, 15 Nov 2018 13:58:08 +0900 Message-Id: <20181115045810.28736-2-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181115045810.28736-1-takahiro.akashi@linaro.org> References: <20181115045810.28736-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Cc: xypron.glpk@gmx.de, u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2 1/3] efi_loader: export efi_locate_handle() function X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This function will be used later to implement efi_disk_update(). Signed-off-by: AKASHI Takahiro --- include/efi_loader.h | 4 ++++ lib/efi_loader/efi_boottime.c | 7 +++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/include/efi_loader.h b/include/efi_loader.h index ce0f420b5004..5cc3bded03fa 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -318,6 +318,10 @@ efi_status_t efi_create_handle(efi_handle_t *handle); void efi_delete_handle(efi_handle_t obj); /* Call this to validate a handle and find the EFI object for it */ struct efi_object *efi_search_obj(const efi_handle_t handle); +/* locate handles */ +efi_status_t efi_locate_handle(enum efi_locate_search_type search_type, + const efi_guid_t *protocol, void *search_key, + efi_uintn_t *buffer_size, efi_handle_t *buffer); /* Find a protocol on a handle */ efi_status_t efi_search_protocol(const efi_handle_t handle, const efi_guid_t *protocol_guid, diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index 8a43a5a84091..a3c56bbab552 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -1309,10 +1309,9 @@ static int efi_search(enum efi_locate_search_type search_type, * * Return: status code */ -static efi_status_t efi_locate_handle( - enum efi_locate_search_type search_type, - const efi_guid_t *protocol, void *search_key, - efi_uintn_t *buffer_size, efi_handle_t *buffer) +efi_status_t efi_locate_handle(enum efi_locate_search_type search_type, + const efi_guid_t *protocol, void *search_key, + efi_uintn_t *buffer_size, efi_handle_t *buffer) { struct efi_object *efiobj; efi_uintn_t size = 0;