aboutsummaryrefslogtreecommitdiff
path: root/sys/pc98/cbus/fdc.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-05-07 07:03:47 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-05-07 07:03:47 +0000
commitc48d17750f93a0c73afe5ac7d5ec2ce0093a4407 (patch)
tree65710ea07c28c20ceb403a0816d633a6e691c978 /sys/pc98/cbus/fdc.c
parente244fe31d6789109d257d572331deeb0b6125118 (diff)
downloadsrc-c48d17750f93a0c73afe5ac7d5ec2ce0093a4407.tar.gz
src-c48d17750f93a0c73afe5ac7d5ec2ce0093a4407.zip
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)
Notes
Notes: svn path=/head/; revision=46625
Diffstat (limited to 'sys/pc98/cbus/fdc.c')
-rw-r--r--sys/pc98/cbus/fdc.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/sys/pc98/cbus/fdc.c b/sys/pc98/cbus/fdc.c
index 639a2291e2f4..5e1e569a1388 100644
--- a/sys/pc98/cbus/fdc.c
+++ b/sys/pc98/cbus/fdc.c
@@ -47,7 +47,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fd.c,v 1.56 1999/05/05 03:43:00 kato Exp $
+ * $Id: fd.c,v 1.57 1999/05/06 20:00:31 phk Exp $
*
*/
@@ -468,14 +468,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,
@@ -1708,19 +1706,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 */
/****************************************************************************/