void ATA_SetupPartitions(void);
int ATA_ScanDisk(int Disk);
void ATA_ParseGPT(int Disk);
-void ATA_int_MakePartition(tATA_Partition *Part, int Disk, int Num, Uint64 Start, Uint64 Length);
Uint16 ATA_GetBasePort(int Disk);
// Read/Write Interface/Quantiser
int ATA_ReadRaw(void *Ptr, Uint64 Address, size_t Count, void *Buffer);
tLVM_VolType gATA_VolType = {
.Name = "ATA",
.Read = ATA_ReadRaw,
- .Write = ATA_WriteRaw,
- .BlockSize = 512,
+ .Write = ATA_WriteRaw
};
// === CODE ===
char name[] = "ata0";
sprintf(name, "ata%i", Disk);
- LVM_AddVolume(&gATA_VolType, name, (void*)(Uint*)Disk, sector_count);
+ LVM_AddVolume(&gATA_VolType, name, (void*)(Uint)Disk, 512, sector_count);
#if DEBUG >= 2
{
/**
* \fn Uint ATA_ReadRaw(Uint64 Address, Uint Count, void *Buffer, Uint Disk)
*/
-int ATA_ReadRaw(void *Ptr, Uint64 Address, Uint Count, void *Buffer)
+int ATA_ReadRaw(void *Ptr, Uint64 Address, size_t Count, void *Buffer)
{
int Disk = (tVAddr)Ptr;
int ret;
/**
* \fn Uint ATA_WriteRaw(Uint64 Address, Uint Count, const void *Buffer, Uint Disk)
*/
-int ATA_WriteRaw(void *Ptr, Uint64 Address, Uint Count, const void *Buffer)
+int ATA_WriteRaw(void *Ptr, Uint64 Address, size_t Count, const void *Buffer)
{
int Disk = (tVAddr)Ptr;
int ret;