From 830c1b765cfe95293f0ee1c4b08633bf4670faa4 Mon Sep 17 00:00:00 2001 From: sos Date: Sun, 28 Jul 2002 23:59:00 +0000 Subject: OK, dont rely on the upper layers handling iosize_max correctly, instead rely on ATAPI devices ability to do the work instead. MFC material. --- sys/dev/ata/atapi-fd.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sys/dev/ata/atapi-fd.c') diff --git a/sys/dev/ata/atapi-fd.c b/sys/dev/ata/atapi-fd.c index 4360847..a8a53ab 100644 --- a/sys/dev/ata/atapi-fd.c +++ b/sys/dev/ata/atapi-fd.c @@ -107,12 +107,7 @@ afdattach(struct ata_device *atadev) dev = disk_create(fdp->lun, &fdp->disk, 0, &afd_cdevsw, &afddisk_cdevsw); dev->si_drv1 = fdp; fdp->dev = dev; - - if (!strncmp(atadev->param->model, "IOMEGA ZIP", 10) || - !strncmp(atadev->param->model, "IOMEGA Clik!", 12)) - fdp->dev->si_iosize_max = 64 * DEV_BSIZE; - else - fdp->dev->si_iosize_max = 127 * DEV_BSIZE; + fdp->dev->si_iosize_max = 256 * DEV_BSIZE; afd_describe(fdp); atadev->flags |= ATA_D_MEDIA_CHANGED; @@ -328,7 +323,7 @@ afd_start(struct ata_device *atadev) } lba = bp->bio_pblkno; - count = min(bp->bio_bcount, fdp->dev->si_iosize_max) / fdp->cap.sector_size; + count = bp->bio_bcount / fdp->cap.sector_size; data_ptr = bp->bio_data; bp->bio_resid = bp->bio_bcount; -- cgit v1.1