X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Finclude%2Fapi_drv_disk.h;fp=Kernel%2Finclude%2Fapi_drv_disk.h;h=94ea2c94b67e2c82e72d29121836ee148d4f3465;hb=5f2024e5977e0cca0993a20dad5ab794c94d5711;hp=68e5330d0d1e7aed34c80e38b44b80e493794fd7;hpb=e56e258bdc6345e33454ddb127b2d87c536a0f39;p=tpg%2Facess2.git diff --git a/Kernel/include/api_drv_disk.h b/Kernel/include/api_drv_disk.h index 68e5330d..94ea2c94 100644 --- a/Kernel/include/api_drv_disk.h +++ b/Kernel/include/api_drv_disk.h @@ -148,7 +148,8 @@ enum eTplDisk_CacheFlags * \param Buffer Destination for read blocks * \param Argument Argument provided in ::DrvUtil_ReadBlock and ::DrvUtil_WriteBlock */ -typedef Uint (*tDrvUtil_Callback)(Uint64 Address, Uint Count, void *Buffer, Uint Argument); +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); /** * \brief Reads a range from a block device using aligned reads @@ -161,7 +162,7 @@ typedef Uint (*tDrvUtil_Callback)(Uint64 Address, Uint Count, void *Buffer, Uint * \return Number of bytes read */ extern Uint64 DrvUtil_ReadBlock(Uint64 Start, Uint64 Length, void *Buffer, - tDrvUtil_Callback ReadBlocks, Uint64 BlockSize, Uint Argument); + tDrvUtil_Read_Callback ReadBlocks, Uint64 BlockSize, Uint Argument); /** * \brief Writes a range to a block device using aligned writes * \param Start Base byte offset @@ -173,8 +174,8 @@ extern Uint64 DrvUtil_ReadBlock(Uint64 Start, Uint64 Length, void *Buffer, * \param Argument An argument to pass to \a ReadBlocks and \a WriteBlocks * \return Number of bytes written */ -extern Uint64 DrvUtil_WriteBlock(Uint64 Start, Uint64 Length, void *Buffer, - tDrvUtil_Callback ReadBlocks, tDrvUtil_Callback WriteBlocks, +extern Uint64 DrvUtil_WriteBlock(Uint64 Start, Uint64 Length, const void *Buffer, + tDrvUtil_Read_Callback ReadBlocks, tDrvUtil_Write_Callback WriteBlocks, Uint64 BlockSize, Uint Argument); /**