summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-15 02:36:28 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-15 02:36:28 +0000
commit339e3b99fcb1a677dccc966a08fd1daae66d7433 (patch)
tree98c1cffa7bc2cd1fb8ff6fdc14eff60fe0e83d35 /sys/dev
parent9846d7c61b3f04c1cb89755c079a143c344e17f3 (diff)
from netbsd; use bus-specific copying functions
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/if_le.c48
1 files changed, 2 insertions, 46 deletions
diff --git a/sys/dev/isa/if_le.c b/sys/dev/isa/if_le.c
index d9bccea7630..eb0f039c22a 100644
--- a/sys/dev/isa/if_le.c
+++ b/sys/dev/isa/if_le.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_le.c,v 1.36 1995/10/07 09:19:13 mycroft Exp $ */
+/* $NetBSD: if_le.c,v 1.37 1995/11/25 01:24:00 cgd Exp $ */
/*-
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
@@ -77,6 +77,7 @@
#include <dev/isa/if_levar.h>
#include <dev/ic/am7990reg.h>
+#define LE_NEED_BUF_CONTIG
#include <dev/ic/am7990var.h>
char *card_type[] = {"unknown", "BICC Isolan", "NE2100", "DEPCA", "PCnet-ISA", "PCnet-PCI"};
@@ -441,49 +442,4 @@ leintredge(arg)
}
#endif
-/*
- * Routines for accessing the transmit and receive buffers.
- */
-
-void
-copytobuf_contig(sc, from, boff, len)
- struct le_softc *sc;
- caddr_t from;
- int boff, len;
-{
- volatile caddr_t buf = sc->sc_mem;
-
- /*
- * Just call bcopy() to do the work.
- */
- bcopy(from, buf + boff, len);
-}
-
-void
-copyfrombuf_contig(sc, to, boff, len)
- struct le_softc *sc;
- caddr_t to;
- int boff, len;
-{
- volatile caddr_t buf = sc->sc_mem;
-
- /*
- * Just call bcopy() to do the work.
- */
- bcopy(buf + boff, to, len);
-}
-
-void
-zerobuf_contig(sc, boff, len)
- struct le_softc *sc;
- int boff, len;
-{
- volatile caddr_t buf = sc->sc_mem;
-
- /*
- * Just call bzero() to do the work.
- */
- bzero(buf + boff, len);
-}
-
#include <dev/ic/am7990.c>