X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Finclude%2Fapi_drv_disk.h;h=c37dfec6ec0dcf484fb63025617449b7a4ce2abe;hb=d1530bb39a40caa7ce083245905c13f8e6399c96;hp=94ea2c94b67e2c82e72d29121836ee148d4f3465;hpb=51ab5f489bc356940c95cc936fd0508e8f07ea97;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/include/api_drv_disk.h b/KernelLand/Kernel/include/api_drv_disk.h index 94ea2c94..c37dfec6 100644 --- a/KernelLand/Kernel/include/api_drv_disk.h +++ b/KernelLand/Kernel/include/api_drv_disk.h @@ -148,8 +148,8 @@ enum eTplDisk_CacheFlags * \param Buffer Destination for read blocks * \param Argument Argument provided in ::DrvUtil_ReadBlock and ::DrvUtil_WriteBlock */ -typedef Uint (*tDrvUtil_Read_Callback)(Uint64 Address, Uint Count, void *Buffer, Uint Argument); -typedef Uint (*tDrvUtil_Write_Callback)(Uint64 Address, Uint Count, const void *Buffer, Uint Argument); +typedef Uint (*tDrvUtil_Read_Callback)(Uint64 Address, Uint Count, void *Buffer, void *Argument); +typedef Uint (*tDrvUtil_Write_Callback)(Uint64 Address, Uint Count, const void *Buffer, void *Argument); /** * \brief Reads a range from a block device using aligned reads @@ -162,7 +162,7 @@ typedef Uint (*tDrvUtil_Write_Callback)(Uint64 Address, Uint Count, const void * * \return Number of bytes read */ extern Uint64 DrvUtil_ReadBlock(Uint64 Start, Uint64 Length, void *Buffer, - tDrvUtil_Read_Callback ReadBlocks, Uint64 BlockSize, Uint Argument); + tDrvUtil_Read_Callback ReadBlocks, Uint64 BlockSize, void *Argument); /** * \brief Writes a range to a block device using aligned writes * \param Start Base byte offset @@ -176,7 +176,7 @@ extern Uint64 DrvUtil_ReadBlock(Uint64 Start, Uint64 Length, void *Buffer, */ extern Uint64 DrvUtil_WriteBlock(Uint64 Start, Uint64 Length, const void *Buffer, tDrvUtil_Read_Callback ReadBlocks, tDrvUtil_Write_Callback WriteBlocks, - Uint64 BlockSize, Uint Argument); + Uint64 BlockSize, void *Argument); /** * \}