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/isa | |
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/isa')
-rw-r--r-- | sys/isa/fd.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/sys/isa/fd.c b/sys/isa/fd.c index 845107c..b0f13ee 100644 --- a/sys/isa/fd.c +++ b/sys/isa/fd.c @@ -47,7 +47,7 @@ * SUCH DAMAGE. * * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 - * $Id: fd.c,v 1.137 1999/05/02 20:38:08 peter Exp $ + * $Id: fd.c,v 1.138 1999/05/06 20:00:23 phk Exp $ * */ @@ -373,14 +373,12 @@ static int yeintr(struct pccard_devinfo *devi) #endif /* FDC_YE */ static d_open_t Fdopen; /* NOTE, not fdopen */ -static d_read_t fdread; -static d_write_t fdwrite; static d_close_t fdclose; static d_ioctl_t fdioctl; static d_strategy_t fdstrategy; static struct cdevsw fd_cdevsw = { - Fdopen, fdclose, fdread, fdwrite, + Fdopen, fdclose, physread, physwrite, fdioctl, nostop, nullreset, nodevtotty, seltrue, nommap, fdstrategy, "fd", NULL, -1, nodump, nopsize, @@ -1393,19 +1391,6 @@ fdclose(dev_t dev, int flags, int mode, struct proc *p) return (0); } -static int -fdread(dev_t dev, struct uio *uio, int ioflag) -{ - return (physio(fdstrategy, NULL, dev, 1, minphys, uio)); -} - -static int -fdwrite(dev_t dev, struct uio *uio, int ioflag) -{ - return (physio(fdstrategy, NULL, dev, 0, minphys, uio)); -} - - /****************************************************************************/ /* fdstrategy */ /****************************************************************************/ |