summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-02 13:51:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-02 13:51:54 +0000
commit5042288e631a70a7c5e69ca3034259a8223c4d94 (patch)
treede2847cd9f939b7fd876699287e6e6b1377328c3 /sys/dev/ic
parent7828ffbca662a907b36e851b4f506dcfb096f025 (diff)
make these work together
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/am7990.c41
-rw-r--r--sys/dev/ic/am7990var.h25
2 files changed, 34 insertions, 32 deletions
diff --git a/sys/dev/ic/am7990.c b/sys/dev/ic/am7990.c
index b050dd728db..15d4909bdf8 100644
--- a/sys/dev/ic/am7990.c
+++ b/sys/dev/ic/am7990.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: am7990.c,v 1.5 1996/04/21 22:21:15 deraadt Exp $ */
-/* $NetBSD: am7990.c,v 1.16 1996/04/09 15:21:59 pk Exp $ */
+/* $OpenBSD: am7990.c,v 1.6 1996/05/02 13:51:45 deraadt Exp $ */
+/* $NetBSD: am7990.c,v 1.18 1996/04/22 02:40:50 christos Exp $ */
/*-
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
@@ -291,6 +291,7 @@ leinit(sc)
lestart(ifp);
} else
printf("%s: card failed to initialize\n", sc->sc_dev.dv_xname);
+ lehwinit(sc);
}
/*
@@ -1015,8 +1016,8 @@ allmulti:
* Buffers may have any alignment.
*/
-integrate void
-copytobuf_contig(sc, from, boff, len)
+void
+am7990_copytobuf_contig(sc, from, boff, len)
struct le_softc *sc;
void *from;
int boff, len;
@@ -1029,8 +1030,8 @@ copytobuf_contig(sc, from, boff, len)
bcopy(from, buf + boff, len);
}
-integrate void
-copyfrombuf_contig(sc, to, boff, len)
+void
+am7990_copyfrombuf_contig(sc, to, boff, len)
struct le_softc *sc;
void *to;
int boff, len;
@@ -1043,8 +1044,8 @@ copyfrombuf_contig(sc, to, boff, len)
bcopy(buf + boff, to, len);
}
-integrate void
-zerobuf_contig(sc, boff, len)
+void
+am7990_zerobuf_contig(sc, boff, len)
struct le_softc *sc;
int boff, len;
{
@@ -1065,8 +1066,8 @@ zerobuf_contig(sc, boff, len)
* doing an extra byte.
*/
-integrate void
-copytobuf_gap2(sc, fromv, boff, len)
+void
+am7990_copytobuf_gap2(sc, fromv, boff, len)
struct le_softc *sc;
void *fromv;
int boff;
@@ -1094,8 +1095,8 @@ copytobuf_gap2(sc, fromv, boff, len)
*bptr = (u_int16_t)*from;
}
-integrate void
-copyfrombuf_gap2(sc, tov, boff, len)
+void
+am7990_copyfrombuf_gap2(sc, tov, boff, len)
struct le_softc *sc;
void *tov;
int boff, len;
@@ -1124,8 +1125,8 @@ copyfrombuf_gap2(sc, tov, boff, len)
*to = *bptr & 0xff;
}
-integrate void
-zerobuf_gap2(sc, boff, len)
+void
+am7990_zerobuf_gap2(sc, boff, len)
struct le_softc *sc;
int boff, len;
{
@@ -1154,8 +1155,8 @@ zerobuf_gap2(sc, boff, len)
* Buffers must be 32-byte aligned.
*/
-integrate void
-copytobuf_gap16(sc, fromv, boff, len)
+void
+am7990_copytobuf_gap16(sc, fromv, boff, len)
struct le_softc *sc;
void *fromv;
int boff;
@@ -1179,8 +1180,8 @@ copytobuf_gap16(sc, fromv, boff, len)
}
}
-integrate void
-copyfrombuf_gap16(sc, tov, boff, len)
+void
+am7990_copyfrombuf_gap16(sc, tov, boff, len)
struct le_softc *sc;
void *tov;
int boff, len;
@@ -1203,8 +1204,8 @@ copyfrombuf_gap16(sc, tov, boff, len)
}
}
-integrate void
-zerobuf_gap16(sc, boff, len)
+void
+am7990_zerobuf_gap16(sc, boff, len)
struct le_softc *sc;
int boff, len;
{
diff --git a/sys/dev/ic/am7990var.h b/sys/dev/ic/am7990var.h
index 2e66bb6e804..337bc871fb5 100644
--- a/sys/dev/ic/am7990var.h
+++ b/sys/dev/ic/am7990var.h
@@ -1,5 +1,5 @@
-/* $OpenBSD: am7990var.h,v 1.3 1996/04/18 23:47:18 niklas Exp $ */
-/* $NetBSD: am7990var.h,v 1.4 1996/03/14 19:05:09 christos Exp $ */
+/* $OpenBSD: am7990var.h,v 1.4 1996/05/02 13:51:46 deraadt Exp $ */
+/* $NetBSD: am7990var.h,v 1.6 1996/04/22 02:40:49 christos Exp $ */
/*
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
@@ -33,7 +33,7 @@
#ifdef DDB
#define integrate
#else
-#define integrate static inline
+#define integrate static __inline
#endif
void leconfig __P((struct le_softc *));
@@ -46,6 +46,7 @@ void lestart __P((struct ifnet *));
void lestop __P((struct le_softc *));
void lewatchdog __P((int));
+integrate void lehwinit __P((struct le_softc *));
integrate u_int16_t lerdcsr __P((struct le_softc *, u_int16_t));
integrate void lewrcsr __P((struct le_softc *, u_int16_t, u_int16_t));
@@ -63,17 +64,17 @@ integrate void leread __P((struct le_softc *, int, int));
* for drivers that have not yet been optimized.
*/
#ifdef LE_NEED_BUF_CONTIG
-integrate void copytobuf_contig __P((struct le_softc *, void *, int, int));
-integrate void copyfrombuf_contig __P((struct le_softc *, void *, int, int));
-integrate void zerobuf_contig __P((struct le_softc *, int, int));
+void am7990_copytobuf_contig __P((struct le_softc *, void *, int, int));
+void am7990_copyfrombuf_contig __P((struct le_softc *, void *, int, int));
+void am7990_zerobuf_contig __P((struct le_softc *, int, int));
#endif /* LE_NEED_BUF_CONTIG */
#ifdef LE_NEED_BUF_GAP2
-integrate void copytobuf_gap2 __P((struct le_softc *, void *, int, int));
-integrate void copyfrombuf_gap2 __P((struct le_softc *, void *, int, int));
-integrate void zerobuf_gap2 __P((struct le_softc *, int, int));
+void am7990_copytobuf_gap2 __P((struct le_softc *, void *, int, int));
+void am7990_copyfrombuf_gap2 __P((struct le_softc *, void *, int, int));
+void am7990_zerobuf_gap2 __P((struct le_softc *, int, int));
#endif /* LE_NEED_BUF_GAP2 */
#ifdef LE_NEED_BUF_GAP16
-integrate void copytobuf_gap16 __P((struct le_softc *, void *, int, int));
-integrate void copyfrombuf_gap16 __P((struct le_softc *, void *, int, int));
-integrate void zerobuf_gap16 __P((struct le_softc *, int, int));
+void am7990_copytobuf_gap16 __P((struct le_softc *, void *, int, int));
+void am7990_copyfrombuf_gap16 __P((struct le_softc *, void *, int, int));
+void am7990_zerobuf_gap16 __P((struct le_softc *, int, int));
#endif /* LE_NEED_BUF_GAP16 */