Disabling auto-refresh of game list by default, as it is causing bugs sometimes
[open-ps2-loader.git] / modules / iopcore / cdvdman / mass_stor.h
blob482bdd06f613ffd2c1e111bd355d8ff83e181cec
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 void* cache;
23 int mass_stor_init(void);
24 int mass_stor_disconnect(int devId);
25 int mass_stor_connect(int devId);
26 int mass_stor_probe(int devId);
27 int mass_stor_readSector(unsigned int lba, int nsectors, unsigned char* buffer);
28 int mass_stor_writeSector(unsigned int lba, int nsectors, unsigned char* buffer);
29 int mass_stor_configureDevice(void);
30 int mass_stor_ReadCD(unsigned int lsn, unsigned int nsectors, void *buf, int part_num);
32 #endif