Disabling auto-refresh of game list by default, as it is causing bugs sometimes
[open-ps2-loader/simon.git] / modules / ps2fs / bitmap.h
blobf48114b21a0a6f4317aed714dd4ded57de56037e
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: bitmap.h 577 2004-09-14 14:41:46Z pixel $
13 #ifndef _BITMAP_H
14 #define _BITMAP_H
16 #define BITMAP_ALLOC 0
17 #define BITMAP_FREE 1
19 typedef struct
21 u32 chunk;
22 u32 index;
23 u32 bit;
24 u32 partitionChunks;
25 u32 partitionRemainder;
26 } t_bitmapInfo;
28 void bitmapSetupInfo(pfs_mount_t *pfsMount, t_bitmapInfo *info, u32 subpart, u32 number);
29 void bitmapAllocFree(pfs_cache_t *clink, u32 operation, u32 subpart, u32 chunk, u32 index, u32 _bit, u32 count);
30 int bitmapAllocateAdditionalZones(pfs_mount_t *pfsMount, pfs_blockinfo *bi, u32 count);
31 int bitmapAllocZones(pfs_mount_t *pfsMount, pfs_blockinfo *bi, u32 amount);
32 int searchFreeZone(pfs_mount_t *pfsMount, pfs_blockinfo *bi, u32 max_count);
33 void bitmapFreeBlockSegment(pfs_mount_t *pfsMount, pfs_blockinfo *bi);
34 int calcFreeZones(pfs_mount_t *pfsMount, int sub);
35 void bitmapShow(pfs_mount_t *pfsMount);
36 void bitmapFreeInodeBlocks(pfs_cache_t *clink);
38 #endif /* _BITMAP_H */