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/atapi-cd.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/atapi-cd.c')
-rw-r--r-- | sys/i386/isa/atapi-cd.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/sys/i386/isa/atapi-cd.c b/sys/i386/isa/atapi-cd.c index c5a9097..0e10e20 100644 --- a/sys/i386/isa/atapi-cd.c +++ b/sys/i386/isa/atapi-cd.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: atapi-cd.c,v 1.15 1999/04/27 11:14:51 phk Exp $ + * $Id: atapi-cd.c,v 1.16 1999/04/28 10:52:16 dt Exp $ */ #include "wdc.h" @@ -55,15 +55,13 @@ static d_open_t acdopen; static d_close_t acdclose; -static d_write_t acdwrite; -static d_read_t acdread; static d_ioctl_t acdioctl; static d_strategy_t acdstrategy; #define CDEV_MAJOR 69 #define BDEV_MAJOR 19 static struct cdevsw acd_cdevsw = { - acdopen, acdclose, acdread, acdwrite, + acdopen, acdclose, physread, physwrite, acdioctl, nostop, nullreset, nodevtotty, seltrue, nommap, acdstrategy, "wcd", NULL, -1, nodump, nopsize, @@ -458,18 +456,6 @@ acdclose(dev_t dev, int flags, int fmt, struct proc *p) return 0; } -static int -acdread(dev_t dev, struct uio *uio, int ioflag) -{ - return physio(acdstrategy, NULL, dev, 1, minphys, uio); -} - -static int -acdwrite(dev_t dev, struct uio *uio, int ioflag) -{ - return physio(acdstrategy, NULL, dev, 0, minphys, uio); -} - void acdstrategy(struct buf *bp) { |