Subversion Repositories freemyipod

Rev

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

Rev 636 Rev 637
Line 542... Line 542...
542
bool ata_disk_is_active(void)
542
bool ata_disk_is_active(void)
543
{
543
{
544
    return ata_powered;
544
    return ata_powered;
545
}
545
}
546
 
546
 
547
int ata_num_drives(void)
-
 
548
{
-
 
549
    return 1;
-
 
550
}
-
 
551
 
-
 
552
int ata_set_feature(uint32_t feature, uint32_t param)
547
int ata_set_feature(uint32_t feature, uint32_t param)
553
{
548
{
554
    PASS_RC(ata_wait_for_rdy(500000), 1, 0);
549
    PASS_RC(ata_wait_for_rdy(500000), 1, 0);
555
    ata_write_cbr(&ATA_PIO_DVR, 0);
550
    ata_write_cbr(&ATA_PIO_DVR, 0);
556
    ata_write_cbr(&ATA_PIO_FED, 3);
551
    ata_write_cbr(&ATA_PIO_FED, 3);
Line 1114... Line 1109...
1114
    thread_create(&ata_thread_handle, "ATA idle monitor", ata_thread, ata_stack,
1109
    thread_create(&ata_thread_handle, "ATA idle monitor", ata_thread, ata_stack,
1115
                  sizeof(ata_stack), OS_THREAD, 1, true);
1110
                  sizeof(ata_stack), OS_THREAD, 1, true);
1116
    return 0;
1111
    return 0;
1117
}
1112
}
1118
 
1113
 
1119
#ifdef CONFIG_STORAGE_MULTI
-
 
1120
int ata_num_drives(int first_drive)
1114
int ata_num_drives(int first_drive)
1121
{
1115
{
1122
    /* We don't care which logical drive number(s) we have been assigned */
1116
    /* We don't care which logical drive number(s) we have been assigned */
1123
    (void)first_drive;
1117
    (void)first_drive;
1124
    
1118
    
1125
    return 1;
1119
    return 1;
1126
}
1120
}
1127
#endif
-
 
1128
 
1121
 
1129
void INT_ATA()
1122
void INT_ATA()
1130
{
1123
{
1131
    uint32_t ata_irq = ATA_IRQ;
1124
    uint32_t ata_irq = ATA_IRQ;
1132
    ATA_IRQ = ata_irq;
1125
    ATA_IRQ = ata_irq;