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 $
16 #define BITMAP_ALLOC 0
25 u32 partitionRemainder
;
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 */