summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/efi/mnpnet.h
diff options
context:
space:
mode:
authorMichael Brown2024-03-29 13:58:10 +0100
committerMichael Brown2024-03-29 15:46:13 +0100
commitb66f6025fa50f929c8e6448c383ffec273d41e6c (patch)
tree000bc509e9980eab923104c2733827672fe29cd6 /src/include/ipxe/efi/mnpnet.h
parent[efi] Allow for allocating EFI devices from arbitrary handles (diff)
downloadipxe-b66f6025fa50f929c8e6448c383ffec273d41e6c.tar.gz
ipxe-b66f6025fa50f929c8e6448c383ffec273d41e6c.tar.xz
ipxe-b66f6025fa50f929c8e6448c383ffec273d41e6c.zip
[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>
Diffstat (limited to 'src/include/ipxe/efi/mnpnet.h')
-rw-r--r--src/include/ipxe/efi/mnpnet.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/ipxe/efi/mnpnet.h b/src/include/ipxe/efi/mnpnet.h
new file mode 100644
index 00000000..99d6cf08
--- /dev/null
+++ b/src/include/ipxe/efi/mnpnet.h
@@ -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 */