2010-02-22 21:29:47 +00:00
|
|
|
#ifndef _USBSTORAGE2_H_
|
2010-02-27 18:18:01 +00:00
|
|
|
#define _USBSTORAGE2_H_
|
2010-02-22 21:29:47 +00:00
|
|
|
|
|
|
|
#include "ogc/disc_io.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2010-09-18 23:16:05 +00:00
|
|
|
extern "C"
|
|
|
|
{
|
2010-02-22 21:29:47 +00:00
|
|
|
#endif
|
|
|
|
|
2010-09-18 23:16:05 +00:00
|
|
|
/* Prototypes */
|
2010-09-24 00:48:03 +00:00
|
|
|
s32 USBStorage2_Init(void);
|
|
|
|
void USBStorage2_Deinit(void);
|
|
|
|
s32 USBStorage2_Umount(void);
|
2010-09-28 20:55:42 +00:00
|
|
|
s32 USBStorage2_GetCapacity(u32 *);
|
2010-02-22 21:29:47 +00:00
|
|
|
|
2010-09-24 00:48:03 +00:00
|
|
|
s32 USBStorage2_ReadSectors(u32, u32, void *);
|
|
|
|
s32 USBStorage2_WriteSectors(u32, u32, const void *);
|
2010-02-22 21:29:47 +00:00
|
|
|
|
2010-09-24 00:48:03 +00:00
|
|
|
s32 USBStorage2_Watchdog(u32 on_off);
|
2010-02-22 21:29:47 +00:00
|
|
|
|
2011-02-05 21:06:52 +00:00
|
|
|
s32 USBStorage2_SetPort(u32 port);
|
|
|
|
s32 USBStorage2_GetPort();
|
2010-02-27 18:18:01 +00:00
|
|
|
|
2010-02-22 21:29:47 +00:00
|
|
|
#define DEVICE_TYPE_WII_UMS (('W'<<24)|('U'<<16)|('M'<<8)|'S')
|
|
|
|
|
2010-09-18 23:16:05 +00:00
|
|
|
extern const DISC_INTERFACE __io_usbstorage2;
|
2010-02-22 21:29:47 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|