[efi] Add the ability to create a temporary MNP network device

An MNP network device may be temporarily and non-destructively
installed on top of an existing UEFI network stack without having to
disconnect existing drivers.

Add the ability to create such a temporary network device.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2024-03-29 12:58:10 +00:00
parent b52b4a46d9
commit b66f6025fa
5 changed files with 78 additions and 20 deletions

View File

@@ -0,0 +1,20 @@
#ifndef _IPXE_EFI_MNPNET_H
#define _IPXE_EFI_MNPNET_H
/** @file
*
* MNP NIC driver
*
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
struct efi_device;
struct net_device;
extern int mnpnet_start ( struct efi_device *efidev );
extern void mnpnet_stop ( struct efi_device *efidev );
extern int mnptemp_create ( EFI_HANDLE handle, struct net_device **netdev );
extern void mnptemp_destroy ( struct net_device *netdev );
#endif /* _IPXE_EFI_MNPNET_H */