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: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
2e0864a47e
commit
bdecf974f1
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user