From c5d71aab1677741d445367820f78b0c85a6f4cde Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 23 May 2007 17:51:18 +0000 Subject: ATA driver: * Support for drives with large physical sectors and no support for partial access in the firmware (i.e. Toshiba MK8010GAH - iPod G5.5/80GB). Sequential writes with a single 512-byte buffer to that disk are really slow, so this is an intermediate solution that allows to adjust the FAT driver and the file system gradually. * Assume multisectors = 16 if the value reported by the drive is invalid (also MK8010GAH). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13480 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/disk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/common') diff --git a/firmware/common/disk.c b/firmware/common/disk.c index c58ae3ee86..ebf8103aa0 100644 --- a/firmware/common/disk.c +++ b/firmware/common/disk.c @@ -152,10 +152,10 @@ int disk_mount(int drive) real problem. */ for (i=0; volume != -1 && i<4; i++) { -#ifdef MAX_SECTOR_SIZE +#ifdef MAX_LOG_SECTOR_SIZE int j; - for (j = 1; j <= (MAX_SECTOR_SIZE/SECTOR_SIZE); j <<= 1) + for (j = 1; j <= (MAX_LOG_SECTOR_SIZE/SECTOR_SIZE); j <<= 1) { if (!fat_mount(IF_MV2(volume,) IF_MV2(drive,) pinfo[i].start * j)) { -- cgit v1.2.3