From 7f79e0b14a5e8b99418d156f26b7b4026a163eca Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 7 May 1999 07:03:47 +0000 Subject: 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) --- sys/i386/isa/wt.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'sys/i386/isa/wt.c') 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. */ -- cgit v1.1