diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-05-23 17:51:18 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-05-23 17:51:18 +0000 |
commit | c5d71aab1677741d445367820f78b0c85a6f4cde (patch) | |
tree | 2d547276eaec8dc1bef0133bd01dd54d92ae8694 /firmware/common/disk.c | |
parent | c5302d5101962ea21265a271c2494cacea088fea (diff) | |
download | rockbox-c5d71aab1677741d445367820f78b0c85a6f4cde.tar.gz rockbox-c5d71aab1677741d445367820f78b0c85a6f4cde.zip |
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
Diffstat (limited to 'firmware/common/disk.c')
-rw-r--r-- | firmware/common/disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
152 | real problem. */ | 152 | real problem. */ |
153 | for (i=0; volume != -1 && i<4; i++) | 153 | for (i=0; volume != -1 && i<4; i++) |
154 | { | 154 | { |
155 | #ifdef MAX_SECTOR_SIZE | 155 | #ifdef MAX_LOG_SECTOR_SIZE |
156 | int j; | 156 | int j; |
157 | 157 | ||
158 | for (j = 1; j <= (MAX_SECTOR_SIZE/SECTOR_SIZE); j <<= 1) | 158 | for (j = 1; j <= (MAX_LOG_SECTOR_SIZE/SECTOR_SIZE); j <<= 1) |
159 | { | 159 | { |
160 | if (!fat_mount(IF_MV2(volume,) IF_MV2(drive,) pinfo[i].start * j)) | 160 | if (!fat_mount(IF_MV2(volume,) IF_MV2(drive,) pinfo[i].start * j)) |
161 | { | 161 | { |