X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FStorage%2FATA%2Fcommon.h;h=f5ace2ba57e0e23d1f72a2ca72adc0ffac719038;hb=14b4663d3a932e485faef03716169d15224bda20;hp=1ca3a9942623d0ffb40a245f79986603ee88a327;hpb=06674bf290ab6a24398a5fde1b67060673e267ad;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/Storage/ATA/common.h b/KernelLand/Modules/Storage/ATA/common.h index 1ca3a994..f5ace2ba 100644 --- a/KernelLand/Modules/Storage/ATA/common.h +++ b/KernelLand/Modules/Storage/ATA/common.h @@ -15,46 +15,7 @@ // Needed out of io.c because it's the max for Read/WriteDMA #define MAX_DMA_SECTORS (0x1000 / SECTOR_SIZE) -// === STRUCTURES === -typedef struct -{ - Uint8 BootCode[0x1BE]; - struct { - Uint8 Boot; - Uint8 Unused1; // Also CHS Start - Uint16 StartHi; // Also CHS Start - Uint8 SystemID; - Uint8 Unused2; // Also CHS Length - Uint16 LengthHi; // Also CHS Length - Uint32 LBAStart; - Uint32 LBALength; - } __attribute__ ((packed)) Parts[4]; - Uint16 BootFlag; // = 0xAA 55 -} __attribute__ ((packed)) tMBR; - -typedef struct -{ - Uint64 Start; - Uint64 Length; - char Name[4]; - tVFS_Node Node; -} tATA_Partition; - -typedef struct -{ - Uint64 Sectors; -} tATA_Disk; - -// === GLOBALS === -extern tATA_Disk gATA_Disks[]; - // === FUNCTIONS === -// --- Common --- -extern void ATA_int_MakePartition(tATA_Partition *Part, int Disk, int Num, Uint64 Start, Uint64 Length); - -// --- MBR Parsing --- -extern void ATA_ParseMBR(int Disk, tMBR *MBR); - // --- IO Functions --- extern int ATA_SetupIO(void); extern Uint64 ATA_GetDiskSize(int Disk);