Skip to content
Snippets Groups Projects
Commit bdecf974 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Alexander Graf
Browse files

efi_loader: fill simple network protocol revision


Provide the simple network protocol revision.
This revision number could be used to identify backwards compatible
enhancements of the protocol.

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 2e0864a4
Branches
Tags
No related merge requests found
...@@ -600,6 +600,9 @@ struct efi_simple_network_mode { ...@@ -600,6 +600,9 @@ struct efi_simple_network_mode {
#define EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS 0x08 #define EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS 0x08
#define EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS_MULTICAST 0x10 #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 struct efi_simple_network
{ {
u64 revision; u64 revision;
......
...@@ -228,6 +228,7 @@ int efi_net_register(void) ...@@ -228,6 +228,7 @@ int efi_net_register(void)
netobj->parent.protocols[2].guid = &efi_pxe_guid; netobj->parent.protocols[2].guid = &efi_pxe_guid;
netobj->parent.protocols[2].protocol_interface = &netobj->pxe; netobj->parent.protocols[2].protocol_interface = &netobj->pxe;
netobj->parent.handle = &netobj->net; netobj->parent.handle = &netobj->net;
netobj->net.revision = EFI_SIMPLE_NETWORK_PROTOCOL_REVISION;
netobj->net.start = efi_net_start; netobj->net.start = efi_net_start;
netobj->net.stop = efi_net_stop; netobj->net.stop = efi_net_stop;
netobj->net.initialize = efi_net_initialize; netobj->net.initialize = efi_net_initialize;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment