aboutsummaryrefslogtreecommitdiff
path: root/sys/i386
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>1999-08-18 22:14:24 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>1999-08-18 22:14:24 +0000
commit4b31e9d6a74391876f6e2c83d241491224e49193 (patch)
tree6edae49092709c4d1a11ba6c4dc817afbb1104c6 /sys/i386
parentf04626ff2274035a25143b49034557db4a35dbf7 (diff)
Make these actually compile. I got a little delete happy pruning includes
and used 'command' instead of 'cmd' in a few cases. Also clear up some unused variables. Pointed out by: phk
Notes
Notes: svn path=/head/; revision=50026
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/isa/if_el.c8
-rw-r--r--sys/i386/isa/if_ep.c9
-rw-r--r--sys/i386/isa/if_ex.c9
-rw-r--r--sys/i386/isa/if_fe.c6
-rw-r--r--sys/i386/isa/if_ie.c7
-rw-r--r--sys/i386/isa/if_le.c8
-rw-r--r--sys/i386/isa/if_lnc.c7
-rw-r--r--sys/i386/isa/if_wl.c5
-rw-r--r--sys/i386/isa/if_ze.c6
-rw-r--r--sys/i386/isa/if_zp.c8
10 files changed, 52 insertions, 21 deletions
diff --git a/sys/i386/isa/if_el.c b/sys/i386/isa/if_el.c
index c67aaeeee0fb..ad993b44537b 100644
--- a/sys/i386/isa/if_el.c
+++ b/sys/i386/isa/if_el.c
@@ -6,7 +6,7 @@
*
* Questions, comments, bug reports and fixes to kimmel@cs.umass.edu.
*
- * $Id: if_el.c,v 1.41 1999/07/06 19:22:45 des Exp $
+ * $Id: if_el.c,v 1.42 1999/08/18 06:11:58 mdodd Exp $
*/
/* Except of course for the portions of code lifted from other FreeBSD
* drivers (mainly elread, elget and el_ioctl)
@@ -31,8 +31,12 @@
#include <sys/socket.h>
#include <sys/syslog.h>
+#include <net/ethernet.h>
#include <net/if.h>
+#include <netinet/in.h>
+#include <netinet/if_ether.h>
+
#if NBPF > 0
#include <net/bpf.h>
#endif
@@ -636,8 +640,6 @@ el_ioctl(ifp, command, data)
u_long command;
caddr_t data;
{
- struct el_softc *sc = ifp->if_softc;
- struct ifreq *ifr = (struct ifreq *)data;
int s, error = 0;
s = splimp();
diff --git a/sys/i386/isa/if_ep.c b/sys/i386/isa/if_ep.c
index 6c9e5ec5421a..22daafb417ec 100644
--- a/sys/i386/isa/if_ep.c
+++ b/sys/i386/isa/if_ep.c
@@ -38,7 +38,7 @@
*/
/*
- * $Id: if_ep.c,v 1.81 1999/07/25 01:20:36 hosokawa Exp $
+ * $Id: if_ep.c,v 1.82 1999/08/18 06:11:58 mdodd Exp $
*
* Promiscuous mode added and interrupt logic slightly changed
* to reduce the number of adapter failures. Transceiver select
@@ -76,8 +76,12 @@
#include <sys/select.h>
#endif
+#include <net/ethernet.h>
#include <net/if.h>
+#include <netinet/in.h>
+#include <netinet/if_ether.h>
+
#if NBPF > 0
#include <net/bpf.h>
#endif
@@ -1211,7 +1215,6 @@ epioctl(ifp, cmd, data)
caddr_t data;
{
struct ep_softc *sc = ifp->if_softc;
- struct ifreq *ifr = (struct ifreq *) data;
int s, error = 0;
s = splimp();
@@ -1220,7 +1223,7 @@ epioctl(ifp, cmd, data)
case SIOCSIFADDR:
case SIOCGIFADDR:
case SIOCSIFMTU:
- error = ether_ioctl(ifp, command, data);
+ error = ether_ioctl(ifp, cmd, data);
break;
case SIOCSIFFLAGS:
diff --git a/sys/i386/isa/if_ex.c b/sys/i386/isa/if_ex.c
index c9d0292cca0d..2aef5b290ac4 100644
--- a/sys/i386/isa/if_ex.c
+++ b/sys/i386/isa/if_ex.c
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_ex.c,v 1.16 1999/07/06 19:22:47 des Exp $
+ * $Id: if_ex.c,v 1.17 1999/08/18 06:11:58 mdodd Exp $
*/
/*
@@ -48,8 +48,12 @@
#include <sys/mbuf.h>
#include <sys/socket.h>
+#include <net/ethernet.h>
#include <net/if.h>
+#include <netinet/in.h>
+#include <netinet/if_ether.h>
+
#if NBPF > 0
#include <net/bpf.h>
#endif
@@ -752,7 +756,6 @@ void ex_rx_intr(int unit)
int ex_ioctl(register struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct ex_softc *sc = &ex_sc[ifp->if_unit];
- struct ifreq *ifr = (struct ifreq *) data;
int s, error = 0;
DODEBUG(Start_End, printf("ex_ioctl%d: start ", ifp->if_unit););
@@ -763,7 +766,7 @@ int ex_ioctl(register struct ifnet *ifp, u_long cmd, caddr_t data)
case SIOCSIFADDR:
case SIOCGIFADDR:
case SIOCSIFMTU:
- error = ether_ioctl(ifp, command, data);
+ error = ether_ioctl(ifp, cmd, data);
break;
case SIOCSIFFLAGS:
diff --git a/sys/i386/isa/if_fe.c b/sys/i386/isa/if_fe.c
index fcd6dab67566..5eb03c70fe7c 100644
--- a/sys/i386/isa/if_fe.c
+++ b/sys/i386/isa/if_fe.c
@@ -21,7 +21,7 @@
*/
/*
- * $Id: if_fe.c,v 1.51 1999/07/06 19:22:48 des Exp $
+ * $Id: if_fe.c,v 1.52 1999/08/18 06:11:58 mdodd Exp $
*
* Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards.
* To be used with FreeBSD 3.x
@@ -81,12 +81,16 @@
#include <sys/mbuf.h>
#include <sys/socket.h>
+#include <net/ethernet.h>
#include <net/if.h>
#include <net/if_dl.h>
#include <net/if_mib.h>
#include <net/if_media.h>
#include <net/if_types.h>
+#include <netinet/in.h>
+#include <netinet/if_ether.h>
+
#if NBPF > 0
#include <net/bpf.h>
#endif
diff --git a/sys/i386/isa/if_ie.c b/sys/i386/isa/if_ie.c
index 0cfa9dd1b7bb..5c643ca3d143 100644
--- a/sys/i386/isa/if_ie.c
+++ b/sys/i386/isa/if_ie.c
@@ -47,7 +47,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_ie.c,v 1.61 1999/07/06 19:22:49 des Exp $
+ * $Id: if_ie.c,v 1.62 1999/08/18 06:11:59 mdodd Exp $
*/
/*
@@ -121,10 +121,14 @@ iomem and and with 0xffff.
#include <sys/sockio.h>
#include <sys/syslog.h>
+#include <net/ethernet.h>
#include <net/if.h>
#include <net/if_types.h>
#include <net/if_dl.h>
+#include <netinet/in.h>
+#include <netinet/if_ether.h>
+
#include "bpf.h"
#include <machine/clock.h>
@@ -2243,7 +2247,6 @@ ie_stop(int unit)
static int
ieioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
- struct ifreq *ifr = (struct ifreq *) data;
int s, error = 0;
s = splimp();
diff --git a/sys/i386/isa/if_le.c b/sys/i386/isa/if_le.c
index be8154a80947..073259d91138 100644
--- a/sys/i386/isa/if_le.c
+++ b/sys/i386/isa/if_le.c
@@ -21,7 +21,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_le.c,v 1.51 1999/07/06 19:22:49 des Exp $
+ * $Id: if_le.c,v 1.52 1999/08/18 06:11:59 mdodd Exp $
*/
/*
@@ -48,10 +48,14 @@
#include <sys/sockio.h>
#include <sys/malloc.h>
+#include <net/ethernet.h>
#include <net/if.h>
#include <net/if_types.h>
#include <net/if_dl.h>
+#include <netinet/in.h>
+#include <netinet/if_ether.h>
+
#include "bpf.h"
#include <machine/clock.h>
@@ -501,7 +505,7 @@ le_ioctl(
case SIOCSIFADDR:
case SIOCGIFADDR:
case SIOCSIFMTU:
- error = ether_ioctl(ifp, command, data);
+ error = ether_ioctl(ifp, cmd, data);
break;
case SIOCSIFFLAGS: {
diff --git a/sys/i386/isa/if_lnc.c b/sys/i386/isa/if_lnc.c
index 2bdfce48a0fa..ee75beb99b0e 100644
--- a/sys/i386/isa/if_lnc.c
+++ b/sys/i386/isa/if_lnc.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_lnc.c,v 1.62 1999/08/10 01:03:49 mdodd Exp $
+ * $Id: if_lnc.c,v 1.63 1999/08/18 06:11:59 mdodd Exp $
*/
/*
@@ -80,10 +80,14 @@
#include <sys/socket.h>
#include <sys/syslog.h>
+#include <net/ethernet.h>
#include <net/if.h>
#include <net/if_dl.h>
#include <net/if_types.h>
+#include <netinet/in.h>
+#include <netinet/if_ether.h>
+
#if NBPF > 0
#include <net/bpf.h>
#endif
@@ -1841,7 +1845,6 @@ lnc_ioctl(struct ifnet * ifp, u_long command, caddr_t data)
{
struct lnc_softc *sc = ifp->if_softc;
- struct ifreq *ifr = (struct ifreq *) data;
int s, error = 0;
s = splimp();
diff --git a/sys/i386/isa/if_wl.c b/sys/i386/isa/if_wl.c
index 93d4bd54a7ff..2c37caf84774 100644
--- a/sys/i386/isa/if_wl.c
+++ b/sys/i386/isa/if_wl.c
@@ -1,4 +1,4 @@
-/* $Id: if_wl.c,v 1.22 1999/07/06 19:22:54 des Exp $ */
+/* $Id: if_wl.c,v 1.23 1999/08/18 06:11:59 mdodd Exp $ */
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -204,6 +204,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <sys/kernel.h>
#include <sys/sysctl.h>
+#include <net/ethernet.h>
#include <net/if.h>
#include <net/if_dl.h>
@@ -1181,7 +1182,7 @@ wlioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
case SIOCSIFADDR:
case SIOCGIFADDR:
case SIOCSIFMTU:
- error = ether_ioctl(ifp, command, data);
+ error = ether_ioctl(ifp, cmd, data);
break;
case SIOCSIFFLAGS:
diff --git a/sys/i386/isa/if_ze.c b/sys/i386/isa/if_ze.c
index 8a6a0c9c18ff..7f59869e2d45 100644
--- a/sys/i386/isa/if_ze.c
+++ b/sys/i386/isa/if_ze.c
@@ -47,7 +47,7 @@
*/
/*
- * $Id: if_ze.c,v 1.59 1999/07/06 19:22:55 des Exp $
+ * $Id: if_ze.c,v 1.60 1999/08/18 06:12:00 mdodd Exp $
*/
/* XXX don't mix different PCCARD support code. */
@@ -75,8 +75,12 @@ static char const zedummy[] = "code to use the includes of card.h and pcic.h";
#include <sys/socket.h>
#include <sys/syslog.h>
+#include <net/ethernet.h>
#include <net/if.h>
+#include <netinet/in.h>
+#include <netinet/if_ether.h>
+
#if NBPF > 0
#include <net/bpf.h>
#endif
diff --git a/sys/i386/isa/if_zp.c b/sys/i386/isa/if_zp.c
index ba2485a0cc67..a7059fae30aa 100644
--- a/sys/i386/isa/if_zp.c
+++ b/sys/i386/isa/if_zp.c
@@ -34,7 +34,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* From: if_ep.c,v 1.9 1994/01/25 10:46:29 deraadt Exp $
- * $Id: if_zp.c,v 1.52 1999/07/06 19:22:55 des Exp $
+ * $Id: if_zp.c,v 1.53 1999/08/18 06:12:00 mdodd Exp $
*/
/*-
* TODO:
@@ -128,8 +128,12 @@ static char const zpdummy[] = "code to use the includes of card.h and pcic.h";
#include <sys/sockio.h>
#include <sys/syslog.h>
+#include <net/ethernet.h>
#include <net/if.h>
+#include <netinet/in.h>
+#include <netinet/if_ether.h>
+
#if NBPF > 0
#include <net/bpf.h>
#endif
@@ -1007,7 +1011,7 @@ zpioctl(ifp, cmd, data)
case SIOCSIFADDR:
case SIOCGIFADDR:
case SIOCSIFMTU:
- error = ether_ioctl(ifp, command, data);
+ error = ether_ioctl(ifp, cmd, data);
break;
case SIOCSIFFLAGS: