2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
10 # $Id: cache.h 577 2004-09-14 14:41:46Z pixel $
16 void cacheAdd(pfs_cache_t
*clink
);
17 void cacheLink(pfs_cache_t
*clink
, pfs_cache_t
*cnew
);
18 pfs_cache_t
*cacheUnLink(pfs_cache_t
*clink
);
19 pfs_cache_t
*cacheUsedAdd(pfs_cache_t
*clink
);
20 int cacheTransfer(pfs_cache_t
* clink
, int mode
);
21 void cacheFlushAllDirty(pfs_mount_t
*pfsMount
);
22 pfs_cache_t
*cacheAlloc(pfs_mount_t
*pfsMount
, u16 sub
, u32 scale
, int flags
, int *result
);
23 pfs_cache_t
*cacheGetData(pfs_mount_t
*pfsMount
, u16 sub
, u32 scale
, int flags
, int *result
);
24 pfs_cache_t
*cacheAllocClean(int *result
);
26 int cacheInit(u32 numBuf
, u32 bufSize
);
27 void cacheMarkClean(pfs_mount_t
*pfsMount
, u32 subpart
, u32 sectorStart
, u32 sectorEnd
);