[U-Boot] [PATCH v4 3/9] efi_driver: add name to driver binding protocol
AKASHI Takahiro
takahiro.akashi at linaro.org
Tue Jan 15 02:55:16 UTC 2019
This new field will be shown as a driver's name in "efitool drivers"
command.
Signed-off-by: AKASHI Takahiro <takahiro.akashi at linaro.org>
---
include/efi_driver.h | 1 +
lib/efi_driver/efi_uclass.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/include/efi_driver.h b/include/efi_driver.h
index 840483a416a4..ee8867816094 100644
--- a/include/efi_driver.h
+++ b/include/efi_driver.h
@@ -34,6 +34,7 @@ struct efi_driver_ops {
* This structure adds internal fields to the driver binding protocol.
*/
struct efi_driver_binding_extended_protocol {
+ const char *name;
struct efi_driver_binding_protocol bp;
const struct efi_driver_ops *ops;
};
diff --git a/lib/efi_driver/efi_uclass.c b/lib/efi_driver/efi_uclass.c
index bb86ffd399c3..8bbaa02d490e 100644
--- a/lib/efi_driver/efi_uclass.c
+++ b/lib/efi_driver/efi_uclass.c
@@ -271,6 +271,7 @@ static efi_status_t efi_add_driver(struct driver *drv)
bp->bp.stop = efi_uc_stop;
bp->bp.version = 0xffffffff;
bp->ops = drv->ops;
+ bp->name = drv->name;
ret = efi_create_handle(&bp->bp.driver_binding_handle);
if (ret != EFI_SUCCESS) {
--
2.19.1
More information about the U-Boot
mailing list