From aafa7ea069b654fe63a2d5ba54b645d6e65fec7e Mon Sep 17 00:00:00 2001 From: Søren Schmidt Date: Fri, 26 Jul 2002 19:13:05 +0000 Subject: Fix the max transfer size for ATAPI devices. The spec says to transfer at most 65534 bytes, thats 126 times DEV_BSIZE not 252 :( Pointed out by: Ian Dowse --- sys/dev/ata/atapi-cd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/ata/atapi-cd.c') diff --git a/sys/dev/ata/atapi-cd.c b/sys/dev/ata/atapi-cd.c index 1a3634d3ea3a7..d0e8c3910ef61 100644 --- a/sys/dev/ata/atapi-cd.c +++ b/sys/dev/ata/atapi-cd.c @@ -282,7 +282,7 @@ acd_make_dev(struct acd_softc *cdp) make_dev_alias(dev, "acd%da", cdp->lun); make_dev_alias(dev, "acd%dc", cdp->lun); dev->si_drv1 = cdp; - dev->si_iosize_max = 252 * DEV_BSIZE; + dev->si_iosize_max = 126 * DEV_BSIZE; dev->si_bsize_phys = 2048; /* XXX SOS */ cdp->dev = dev; cdp->device->flags |= ATA_D_MEDIA_CHANGED; -- cgit v1.3