2 * Acess2 IDE Harddisk Driver
12 #define MAX_ATA_DISKS 4
13 #define SECTOR_SIZE 512
14 #define ATA_TIMEOUT 2000 // 2s timeout
15 // Needed out of io.c because it's the max for Read/WriteDMA
16 #define MAX_DMA_SECTORS (0x1000 / SECTOR_SIZE)
19 // --- IO Functions ---
20 extern int ATA_SetupIO(void);
21 extern Uint64 ATA_GetDiskSize(int Disk);
22 extern int ATA_ReadDMA(Uint8 Disk, Uint64 Address, Uint Count, void *Buffer);
23 extern int ATA_WriteDMA(Uint8 Disk, Uint64 Address, Uint Count, const void *Buffer);