* fix for theme font handling (when switching back to the default theme, the language...
[open-ps2-loader.git] / modules / usb / usbhdfsd / mass_stor.h
blob4fa3e7f9e8f4cc64df3edaa4fb2717365c368887
1 #ifndef _MASS_STOR_H
2 #define _MASS_STOR_H 1
4 struct _mass_dev
6 int controlEp; //config endpoint id
7 int bulkEpI; //in endpoint id
8 unsigned char bulkEpIAddr; // in endpoint address
9 int bulkEpO; //out endpoint id
10 unsigned char bulkEpOAddr; // out endpoint address
11 int packetSzI; //packet size in
12 int packetSzO; //packet size out
13 int devId; //device id
14 int configId; //configuration id
15 int status;
16 int interfaceNumber; //interface number
17 int interfaceAlt; //interface alternate setting
18 unsigned sectorSize; // = 512; // store size of sector from usb mass
19 unsigned maxLBA;
20 cache_set* cache;
23 int InitUSB(void);
24 int mass_stor_sectorsize(mass_dev *dev);
25 int mass_stor_disconnect(int devId);
26 int mass_stor_connect(int devId);
27 int mass_stor_probe(int devId);
28 int mass_stor_readSector(mass_dev* mass_device, unsigned int sector, unsigned char* buffer, int size);
29 int mass_stor_writeSector(mass_dev* mass_device, unsigned int sector, unsigned char* buffer, int size);
30 int mass_stor_configureNextDevice(void);
32 #endif