summaryrefslogtreecommitdiff
path: root/sys/dev/ic/midwayvar.h
diff options
context:
space:
mode:
authorchuck <chuck@cvs.openbsd.org>1996-07-03 17:21:20 +0000
committerchuck <chuck@cvs.openbsd.org>1996-07-03 17:21:20 +0000
commit5965b4a0810d35646281676f2d88192803f36981 (patch)
tree73232b80a5c424eb42808e6b50e7412bb8ad9fde /sys/dev/ic/midwayvar.h
parent0c859f504513a3d9f87f265f576a9ab81cadcb10 (diff)
ported to FreeBSD 2.2-960612-SNAP.
Diffstat (limited to 'sys/dev/ic/midwayvar.h')
-rw-r--r--sys/dev/ic/midwayvar.h38
1 files changed, 36 insertions, 2 deletions
diff --git a/sys/dev/ic/midwayvar.h b/sys/dev/ic/midwayvar.h
index f83b62f42ac..86b07f41548 100644
--- a/sys/dev/ic/midwayvar.h
+++ b/sys/dev/ic/midwayvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: midwayvar.h,v 1.5 1996/06/29 23:22:35 chuck Exp $ */
+/* $OpenBSD: midwayvar.h,v 1.6 1996/07/03 17:21:18 chuck Exp $ */
/*
*
@@ -58,6 +58,39 @@
#define EN_MAXNRX ((2048-(EN_NTX*EN_TXSZ))/EN_RXSZ)
/* largest possible NRX (depends on RAM size) */
+
+#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
+#define EN_INTR_TYPE int
+#define EN_INTR_RET(X) return(X)
+#if defined(__NetBSD__) || defined(__OpenBSD__)
+#define EN_IOCTL_CMDT u_long
+#elif defined(__bsdi__)
+#define EN_IOCTL_CMDT int
+#endif
+
+#elif defined(__FreeBSD__)
+
+#define EN_INTR_TYPE void
+#define EN_INTR_RET(X) return
+#define EN_IOCTL_CMDT int
+
+struct device {
+ char dv_xname[IFNAMSIZ];
+};
+
+#define DV_IFNET 1
+
+struct cfdriver {
+ int zero;
+ char *name;
+ int one;
+ int cd_ndevs;
+ void *cd_devs[NEN];
+};
+
+#endif
+
+
/*
* softc
*/
@@ -159,4 +192,5 @@ struct en_softc {
*/
void en_attach __P((struct en_softc *));
-int en_intr __P((void *));
+EN_INTR_TYPE en_intr __P((void *));
+void en_reset __P((struct en_softc *));