VFS - Rework to remove function pointers from tVFS_Node
[tpg/acess2.git] / Kernel / include / api_drv_disk.h
index 68e5330..94ea2c9 100644 (file)
@@ -148,7 +148,8 @@ enum eTplDisk_CacheFlags
  * \param Buffer       Destination for read blocks\r
  * \param Argument     Argument provided in ::DrvUtil_ReadBlock and ::DrvUtil_WriteBlock\r
  */\r
-typedef Uint   (*tDrvUtil_Callback)(Uint64 Address, Uint Count, void *Buffer, Uint Argument);\r
+typedef Uint   (*tDrvUtil_Read_Callback)(Uint64 Address, Uint Count, void *Buffer, Uint Argument);\r
+typedef Uint   (*tDrvUtil_Write_Callback)(Uint64 Address, Uint Count, const void *Buffer, Uint Argument);\r
 \r
 /**\r
  * \brief Reads a range from a block device using aligned reads\r
@@ -161,7 +162,7 @@ typedef Uint        (*tDrvUtil_Callback)(Uint64 Address, Uint Count, void *Buffer, Uint
  * \return Number of bytes read\r
  */\r
 extern Uint64 DrvUtil_ReadBlock(Uint64 Start, Uint64 Length, void *Buffer,\r
-       tDrvUtil_Callback ReadBlocks, Uint64 BlockSize, Uint Argument);\r
+       tDrvUtil_Read_Callback ReadBlocks, Uint64 BlockSize, Uint Argument);\r
 /**\r
  * \brief Writes a range to a block device using aligned writes\r
  * \param Start        Base byte offset\r
@@ -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\r
  * \return Number of bytes written\r
  */\r
-extern Uint64 DrvUtil_WriteBlock(Uint64 Start, Uint64 Length, void *Buffer,\r
-       tDrvUtil_Callback ReadBlocks, tDrvUtil_Callback WriteBlocks,\r
+extern Uint64 DrvUtil_WriteBlock(Uint64 Start, Uint64 Length, const void *Buffer,\r
+       tDrvUtil_Read_Callback ReadBlocks, tDrvUtil_Write_Callback WriteBlocks,\r
        Uint64 BlockSize, Uint Argument);\r
 \r
 /**\r

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