X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fdrv%2Fiocache.c;h=446f9b6bd2decc8f51c9a078b65d085d7fa9c534;hb=5178e8cb3113d9207c55b9042b6506de05624724;hp=8f735419f1d9f65d4a823d8a316ec0a8c9402917;hpb=51ab5f489bc356940c95cc936fd0508e8f07ea97;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/drv/iocache.c b/KernelLand/Kernel/drv/iocache.c index 8f735419..446f9b6b 100644 --- a/KernelLand/Kernel/drv/iocache.c +++ b/KernelLand/Kernel/drv/iocache.c @@ -39,7 +39,7 @@ struct sIOCache int SectorSize; tMutex Lock; int Mode; - Uint32 ID; + void *ID; tIOCache_WriteCallback Write; int CacheSize; int CacheUsed; @@ -57,7 +57,7 @@ tIOCache_PageInfo *gIOCache_GlobalPages; * \fn tIOCache *IOCache_Create( tIOCache_WriteCallback Write, Uint32 ID, int SectorSize, int CacheSize ) * \brief Creates a new IO Cache */ -tIOCache *IOCache_Create( tIOCache_WriteCallback Write, Uint32 ID, int SectorSize, int CacheSize ) +tIOCache *IOCache_Create( tIOCache_WriteCallback Write, void *ID, int SectorSize, int CacheSize ) { tIOCache *ret = calloc( 1, sizeof(tIOCache) ); @@ -145,7 +145,7 @@ int IOCache_Read( tIOCache *Cache, Uint64 Sector, void *Buffer ) * \fn int IOCache_Add( tIOCache *Cache, Uint64 Sector, void *Buffer ) * \brief Cache a sector */ -int IOCache_Add( tIOCache *Cache, Uint64 Sector, void *Buffer ) +int IOCache_Add( tIOCache *Cache, Uint64 Sector, const void *Buffer ) { tIOCache_Ent *ent, *prev; tIOCache_Ent *new; @@ -237,7 +237,7 @@ int IOCache_Add( tIOCache *Cache, Uint64 Sector, void *Buffer ) * \fn int IOCache_Write( tIOCache *Cache, Uint64 Sector, void *Buffer ) * \brief Read from a cached sector */ -int IOCache_Write( tIOCache *Cache, Uint64 Sector, void *Buffer ) +int IOCache_Write( tIOCache *Cache, Uint64 Sector, const void *Buffer ) { tIOCache_Ent *ent;