diff options
author | Michael Brown <mcb30@ipxe.org> | 2024-03-22 15:30:45 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-03-25 17:58:33 +0000 |
commit | dcad73ca5ad3e1fe011c52a24036f67ad69fadc1 (patch) | |
tree | ecb05e55a634d6d63cc46f6f3a02eb3930e30eb6 /src/drivers/net/efi/mnpnet.h | |
parent | da5188f3ea73900f1c6a4e44a8345b48320d396f (diff) | |
download | ipxe-dcad73ca5ad3e1fe011c52a24036f67ad69fadc1.tar.gz |
[efi] Add support for driving EFI_MANAGED_NETWORK_PROTOCOL devices
We want exclusive access to the network device, both for performance
reasons and because we perform operations such as EAPoL that affect
the entire link. We currently drive the network card via either a
native hardware driver or via the SNP or NII/UNDI interfaces, both of
which grant us this exclusive access.
Add an alternative driver that drives the network card non-exclusively
via the EFI_MANAGED_NETWORK_PROTOCOL interface. This can function as
a fallback for situations where neither SNP nor NII/UNDI interfaces
are functional, and also opens up the possibility of non-destructively
installing a temporary network device over which to download the
autoexec.ipxe script.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/efi/mnpnet.h')
-rw-r--r-- | src/drivers/net/efi/mnpnet.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/drivers/net/efi/mnpnet.h b/src/drivers/net/efi/mnpnet.h new file mode 100644 index 000000000..afed62aae --- /dev/null +++ b/src/drivers/net/efi/mnpnet.h @@ -0,0 +1,17 @@ +#ifndef _MNPNET_H +#define _MNPNET_H + +/** @file + * + * MNP NIC driver + * + */ + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + +struct efi_device; + +extern int mnpnet_start ( struct efi_device *efidev ); +extern void mnpnet_stop ( struct efi_device *efidev ); + +#endif /* _MNPNET_H */ |