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/scd.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/scd.c')
-rw-r--r-- | sys/i386/isa/scd.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/i386/isa/scd.c b/sys/i386/isa/scd.c index 7152c62..15251c7 100644 --- a/sys/i386/isa/scd.c +++ b/sys/i386/isa/scd.c @@ -41,7 +41,7 @@ */ -/* $Id: scd.c,v 1.42 1999/04/28 10:52:51 dt Exp $ */ +/* $Id: scd.c,v 1.43 1999/05/06 18:54:19 peter Exp $ */ /* Please send any comments to micke@dynas.se */ @@ -186,7 +186,6 @@ struct isa_driver scddriver = { scd_probe, scd_attach, "scd" }; static struct callout_handle tohandle = CALLOUT_HANDLE_INITIALIZER(&tohanle); static d_open_t scdopen; -static d_read_t scdread; static d_close_t scdclose; static d_ioctl_t scdioctl; static d_strategy_t scdstrategy; @@ -194,7 +193,7 @@ static d_strategy_t scdstrategy; #define CDEV_MAJOR 45 #define BDEV_MAJOR 16 static struct cdevsw scd_cdevsw = { - scdopen, scdclose, scdread, nowrite, + scdopen, scdclose, physread, nowrite, scdioctl, nostop, nullreset, nodevtotty, seltrue, nommap, scdstrategy, "scd", NULL, -1, nodump, nopsize, @@ -320,12 +319,6 @@ scdclose(dev_t dev, int flags, int fmt, struct proc *p) return 0; } -static int -scdread(dev_t dev, struct uio *uio, int ioflag) -{ - return (physio(scdstrategy, NULL, dev, 1, minphys, uio)); -} - static void scdstrategy(struct buf *bp) { |