aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/lnc
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-12-15 00:54:32 +0000
committerBruce Evans <bde@FreeBSD.org>1995-12-15 00:54:32 +0000
commit0dfe10a65ca5d76b1710101adb5203dfe754393b (patch)
tree0e4fed627017f370a1dc320465630b9b87d4f4af /sys/dev/lnc
parentbfd8f1484e9c677f8d58f4106e5b2bd39924f4a1 (diff)
Notes
Diffstat (limited to 'sys/dev/lnc')
-rw-r--r--sys/dev/lnc/if_lnc.c41
1 files changed, 27 insertions, 14 deletions
diff --git a/sys/dev/lnc/if_lnc.c b/sys/dev/lnc/if_lnc.c
index c3f12c5e0a59..2370c8b844d0 100644
--- a/sys/dev/lnc/if_lnc.c
+++ b/sys/dev/lnc/if_lnc.c
@@ -73,6 +73,7 @@
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/conf.h>
#include <sys/errno.h>
#include <sys/ioccom.h>
#include <sys/sockio.h>
@@ -127,21 +128,33 @@ static struct lnc_softc {
LNCSTATS_STRUCT
} lnc_softc[NLNC];
-/* Function prototypes */
-static int bicc_probe(struct isa_device *);
-static int depca_probe(struct isa_device *);
-static int lance_probe(int);
-static int ne2100_probe(struct isa_device *);
-static int pcnet_probe(int);
-static void lnc_init(int);
-static void lnc_start(struct ifnet *);
-static int lnc_ioctl(struct ifnet *, int, caddr_t);
-static void lnc_watchdog(struct ifnet *);
-static int lnc_probe(struct isa_device *);
-static int lnc_attach(struct isa_device *);
+static void lnc_setladrf __P((struct ifnet *ifp, struct lnc_softc *sc));
+static void lnc_stop __P((int unit));
+static void lnc_reset __P((int unit));
+static void lnc_free_mbufs __P((struct lnc_softc *sc));
+static int alloc_mbuf_cluster __P((struct lnc_softc *sc, struct host_ring_entry *desc));
+static struct mbuf *chain_mbufs __P((struct lnc_softc *sc, int start_of_packet, int pkt_len));
+static struct mbuf *mbuf_packet __P((struct lnc_softc *sc, int start_of_packet, int pkt_len));
+static void lnc_rint __P((int unit));
+static void lnc_tint __P((int unit));
+static int lnc_probe __P((struct isa_device *isa_dev));
+static int ne2100_probe __P((struct isa_device *isa_dev));
+static int bicc_probe __P((struct isa_device *isa_dev));
+static int dec_macaddr_extract __P((u_char ring[], struct lnc_softc *sc));
+static int depca_probe __P((struct isa_device *isa_dev));
+static int lance_probe __P((int unit));
+static int pcnet_probe __P((int unit));
+static int lnc_attach __P((struct isa_device *isa_dev));
+static void lnc_init __P((int unit));
+static int mbuf_to_buffer __P((struct mbuf *m, char *buffer));
+static struct mbuf *chain_to_cluster __P((struct mbuf *m));
+static void lnc_start __P((struct ifnet *ifp));
+static int lnc_ioctl __P((struct ifnet *ifp, int command, caddr_t data));
+static void lnc_watchdog __P((struct ifnet *ifp));
#ifdef DEBUG
-static void lnc_dump_state(int);
-#endif /* DEBUG */
+static void lnc_dump_state __P((int unit));
+static void mbuf_dump_chain __P((struct mbuf *m));
+#endif
struct isa_driver lncdriver = {lnc_probe, lnc_attach, "lnc"};