diff options
author | phk <phk@FreeBSD.org> | 1999-05-07 07:03:47 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-05-07 07:03:47 +0000 |
commit | 7f79e0b14a5e8b99418d156f26b7b4026a163eca (patch) | |
tree | 64910f3b88102ea4099d5b4c903f873d9a777b12 /sys/i386/isa/wt.c | |
parent | 87d0bb82afc01a49a3747975f2dda83e9e025bd1 (diff) | |
download | FreeBSD-src-7f79e0b14a5e8b99418d156f26b7b4026a163eca.zip FreeBSD-src-7f79e0b14a5e8b99418d156f26b7b4026a163eca.tar.gz |
Introduce two functions: physread() and physwrite() and use these directly
in *devsw[] rather than the 46 local copies of the same functions.
(grog will do the same for vinum when he has time)
Diffstat (limited to 'sys/i386/isa/wt.c')
-rw-r--r-- | sys/i386/isa/wt.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/sys/i386/isa/wt.c b/sys/i386/isa/wt.c index 8efa720..40ee9a8 100644 --- a/sys/i386/isa/wt.c +++ b/sys/i386/isa/wt.c @@ -20,7 +20,7 @@ * the original CMU copyright notice. * * Version 1.3, Thu Nov 11 12:09:13 MSK 1993 - * $Id: wt.c,v 1.48 1999/04/28 10:53:07 dt Exp $ + * $Id: wt.c,v 1.49 1999/05/06 18:44:11 peter Exp $ * */ @@ -185,8 +185,6 @@ static int wtwritefm (wtinfo_t *t); static int wtpoll (wtinfo_t *t, int mask, int bits); static d_open_t wtopen; -static d_read_t wtread; -static d_write_t wtwrite; static d_close_t wtclose; static d_ioctl_t wtioctl; static d_strategy_t wtstrategy; @@ -196,7 +194,7 @@ static d_strategy_t wtstrategy; static struct cdevsw wt_cdevsw = { - wtopen, wtclose, wtread, wtwrite, + wtopen, wtclose, physread, physwrite, wtioctl, nostop, nullreset, nodevtotty, seltrue, nommap, wtstrategy, "wt", NULL, -1 }; @@ -504,18 +502,6 @@ wtioctl (dev_t dev, u_long cmd, caddr_t arg, int flags, struct proc *p) return (EINVAL); } -static int -wtread(dev_t dev, struct uio *uio, int ioflag) -{ - return (physio(wtstrategy, NULL, dev, 1, minphys, uio)); -} - -static int -wtwrite(dev_t dev, struct uio *uio, int ioflag) -{ - return (physio(wtstrategy, NULL, dev, 0, minphys, uio)); -} - /* * Strategy routine. */ |