summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/efi/snpnet.h
diff options
context:
space:
mode:
authorMichael Brown2014-07-04 17:52:10 +0200
committerMichael Brown2014-07-08 15:01:55 +0200
commitd0cfbd01f51661994a8e8379ddda6d592177a29b (patch)
tree0d215d4b9b43352229526262bab6250c905908c0 /src/drivers/net/efi/snpnet.h
parent[efi] Attempt to start only drivers claiming support for a device (diff)
downloadipxe-d0cfbd01f51661994a8e8379ddda6d592177a29b.tar.gz
ipxe-d0cfbd01f51661994a8e8379ddda6d592177a29b.tar.xz
ipxe-d0cfbd01f51661994a8e8379ddda6d592177a29b.zip
[efi] Rewrite SNP NIC driver
Rewrite the SNP NIC driver to use non-blocking and deferrable transmissions, to provide link status detection, to provide information about the underlying (PCI) hardware device, and to avoid unnecessary I/O buffer allocations during receive polling. 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.h26
1 files changed, 4 insertions, 22 deletions
diff --git a/src/drivers/net/efi/snpnet.h b/src/drivers/net/efi/snpnet.h
index 72b4a7d6..e6d31d5e 100644
--- a/src/drivers/net/efi/snpnet.h
+++ b/src/drivers/net/efi/snpnet.h
@@ -1,35 +1,17 @@
-/*
- * 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
+ * SNP NIC driver
*
*/
FILE_LICENCE ( GPL2_OR_LATER );
-struct snp_device;
+struct efi_device;
-extern int snpnet_probe ( struct snp_device *snpdev );
-extern void snpnet_remove ( struct snp_device *snpdev );
+extern int snpnet_start ( struct efi_device *efidev );
+extern void snpnet_stop ( struct efi_device *efidev );
#endif /* _SNPNET_H */