mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-24 04:09:15 +01:00
5640028b17
the memory we use for them, not that we get problems -added debug prints about how much mem left before and after cleanup -updated devicehandler, partition handler and usb code to the latest usb loader gx one, should give more compatility and port 1 support (not enabled yet)
33 lines
724 B
C
33 lines
724 B
C
#ifndef _USBSTORAGE2_H_
|
|
#define _USBSTORAGE2_H_
|
|
|
|
#include "ogc/disc_io.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
/* Prototypes */
|
|
s32 USBStorage2_Init(u32 port);
|
|
void USBStorage2_Deinit();
|
|
s32 USBStorage2_GetCapacity(u32 port, u32 *size);
|
|
|
|
s32 USBStorage2_ReadSectors(u32 port, u32 sector, u32 numSectors, void *buffer);
|
|
s32 USBStorage2_WriteSectors(u32 port, u32 sector, u32 numSectors, const void *buffer);
|
|
s32 USBStorage2_GetSectorSize();
|
|
|
|
s32 USBStorage2_SetPort(u32 port);
|
|
s32 USBStorage2_GetPort();
|
|
|
|
#define DEVICE_TYPE_WII_UMS (('W'<<24)|('U'<<16)|('M'<<8)|'S')
|
|
|
|
extern const DISC_INTERFACE __io_usbstorage2_port0;
|
|
extern const DISC_INTERFACE __io_usbstorage2_port1;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|