mirror of
https://github.com/nitraiolo/CfgUSBLoader.git
synced 2024-11-27 13:44:17 +01:00
23 lines
669 B
C
23 lines
669 B
C
#ifndef _USBSTORAGE_H_
|
|
#define _USBSTORAGE_H_
|
|
|
|
/* Disc interfaces */
|
|
extern const DISC_INTERFACE my_io_usbstorage;
|
|
extern const DISC_INTERFACE my_io_usbstorage_ro;
|
|
|
|
/* Prototypes */
|
|
u32 USBStorage_GetCapacity(u32 *);
|
|
s32 USBStorage_Init(void);
|
|
void USBStorage_Deinit(void);
|
|
s32 USBStorage_ReadSectors(u32, u32, void *);
|
|
s32 USBStorage_WriteSectors(u32, u32, void *);
|
|
|
|
s32 USBStorage_WBFS_Open(char *buf_id);
|
|
s32 USBStorage_WBFS_Read(u32 woffset, u32 len, void *buffer);
|
|
s32 USBStorage_WBFS_ReadDebug(u32 off, u32 size, void *buffer);
|
|
s32 USBStorage_WBFS_SetDevice(int dev);
|
|
s32 USBStorage_WBFS_SetFragList(void *p, int size);
|
|
void usb_debug_dump(int arg);
|
|
|
|
#endif
|