mgh: fix for default HDD DMA mode, that wasn't correctly set
[open-ps2-loader/simon.git] / modules / ps2fs / dir.h
blobf5d1d56aeedeea3ed1cc5f13801d752ed1d99f0c
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: dir.h 577 2004-09-14 14:41:46Z pixel $
13 #ifndef _DIR_H
14 #define _DIR_H
16 pfs_cache_t *getDentry(pfs_cache_t *clink, char *path, pfs_dentry **dentry, u32 *size, int option);
17 pfs_cache_t *getDentriesChunk(pfs_blockpos_t *position, int *result);
18 int getNextDentry(pfs_cache_t *clink, pfs_blockpos_t *blockpos, u32 *position, char *name, pfs_blockinfo *bi);
19 pfs_cache_t *getDentriesAtPos(pfs_cache_t *clink, u64 position, int *offset, int *result);
20 pfs_cache_t *fillInDentry(pfs_cache_t *clink, pfs_dentry *dentry, char *path1, pfs_blockinfo *bi, u32 len, u16 mode);
21 pfs_cache_t *dirAddEntry(pfs_cache_t *dir, char *filename, pfs_blockinfo *bi, u16 mode, int *result);
22 pfs_cache_t *dirRemoveEntry(pfs_cache_t *clink, char *path);
23 int checkDirForFiles(pfs_cache_t *clink);
24 void fillSelfAndParentDentries(pfs_cache_t *clink, pfs_blockinfo *self, pfs_blockinfo *parent);
25 pfs_cache_t* setParent(pfs_cache_t *clink, pfs_blockinfo *bi, int *result);
27 #endif /* _DIR_H */