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: 994010 X-Patchwork-Delegate: agraf@suse.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Ib4LFqwt"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42qSLR3PWcz9s9h for ; Wed, 7 Nov 2018 11:42:36 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 66883C22791; 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-Google-Smtp-Source: AJdET5dGMpyLF+/o9T1ui/PE/ZAVctjUgUJmLdgjg+vQdtD0Br1T2XUrLZLYe3j85B60TjEW1piHdA== 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;