From patchwork Wed Aug 20 14:46:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 81 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755701214; bh=HQt8vOZoUGzEMfGzZWSCbX39a1UQIY2tlzlQuh6aJu0=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=szWxME4f8ApvHZGh+LmNbePyv82M8UxaomvSJOGaEpKYKrYhMG12U7SdZ1iyUXelC L8CTbZ7v3m9g4i4c1RGAPuhXPkJZS0MmKmdrQ2BR2pImUYs/uOrrNm55TKd+0DAG4N fp4aJbebdwOzvm7Fmy+vjK4f/4krvp9hHSbcg2/xGv7zOYFGdl5LTgzO0cHSqomiBC GkG82eDDk0APm9ehr64N1U84tpLIVztizRq9gSYKj/uhRxOoeBa/ze20MoRHTCnQ/s vpqJy+QfxMhkKDV2Vl6+vEqUeQfNJI5hJNCD9Aizvpdt/fT0wR5mAS2plTv2X4BuCO zngQZcgalD8Ew== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 39CCB6768B for ; Wed, 20 Aug 2025 08:46:54 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id dhrTO0FAoPcf for ; Wed, 20 Aug 2025 08:46:54 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755701208; bh=HQt8vOZoUGzEMfGzZWSCbX39a1UQIY2tlzlQuh6aJu0=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=WiTulHh9LAYtRu4bPgoClg3qEAamWkz9v9jI3Q+lxOrkb7VTHUjbap3S2xuuDYz4L cqhB3Uocm98nsTavxZK5Adu+F8vz1fXwxmNJhJ4a4Ub3RduacVjXgm92R9mFZ0cHVE HGxXuvnTiqozIp6zJBf5QZSAhbKesRZuRKVEDyDdBG+pBeXevwdgAQWvcfvLs5batM pZ7FjJkkzAL5/fTGB0h5QXAYtZsEvR67ThQIItPWcCCgZ5Ueh7Smod3PLWbBeZE4tT zPeJE4PJfgvT87lXMZXWsKUNLsIq2i0SbJ9zPHdBSseYpufnkIbw0x3AKGhgTxavO1 +vUqLL87ZiOkQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D8C1D6769B for ; Wed, 20 Aug 2025 08:46:48 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755701207; bh=O+JfAt+GWHm88QVBJvHvYzSvFRMi22fqN1B5QFrCIXk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=osYWJMOHgudXxgY5nq6ozdMX3nezWxC4rnp3KBbhP/kGtrmn1Xt57Q91384KwLtcU ucd+K8DS/D6+w2/kFhZygRKqQxNqAr/zAldVpGIfeWgtUTqGlRmxq56i54qSJIL7gf ZD3DDhm8vJz8ax+mA8VSKCEvMC4Xzl0rMIrtEpH2ch3oi4t47Z2ONG8GmrhvGjn1rI INAB/7pSEy64w6QHLJtBBR8ERvTL0wQe+IOhkkMN7vESNPW3H8yFoNrJZ/lnb3+qe1 9i2eSC0BpANUo3fq2aRHVynDjj3d/3onxGONZIDsSGwYVzCjKMu7I54gQO5fz1ODjB uS8VEC5NhCHqw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6AA976768B; Wed, 20 Aug 2025 08:46:47 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id aUjdv3WbZZAi; Wed, 20 Aug 2025 08:46:47 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755701205; bh=e4nldg+cphk8AHA8p3F5WwIp9UcGlrISlBjDiZMYSKA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GoDFmy86UGkuo3Jt4g+In+xcygnEvGtzd0fMQO+gWw2M8IiABmZek96ly3X/wF12F KO8CZO5veNU1Yd4SHFZh6rNHQc0Z6AzhGjhMLWlzB1oDkejo7XLN7sU3Cew142cxp1 H+n702EbDiTJFlWzz+BPwde0B+zCwGgKyaZ7N9ofyAvrevJHbEW/SZudMzh2U7HGAT J5PpBDxaAm4d3sPyMfUHKurbHQttLNYxMNcm2h6PYiaGSIdbTyEW7yAOTehstmcUzw yA4uLTNr+WN5/H0zPTb/lRZDKzL21SkaF46sGNxYi90v9dOOFzL6oIP9zRNnHZuOqJ eykPjROVIOyMw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 1EA456769B; Wed, 20 Aug 2025 08:46:45 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Wed, 20 Aug 2025 08:46:05 -0600 Message-ID: <20250820144621.1073679-4-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250820144621.1073679-1-sjg@u-boot.org> References: <20250820144621.1073679-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: EASM47PFGBA6BP2DAC3NTM6FOQ5EEOIN X-Message-ID-Hash: EASM47PFGBA6BP2DAC3NTM6FOQ5EEOIN X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 03/14] efi: Move driver-binding guid to a common file List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Move efi_guid_driver_binding_protocol to lib/efi so that it can be used from the app. Signed-off-by: Simon Glass --- include/efi.h | 2 ++ include/efi_loader.h | 2 -- lib/efi/device_path.c | 3 +++ lib/efi_loader/efi_boottime.c | 3 --- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/efi.h b/include/efi.h index 54da1540d0b..60afb18784d 100644 --- a/include/efi.h +++ b/include/efi.h @@ -154,6 +154,8 @@ typedef struct efi_object *efi_handle_t; extern const efi_guid_t efi_global_variable_guid; extern const efi_guid_t efi_guid_fdt; +/* GUID of the EFI_DRIVER_BINDING_PROTOCOL */ +extern const efi_guid_t efi_guid_driver_binding_protocol; /* Generic EFI table header */ struct efi_table_hdr { diff --git a/include/efi_loader.h b/include/efi_loader.h index 2d5e8de0132..a475ebb5413 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -321,8 +321,6 @@ extern const efi_guid_t efi_guid_console_control; extern const efi_guid_t efi_guid_device_path; /* GUID of the EFI system partition */ extern const efi_guid_t efi_system_partition_guid; -/* GUID of the EFI_DRIVER_BINDING_PROTOCOL */ -extern const efi_guid_t efi_guid_driver_binding_protocol; /* event group ExitBootServices() invoked */ extern const efi_guid_t efi_guid_event_group_exit_boot_services; /* event group SetVirtualAddressMap() invoked */ diff --git a/lib/efi/device_path.c b/lib/efi/device_path.c index db5a686ccb2..3fd5c75aeee 100644 --- a/lib/efi/device_path.c +++ b/lib/efi/device_path.c @@ -34,6 +34,9 @@ const efi_guid_t efi_file_info_guid = EFI_FILE_INFO_GUID; const efi_guid_t efi_u_boot_guid = U_BOOT_GUID; /* GUID of the device tree table */ const efi_guid_t efi_guid_fdt = EFI_FDT_GUID; +/* GUID of the EFI_DRIVER_BINDING_PROTOCOL */ +const efi_guid_t efi_guid_driver_binding_protocol = + EFI_DRIVER_BINDING_PROTOCOL_GUID; /* template EFI_DP_END node: */ const struct efi_device_path EFI_DP_END = { diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index 0f9a654ca03..6c5ebdad95e 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -68,9 +68,6 @@ efi_status_t efi_uninstall_protocol /* 1 if inside U-Boot code, 0 if inside EFI payload code */ static int entry_count = 1; static int nesting_level; -/* GUID of the EFI_DRIVER_BINDING_PROTOCOL */ -const efi_guid_t efi_guid_driver_binding_protocol = - EFI_DRIVER_BINDING_PROTOCOL_GUID; /* event group ExitBootServices() invoked */ const efi_guid_t efi_guid_event_group_exit_boot_services =