diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-07-02 17:37:19 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-07-02 17:37:19 +0000 |
commit | f8970b7c5d896f4ad492d9bd802ea350e715efb5 (patch) | |
tree | 6389c9c53b81d80938fbc0a62e3a24963a0bee64 /sys/arch/mvme68k/dev/sram.c | |
parent | 071e1c6d4df6dc38866cf4a4a39c1a7465992592 (diff) |
Merge *ramread() and *ramwrite(), as done on mvme88k.
Diffstat (limited to 'sys/arch/mvme68k/dev/sram.c')
-rw-r--r-- | sys/arch/mvme68k/dev/sram.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/sys/arch/mvme68k/dev/sram.c b/sys/arch/mvme68k/dev/sram.c index a00f1141be1..f5b6fe70650 100644 --- a/sys/arch/mvme68k/dev/sram.c +++ b/sys/arch/mvme68k/dev/sram.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sram.c,v 1.12 2004/01/14 20:50:48 miod Exp $ */ +/* $OpenBSD: sram.c,v 1.13 2004/07/02 17:37:16 miod Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -192,20 +192,7 @@ sramioctl(dev, cmd, data, flag, p) /*ARGSUSED*/ int -sramread(dev, uio, flags) - dev_t dev; - struct uio *uio; - int flags; -{ - int unit = minor(dev); - struct sramsoftc *sc = (struct sramsoftc *) sram_cd.cd_devs[unit]; - - return (memdevrw(sc->sc_vaddr, sc->sc_len, uio, flags)); -} - -/*ARGSUSED*/ -int -sramwrite(dev, uio, flags) +sramrw(dev, uio, flags) dev_t dev; struct uio *uio; int flags; |