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/mcd.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/mcd.c')
-rw-r--r-- | sys/i386/isa/mcd.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/i386/isa/mcd.c b/sys/i386/isa/mcd.c index 9633c5d..b53883e 100644 --- a/sys/i386/isa/mcd.c +++ b/sys/i386/isa/mcd.c @@ -40,7 +40,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: mcd.c,v 1.103 1999/05/06 18:44:00 peter Exp $ + * $Id: mcd.c,v 1.104 1999/05/06 18:54:17 peter Exp $ */ static const char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; @@ -210,7 +210,6 @@ static int mcd_attach(struct isa_device *dev); struct isa_driver mcddriver = { mcd_probe, mcd_attach, "mcd" }; static d_open_t mcdopen; -static d_read_t mcdread; static d_close_t mcdclose; static d_ioctl_t mcdioctl; static d_psize_t mcdsize; @@ -222,7 +221,7 @@ static d_strategy_t mcdstrategy; static struct cdevsw mcd_cdevsw = { - mcdopen, mcdclose, mcdread, nowrite, + mcdopen, mcdclose, physread, nowrite, mcdioctl, nostop, nullreset, nodevtotty, seltrue, nommap, mcdstrategy, "mcd", NULL, -1, nodump, nopsize, @@ -396,12 +395,6 @@ int mcdclose(dev_t dev, int flags, int fmt, struct proc *p) return 0; } -static int -mcdread(dev_t dev, struct uio *uio, int ioflag) -{ - return (physio(mcdstrategy, NULL, dev, 1, minphys, uio)); -} - void mcdstrategy(struct buf *bp) { |