mgh: fix for default HDD DMA mode, that wasn't correctly set
[open-ps2-loader.git] / modules / ps2fs / super.h
blob210830a56516a57d598dfb10d0cf462d3e61c86d
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: super.h 577 2004-09-14 14:41:46Z pixel $
13 #ifndef _SUPER_H
14 #define _SUPER_H
16 #define PFS_SUPER_SECTOR 8192
17 #define PFS_SUPER_BACKUP_SECTOR 8193
19 int checkZoneSize(u32 zone_size);
20 u32 getBitmapSectors(int zoneScale, u32 partSize);
21 u32 getBitmapBocks(int scale, u32 mainsize);
22 int formatSub(block_device *blockDev, int fd, u32 sub, u32 reserved, u32 scale, u32 fragment);
23 int _format(block_device *blockDev, int fd, int zonesize, int fragment);
24 int updateSuperBlock(pfs_mount_t *pfsMount, pfs_super_block *superblock, u32 sub);
25 int mountSuperBlock(pfs_mount_t *pfsMount);
27 #endif /* _SUPER_H */