mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-09-08 08:33:19 +02:00
![dimok321](/assets/img/avatar_default.png)
- Using mem2 memory from our mem2 manager now - Fixed potential memory overwrite - Removed unneeded or unused functions
35 lines
749 B
C
35 lines
749 B
C
#ifndef _USBSTORAGE2_H_
|
|
#define _USBSTORAGE2_H_
|
|
|
|
#include "ogc/disc_io.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
/* Prototypes */
|
|
s32 USBStorage2_Init(void);
|
|
void USBStorage2_Deinit(void);
|
|
s32 USBStorage2_Umount(void);
|
|
s32 USBStorage2_GetCapacity(u32 *);
|
|
|
|
s32 USBStorage2_ReadSectors(u32, u32, void *);
|
|
s32 USBStorage2_WriteSectors(u32, u32, const void *);
|
|
|
|
s32 USBStorage2_Watchdog(u32 on_off);
|
|
|
|
s32 USBStorage_WBFS_Read(u32 woffset, u32 len, void *buffer);
|
|
s32 USBStorage_WBFS_SetDevice(int dev);
|
|
s32 USBStorage_WBFS_SetFragList(void *p, int size);
|
|
|
|
#define DEVICE_TYPE_WII_UMS (('W'<<24)|('U'<<16)|('M'<<8)|'S')
|
|
|
|
extern const DISC_INTERFACE __io_usbstorage2;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|