summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/atapi-fd.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2002-07-26 19:13:05 +0000
committersos <sos@FreeBSD.org>2002-07-26 19:13:05 +0000
commitdf3147486486c5de42edcff7f03a1d0a97575bf2 (patch)
treec10b1301753f0d1353bdcd4647c106bf9c8eaa3b /sys/dev/ata/atapi-fd.c
parent170e853ce2f8dc7011ef272ff8513f42b1db2747 (diff)
downloadFreeBSD-src-df3147486486c5de42edcff7f03a1d0a97575bf2.zip
FreeBSD-src-df3147486486c5de42edcff7f03a1d0a97575bf2.tar.gz
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 <iedowse@maths.tcd.ie>
Diffstat (limited to 'sys/dev/ata/atapi-fd.c')
-rw-r--r--sys/dev/ata/atapi-fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/atapi-fd.c b/sys/dev/ata/atapi-fd.c
index 751a875..e0a4c24 100644
--- a/sys/dev/ata/atapi-fd.c
+++ b/sys/dev/ata/atapi-fd.c
@@ -112,7 +112,7 @@ afdattach(struct ata_device *atadev)
!strncmp(atadev->param->model, "IOMEGA Clik!", 12))
fdp->dev->si_iosize_max = 64 * DEV_BSIZE;
else
- fdp->dev->si_iosize_max = 252 * DEV_BSIZE;
+ fdp->dev->si_iosize_max = 126 * DEV_BSIZE;
afd_describe(fdp);
atadev->flags |= ATA_D_MEDIA_CHANGED;
OpenPOWER on IntegriCloud