From patchwork Wed Nov 7 00:44:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 150366 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4555236ljp; Tue, 6 Nov 2018 16:42:31 -0800 (PST) X-Google-Smtp-Source: AJdET5e9kE3A6Fg/JmNgKmaqxS6S58NYFIyvdH8rs0puC41RSYWAIZbyGWAja/BIld7+DjAUOxzf X-Received: by 2002:a17:906:2da9:: with SMTP id g9-v6mr108323eji.67.1541551351753; Tue, 06 Nov 2018 16:42:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541551351; cv=none; d=google.com; s=arc-20160816; b=xvoHygXJ0YW6+ixYZ5e4TcHKZVocJaUPmQZMOlLL52QKbGmmopl3s6oMaLD0+sfC1W UJDuFOm0KnRsjhGg8bC0m15S3oYTJqIed9D+RwCcQc0xMJOP5AY/acYiMXIXHf4vgxdE 917yEolWKqyWIeB9fvfc3a7jc3kHNQnlb/CHliqFbUPhW2qrDMm4ud0Lkf+jSlLT0SKR 3MsQTxvncJ/FOsKSvXRY9y4rjq1iFgZmww5LtygWHBMQ/qAsvctzB5Ymb5YYq5yzY+BY T+Ej5i2CTVhECKzYbbEOlmfmrOIUIrX8RqwToWif+XnwJUENzkYS0YFY9N3x6nUfGGFk qE2g== 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:message-id:date:to:from:dkim-signature; bh=aeWfbizHoZv5nZsh0Lcyhb9mIX9ikgpnbXzyeJvlrxU=; b=UNjdNEFzuEMNDeXxSlaPI7LxTy6ge1YMkJF+iYEnmCX8OBS/+dBSow8PQWcw3bQPgu 4tUVXDW8oxDhTRqZH+JBON4sJeBMcjoFRvRV3WkNN7s57m0Il4m5EzfihuxSYoifpGlv 7RHWNKPych4ELShC+J5mCBs/g9vhKiMscuAm8CbHnTPz/3anEAh9lTW8RErtCDZ8YnjY 7RxMGQBTkWQESYmyX9YEngdjWB58E2Ob8KSBMtZ69KmDB8sHHUm8vpyusNmpqOGDWAw6 g2NG1beUjQQaKvhEmDFbfmwrQ4pyaBshhqA0WcwZvSJQltrvq8/2egUacPkMUUoC0cwR Fa5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ib4LFqwt; 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 k6-v6si6706503edk.323.2018.11.06.16.42.31; Tue, 06 Nov 2018 16:42:31 -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=Ib4LFqwt; 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 15D5EC223E9; Wed, 7 Nov 2018 00:42:28 +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_DNSWL_NONE, 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 7AA85C223E9; Wed, 7 Nov 2018 00:42:26 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3397BC223E9; Wed, 7 Nov 2018 00:42:25 +0000 (UTC) Received: from mail-yb1-f194.google.com (mail-yb1-f194.google.com [209.85.219.194]) by lists.denx.de (Postfix) with ESMTPS id 9D65DC21DD7 for ; Wed, 7 Nov 2018 00:42:24 +0000 (UTC) Received: by mail-yb1-f194.google.com with SMTP id p144-v6so6148927yba.11 for ; Tue, 06 Nov 2018 16:42:24 -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:mime-version :content-transfer-encoding; bh=OI5gh0nWF6I0YMQWT1smhvKgKU/mIhq5m46Ts4nuKQ4=; b=Ib4LFqwtxXD1bjLYphc4r5uG/oFJGkGYMzBsnWTUt422MBPpuXsinxhGD+EFnW4I43 F7yks1R9b0Z0lUDk7herx9vAeuUckUboIxSbnWfSDcvEnBrXmX8mvMCKYCSAgjkrknRG ovtMIk/Lc/lc0/oeOq/x1DnnejQTAGeG5jXJM= 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:mime-version :content-transfer-encoding; bh=OI5gh0nWF6I0YMQWT1smhvKgKU/mIhq5m46Ts4nuKQ4=; b=bHG03eHl/sVKF6V+BMMRVCPR8oIOXRaJMJHF2PDYYE2xFeef8tCb0XdHogK/N99JVM MYxMUCiJKPuRQzuPZ3Z1rY3qMECZfCr+NSuuUmtZwaL8P6dvJSbgGt/nPm/StP99pWyN I4XzYj7dg4oaUzbf+VzJNKEVmgDJXDfsuZ3gqNgHQrkXHIYJElnLEmopALslpcVinV0d R9458dqoI0qPRXLEXhkNSKzrcQuPGqiM7mzaH4r5ia/Y4YdHQk+irjY8pnUZ2vWQ4b3a D/+YQ3nYDuLsf4jfP1jZgMRbic5Z8zR1arrB28na5pPY9FA7j63vvubr2Xhzn2/RIU3z RbIg== X-Gm-Message-State: AGRZ1gLfylZXoOsjPFvyRQ+ibcHOIBW3nty4OOEmNE8s/+mLrJb7IxmM bqZnCf6GRj2HQcC6z/OSWZ3+sg== X-Received: by 2002:a25:870e:: with SMTP id a14-v6mr14033304ybl.253.1541551343143; Tue, 06 Nov 2018 16:42:23 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id v129-v6sm1929461ywa.8.2018.11.06.16.42.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 16:42:22 -0800 (PST) From: AKASHI Takahiro To: trini@konsulko.com, agraf@suse.de Date: Wed, 7 Nov 2018 09:44:33 +0900 Message-Id: <20181107004434.31491-1-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Cc: xypron.glpk@gmx.de, u-boot@lists.denx.de Subject: [U-Boot] [PATCH 1/2] 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;