2010-12-12 17:31:13 +01:00
|
|
|
#ifndef _WBFS_RW_H
|
|
|
|
#define _WBFS_RW_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
2011-01-28 22:19:43 +01:00
|
|
|
#include <gccore.h>
|
2010-12-12 17:31:13 +01:00
|
|
|
#include "libs/libwbfs/libwbfs.h"
|
|
|
|
|
2011-01-28 22:19:43 +01:00
|
|
|
typedef struct _WBFS_PartInfo
|
|
|
|
{
|
|
|
|
u32 wbfs_sector_size;
|
|
|
|
u32 hdd_sector_size;
|
|
|
|
u32 partition_lba;
|
|
|
|
u32 partition_num_sec;
|
|
|
|
} WBFS_PartInfo;
|
|
|
|
|
2010-12-12 17:31:13 +01:00
|
|
|
extern rw_sector_callback_t readCallback;
|
|
|
|
extern rw_sector_callback_t writeCallback;
|
2011-01-12 20:30:04 +01:00
|
|
|
extern const DISC_INTERFACE * currentHandle;
|
2010-12-12 17:31:13 +01:00
|
|
|
|
|
|
|
s32 __ReadDVD(void *fp, u32 lba, u32 len, void *iobuf);
|
|
|
|
s32 __ReadUSB(void *fp, u32 lba, u32 count, void *iobuf);
|
|
|
|
s32 __WriteUSB(void *fp, u32 lba, u32 count, void *iobuf);
|
|
|
|
s32 __ReadSDHC(void *fp, u32 lba, u32 count, void *iobuf);
|
|
|
|
s32 __WriteSDHC(void *fp, u32 lba, u32 count, void *iobuf);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif //_WBFS_RW_H
|