Subversion Repositories freemyipod

Rev

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

Rev 601 Rev 613
Line 22... Line 22...
22
 
22
 
23
 
23
 
24
#ifndef __STORAGE_ATA_TARGET_H__
24
#ifndef __STORAGE_ATA_TARGET_H__
25
#define __STORAGE_ATA_TARGET_H__
25
#define __STORAGE_ATA_TARGET_H__
26
 
26
 
27
#include "global.h"
27
#include "../global.h"
-
 
28
 
-
 
29
 
-
 
30
struct ata_target_driverinfo
-
 
31
{
-
 
32
    int (*soft_reset)();
-
 
33
    int (*bbt_translate)(uint64_t sector, uint32_t count, uint64_t* phys, uint32_t* physcount);
-
 
34
    void (*bbt_reload)();
-
 
35
    void (*bbt_disable)();
-
 
36
};
28
 
37
 
29
 
38
 
30
extern uint16_t ata_identify_data[0x100];
39
extern uint16_t ata_identify_data[0x100];
31
extern uint64_t ata_total_sectors;
40
extern uint64_t ata_total_sectors;
32
extern struct mutex ata_mutex;
41
extern struct mutex ata_mutex;
33
 
42
 
34
#ifdef ATA_HAVE_BBT
43
#ifdef ATA_HAVE_BBT
35
extern uint16_t (*ata_bbt)[0x20];
44
extern uint16_t (*ata_bbt)[0x20];
36
extern uint64_t ata_virtual_sectors;
45
extern uint64_t ata_virtual_sectors;
37
 
46
 
-
 
47
int ata_bbt_translate(uint64_t sector, uint32_t count, uint64_t* phys, uint32_t* physcount);
-
 
48
void ata_bbt_reload();
-
 
49
void ata_bbt_disable();
38
int ata_rw_sectors_internal(uint64_t sector, uint32_t count, void* buffer, bool write);
50
int ata_rw_sectors_internal(uint64_t sector, uint32_t count, void* buffer, bool write);
39
#endif
51
#endif
40
 
52
 
41
 
53
 
42
#endif
54
#endif