1 #ifndef __USBSTORAGE_H__ 2 #define __USBSTORAGE_H__ 15 #define USBSTORAGE_OK 0 16 #define USBSTORAGE_ENOINTERFACE -10000 17 #define USBSTORAGE_ESENSE -10001 18 #define USBSTORAGE_ESHORTWRITE -10002 19 #define USBSTORAGE_ESHORTREAD -10003 20 #define USBSTORAGE_ESIGNATURE -10004 21 #define USBSTORAGE_ETAG -10005 22 #define USBSTORAGE_ESTATUS -10006 23 #define USBSTORAGE_EDATARESIDUE -10007 24 #define USBSTORAGE_ETIMEDOUT -10008 25 #define USBSTORAGE_EINIT -10009 26 #define USBSTORAGE_PROCESSING -10010 33 u8 bInterfaceSubClass;
53 #define B_RAW_DEVICE_DATA_IN 0x01 54 #define B_RAW_DEVICE_COMMAND 0 65 s32 USBStorage_Initialize();
67 s32 USBStorage_Open(usbstorage_handle *dev,
s32 device_id,
u16 vid,
u16 pid);
68 s32 USBStorage_Close(usbstorage_handle *dev);
69 s32 USBStorage_Reset(usbstorage_handle *dev);
71 s32 USBStorage_GetMaxLUN(usbstorage_handle *dev);
72 s32 USBStorage_MountLUN(usbstorage_handle *dev,
u8 lun);
73 s32 USBStorage_Suspend(usbstorage_handle *dev);
74 s32 USBStorage_IsDVD();
75 s32 USBStorage_ioctl(
int request, ...);
77 s32 USBStorage_ReadCapacity(usbstorage_handle *dev,
u8 lun,
u32 *sector_size,
u32 *n_sectors);
79 s32 USBStorage_Write(usbstorage_handle *dev,
u8 lun,
u32 sector,
u16 n_sectors,
const u8 *
buffer);
80 s32 USBStorage_StartStop(usbstorage_handle *dev,
u8 lun,
u8 lo_ej,
u8 start,
u8 imm);
82 #define DEVICE_TYPE_WII_USB (('W'<<24)|('U'<<16)|('S'<<8)|'B') int32_t s32
32bit signed integer
Definition: gctypes.h:24
int mutex_t
typedef for the mutex handle
Definition: lock.c:6
static const unsigned char tag[MAX_TESTS *3][16]
Definition: gcm.c:696
GLuint buffer
Definition: glext.h:6555
GLuint start
Definition: glext.h:6292
u32 syswd_t
handle typedef for the alarm context
Definition: system.h:138
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: glext.h:6303
uint16_t u16
16bit unsigned integer
Definition: gctypes.h:18
OS functions and initialization.
Definition: iosuhax_disc_interface.h:52
Definition: video4linux2.c:51
GLbitfield flags
Definition: glext.h:7828
uint8_t u8
8bit unsigned integer
Definition: gctypes.h:17
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19
unsigned char uint8_t
Definition: stdint.h:124
Definition: command.c:129