Fix a bug (in revision 426) which made "Mode 3 - Unhook Syscalls" un-effectivei ...
[open-ps2-loader.git] / modules / ps2fs / cache.h
blob4d5eb6665a675c1ead1a805844d0d7bf8ddd5b50
1 /*
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 $
13 #ifndef _CACHE_H
14 #define _CACHE_H
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);
25 int cacheIsFull();
26 int cacheInit(u32 numBuf, u32 bufSize);
27 void cacheMarkClean(pfs_mount_t *pfsMount, u32 subpart, u32 sectorStart, u32 sectorEnd);
29 #endif /* _CACHE_H */