summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/efi/snpnet.h
diff options
context:
space:
mode:
authorGeoff Lywood2010-05-28 05:08:28 +0200
committerMichael Brown2010-06-02 16:15:29 +0200
commit62149deb116516bb0d70b756bfc4f5b4669034da (patch)
treeb8adc9a047202f1cebc15f244da2c36d75a05ba0 /src/drivers/net/efi/snpnet.h
parent[qib7322] Fix whitespace errors (diff)
downloadipxe-62149deb116516bb0d70b756bfc4f5b4669034da.tar.gz
ipxe-62149deb116516bb0d70b756bfc4f5b4669034da.tar.xz
ipxe-62149deb116516bb0d70b756bfc4f5b4669034da.zip
[efi] Add the "snpnet" driver
Add a new network driver that consumes the EFI Simple Network Protocol. Also add a bus driver that can find the Simple Network Protocol that iPXE was loaded from; the resulting behavior is similar to the "undionly" driver for BIOS systems. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/efi/snpnet.h')
-rw-r--r--src/drivers/net/efi/snpnet.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/drivers/net/efi/snpnet.h b/src/drivers/net/efi/snpnet.h
new file mode 100644
index 00000000..72b4a7d6
--- /dev/null
+++ b/src/drivers/net/efi/snpnet.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2010 VMware, Inc. All Rights Reserved.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef _SNPNET_H
+#define _SNPNET_H
+
+/** @file
+ *
+ * EFI Simple Network Protocol network device driver
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+struct snp_device;
+
+extern int snpnet_probe ( struct snp_device *snpdev );
+extern void snpnet_remove ( struct snp_device *snpdev );
+
+#endif /* _SNPNET_H */