2010-02-22 22:29:47 +01:00
|
|
|
#ifndef _USBSTORAGE2_H_
|
2010-02-27 19:18:01 +01:00
|
|
|
#define _USBSTORAGE2_H_
|
2010-02-22 22:29:47 +01:00
|
|
|
|
|
|
|
#include "ogc/disc_io.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2010-09-19 01:16:05 +02:00
|
|
|
extern "C"
|
|
|
|
{
|
2010-02-22 22:29:47 +01:00
|
|
|
#endif
|
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
/* Prototypes */
|
2010-09-24 02:48:03 +02:00
|
|
|
s32 USBStorage2_Init(void);
|
|
|
|
void USBStorage2_Deinit(void);
|
|
|
|
s32 USBStorage2_Umount(void);
|
2010-09-28 22:55:42 +02:00
|
|
|
s32 USBStorage2_GetCapacity(u32 *);
|
2010-02-22 22:29:47 +01:00
|
|
|
|
2010-09-24 02:48:03 +02:00
|
|
|
s32 USBStorage2_ReadSectors(u32, u32, void *);
|
|
|
|
s32 USBStorage2_WriteSectors(u32, u32, const void *);
|
2010-02-22 22:29:47 +01:00
|
|
|
|
2010-09-24 02:48:03 +02:00
|
|
|
s32 USBStorage2_Watchdog(u32 on_off);
|
2010-02-22 22:29:47 +01:00
|
|
|
|
2010-09-24 02:48:03 +02:00
|
|
|
s32 USBStorage_WBFS_Read(u32 woffset, u32 len, void *buffer);
|
|
|
|
s32 USBStorage_WBFS_SetDevice(int dev);
|
|
|
|
s32 USBStorage_WBFS_SetFragList(void *p, int size);
|
2010-02-27 19:18:01 +01:00
|
|
|
|
2010-02-22 22:29:47 +01:00
|
|
|
#define DEVICE_TYPE_WII_UMS (('W'<<24)|('U'<<16)|('M'<<8)|'S')
|
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
extern const DISC_INTERFACE __io_usbstorage2;
|
2010-02-22 22:29:47 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|