diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-30 08:20:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-30 08:20:54 +0000 |
commit | 59a324548996bb760624ae69292821c0138ac2f2 (patch) | |
tree | 86287adfb9870e23ae3a85ac223baad13625b0e9 /sys | |
parent | ffac21d1652324e2cfed8fbb7ed9e073bc31eef2 (diff) |
from netbsd: remove uneeded routines (pr#1837) from Bernd Ernesti
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amiga/dev/if_le.c | 48 | ||||
-rw-r--r-- | sys/arch/amiga/dev/if_le_zbus.c | 48 |
2 files changed, 4 insertions, 92 deletions
diff --git a/sys/arch/amiga/dev/if_le.c b/sys/arch/amiga/dev/if_le.c index 4a179e83def..4979dd60ddd 100644 --- a/sys/arch/amiga/dev/if_le.c +++ b/sys/arch/amiga/dev/if_le.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_le.c,v 1.15 1995/09/29 13:51:56 chopps Exp $ */ +/* $NetBSD: if_le.c,v 1.16 1995/12/27 07:09:37 chopps Exp $ */ /*- * Copyright (c) 1995 Charles M. Hannum. All rights reserved. @@ -63,6 +63,7 @@ #include <amiga/dev/zbusvar.h> #include <amiga/dev/if_levar.h> #include <dev/ic/am7990reg.h> +#define LE_NEED_BUF_CONTIG #include <dev/ic/am7990var.h> /* offsets for: ID, REGS, MEM */ @@ -185,49 +186,4 @@ leattach(parent, self, aux) add_isr(&sc->sc_isr); } -/* - * 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> diff --git a/sys/arch/amiga/dev/if_le_zbus.c b/sys/arch/amiga/dev/if_le_zbus.c index 4a179e83def..4979dd60ddd 100644 --- a/sys/arch/amiga/dev/if_le_zbus.c +++ b/sys/arch/amiga/dev/if_le_zbus.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_le.c,v 1.15 1995/09/29 13:51:56 chopps Exp $ */ +/* $NetBSD: if_le.c,v 1.16 1995/12/27 07:09:37 chopps Exp $ */ /*- * Copyright (c) 1995 Charles M. Hannum. All rights reserved. @@ -63,6 +63,7 @@ #include <amiga/dev/zbusvar.h> #include <amiga/dev/if_levar.h> #include <dev/ic/am7990reg.h> +#define LE_NEED_BUF_CONTIG #include <dev/ic/am7990var.h> /* offsets for: ID, REGS, MEM */ @@ -185,49 +186,4 @@ leattach(parent, self, aux) add_isr(&sc->sc_isr); } -/* - * 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> |