]> git.sur5r.net Git - u-boot/commitdiff
efi_loader: fill simple network protocol revision
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 5 Oct 2017 14:35:57 +0000 (16:35 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 9 Oct 2017 05:00:32 +0000 (07:00 +0200)
Provide the simple network protocol revision.
This revision number could be used to identify backwards compatible
enhancements of the protocol.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
include/efi_api.h
lib/efi_loader/efi_net.c

index 8c227ce7039cca9d981d416be15e32b2f310969b..2f31464cb3f9813b7d3df3af71d55fc15a6eac0f 100644 (file)
@@ -600,6 +600,9 @@ struct efi_simple_network_mode {
 #define EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS           0x08
 #define EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS_MULTICAST 0x10
 
+/* revision of the simple network protocol */
+#define EFI_SIMPLE_NETWORK_PROTOCOL_REVISION   0x00010000
+
 struct efi_simple_network
 {
        u64 revision;
index 91f1e4a69e15aad0c79e50ad9edbe6473e8ae7ae..fb23bcf6332c10a76e2095619a5aa1bd861d04ec 100644 (file)
@@ -228,6 +228,7 @@ int efi_net_register(void)
        netobj->parent.protocols[2].guid = &efi_pxe_guid;
        netobj->parent.protocols[2].protocol_interface = &netobj->pxe;
        netobj->parent.handle = &netobj->net;
+       netobj->net.revision = EFI_SIMPLE_NETWORK_PROTOCOL_REVISION;
        netobj->net.start = efi_net_start;
        netobj->net.stop = efi_net_stop;
        netobj->net.initialize = efi_net_initialize;