Modules/LVM - Detection for GPT in MBR code
[tpg/acess2.git] / KernelLand / Modules / Storage / ATA / common.h
1 /*
2  * Acess2 IDE Harddisk Driver
3  * - main.c
4  */
5 #ifndef _COMMON_H_
6 #define _COMMON_H_
7
8 #include <acess.h>
9 #include <vfs.h>
10
11 // === CONSTANTS ===
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)
17
18 // === FUNCTIONS ===
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);
24
25 #endif

UCC git Repository :: git.ucc.asn.au