summaryrefslogtreecommitdiffstats
path: root/sys/dev/tx
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-02-01 20:25:16 +0000
committerbde <bde@FreeBSD.org>1998-02-01 20:25:16 +0000
commit3d6b2c821bfd6b38e0e9f5a0acf2c287e9de2324 (patch)
tree8bbd96dd69380ad8dc5279b1b4555e4d64b70356 /sys/dev/tx
parent2adc6309fe27cdb87a4f07ae1e75c44c5da4ceed (diff)
downloadFreeBSD-src-3d6b2c821bfd6b38e0e9f5a0acf2c287e9de2324.zip
FreeBSD-src-3d6b2c821bfd6b38e0e9f5a0acf2c287e9de2324.tar.gz
Removed ifdef for <sys/sockio.h> vs <sys/ioctl.h>. <sys/sockio.h> is
a BSD4.4Lite1 feature, not a FreeBSD feature. <sys/ioctl.h> is a compatibility misfeature. Moved NPCI ifdef. This file didn't compile if NPCI <= 0. It shouldn't be configured in that case, but it is easy to support (mis)configuration of drivers without buses by generating null objects, and many drivers do it. Removed unused includes.
Diffstat (limited to 'sys/dev/tx')
-rw-r--r--sys/dev/tx/if_tx.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c
index 713cc24..75ed7a0 100644
--- a/sys/dev/tx/if_tx.c
+++ b/sys/dev/tx/if_tx.c
@@ -63,46 +63,29 @@
* fixed media control code
*/
+#include "pci.h"
+#if NPCI > 0
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/mbuf.h>
-#include <sys/protosw.h>
#include <sys/socket.h>
-#include <sys/errno.h>
#include <sys/malloc.h>
#include <sys/kernel.h>
-#if defined(__FreeBSD__) && __FreeBSD__ >= 3
#include <sys/sockio.h>
-#else
-#include <sys/ioctl.h>
-#endif
-#include <machine/clock.h>
#include <net/if.h>
-#include <net/if_dl.h>
#include <net/if_mib.h>
-#include <net/if_types.h>
-#include <net/route.h>
-#include <net/netisr.h>
#include <netinet/in.h>
-#include <netinet/in_systm.h>
-#include <netinet/in_var.h>
-#include <netinet/ip.h>
#include <netinet/if_ether.h>
#include <vm/vm.h>
-#include <vm/vm_param.h>
-#include <vm/vm_kern.h>
#include <vm/pmap.h>
-#include "pci.h"
-#if NPCI > 0
#include <pci/pcivar.h>
#include <pci/smc83c170.h>
-#endif
#include "bpfilter.h"
#if NBPFILTER > 0
#include <net/bpf.h>
-#include <net/bpfdesc.h>
#endif
/*
@@ -1104,3 +1087,5 @@ static void epic_write_phy_register(u_int16_t iobase, u_int16_t loc,u_int16_t va
return;
}
+
+#endif /* NPCI > 0 */
OpenPOWER on IntegriCloud