Subversion Repositories freemyipod

Rev

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

Rev 613 Rev 620
Line 27... Line 27...
27
#include "../global.h"
27
#include "../global.h"
28
 
28
 
29
 
29
 
30
struct ata_target_driverinfo
30
struct ata_target_driverinfo
31
{
31
{
-
 
32
    void (*srst_after_error)(bool enable);
32
    int (*soft_reset)();
33
    void (*set_retries)(int retries);
33
    int (*bbt_translate)(uint64_t sector, uint32_t count, uint64_t* phys, uint32_t* physcount);
34
    int (*bbt_translate)(uint64_t sector, uint32_t count, uint64_t* phys, uint32_t* physcount);
34
    void (*bbt_reload)();
35
    void (*bbt_reload)();
35
    void (*bbt_disable)();
36
    void (*bbt_disable)();
36
};
37
};
37
 
38
 
38
 
39
 
39
extern uint16_t ata_identify_data[0x100];
40
extern uint16_t ata_identify_data[0x100];
40
extern uint64_t ata_total_sectors;
41
extern uint64_t ata_total_sectors;
41
extern struct mutex ata_mutex;
42
extern struct mutex ata_mutex;
42
 
43
 
-
 
44
void ata_set_retries(int retries);
-
 
45
void ata_srst_after_error(bool enable);
-
 
46
 
43
#ifdef ATA_HAVE_BBT
47
#ifdef ATA_HAVE_BBT
44
extern uint16_t (*ata_bbt)[0x20];
48
extern uint16_t (*ata_bbt)[0x20];
45
extern uint64_t ata_virtual_sectors;
49
extern uint64_t ata_virtual_sectors;
46
 
50
 
47
int ata_bbt_translate(uint64_t sector, uint32_t count, uint64_t* phys, uint32_t* physcount);
51
int ata_bbt_translate(uint64_t sector, uint32_t count, uint64_t* phys, uint32_t* physcount);