summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/labpc.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-05-07 07:03:47 +0000
committerphk <phk@FreeBSD.org>1999-05-07 07:03:47 +0000
commit7f79e0b14a5e8b99418d156f26b7b4026a163eca (patch)
tree64910f3b88102ea4099d5b4c903f873d9a777b12 /sys/i386/isa/labpc.c
parent87d0bb82afc01a49a3747975f2dda83e9e025bd1 (diff)
downloadFreeBSD-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/labpc.c')
-rw-r--r--sys/i386/isa/labpc.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/i386/isa/labpc.c b/sys/i386/isa/labpc.c
index e893a21..28b91e7 100644
--- a/sys/i386/isa/labpc.c
+++ b/sys/i386/isa/labpc.c
@@ -285,8 +285,6 @@ static int labpcprobe(struct isa_device *dev);
struct isa_driver labpcdriver =
{ labpcprobe, labpcattach, "labpc", 0 };
-static d_read_t labpcread;
-static d_write_t labpcwrite;
static d_open_t labpcopen;
static d_close_t labpcclose;
static d_ioctl_t labpcioctl;
@@ -294,7 +292,7 @@ static d_strategy_t labpcstrategy;
#define CDEV_MAJOR 66
static struct cdevsw labpc_cdevsw =
- { labpcopen, labpcclose, labpcread, labpcwrite,
+ { labpcopen, labpcclose, physread, physwrite,
labpcioctl, nostop, nullreset, nodevtotty,
seltrue, nommap, labpcstrategy, "labpc", NULL, -1 };
@@ -762,18 +760,6 @@ labpcclose(dev_t dev, int flags, int fmt, struct proc *p)
return 0;
}
-static int
-labpcread( dev_t dev, struct uio *uio, int ioflag)
-{
- return (physio(labpcstrategy, NULL, dev, 1, minphys, uio));
-}
-
-static int
-labpcwrite ( dev_t dev, struct uio *uio, int ioflag)
-{
- return (physio(labpcstrategy, NULL, dev, 0, minphys, uio));
-}
-
/*
* Start: Start a frame going in or out.
*/
OpenPOWER on IntegriCloud