Subversion Repositories freemyipod

Rev

Rev 613 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 613 Rev 614
Line 445... Line 445...
445
            void* buf = buffer;
445
            void* buf = buffer;
446
            uint64_t sect;
446
            uint64_t sect;
447
            for (sect = sector; sect < sector + cnt; sect++)
447
            for (sect = sector; sect < sector + cnt; sect++)
448
            {
448
            {
449
                rc = -1;
449
                rc = -1;
450
                tries = ATA_RETRIES;
450
                int tries = ATA_RETRIES;
451
                while (tries-- && rc)
451
                while (tries-- && rc)
452
                {
452
                {
453
                    rc = ata_rw_chunk(sect, 1, buf, write);
453
                    rc = ata_rw_chunk(sect, 1, buf, write);
454
                    if (rc) ata_soft_reset();
454
                    if (rc) ata_soft_reset();
455
                }
455
                }