Kernel - Imported userland strtoi file (and other minor changes)
[tpg/acess2.git] / KernelLand / Modules / Storage / ATA / main.c
index 7c1b3a8..050faad 100644 (file)
@@ -21,7 +21,6 @@
 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);
@@ -105,7 +104,7 @@ int ATA_ScanDisk(int Disk)
 
        char name[] = "ata0";
        sprintf(name, "ata%i", Disk);
-       LVM_AddVolume(&gATA_VolType, name, (void*)(Uint*)Disk, 512, sector_count);
+       LVM_AddVolume(&gATA_VolType, name, (void*)(Uint)Disk, 512, sector_count);
 
        #if DEBUG >= 2
        {
@@ -123,7 +122,7 @@ int ATA_ScanDisk(int Disk)
 /**
  * \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;
@@ -161,7 +160,7 @@ int ATA_ReadRaw(void *Ptr, Uint64 Address, Uint Count, void *Buffer)
 /**
  * \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;

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