mgh: fix for default HDD DMA mode, that wasn't correctly set
[open-ps2-loader.git] / modules / usb / usbhdfsd / scache.h
blob8f03322bcf24c47dd974c66296649737351ffd3b
1 #ifndef _SCACHE_H
2 #define _SCACHE_H 1
4 cache_set* scache_init(mass_dev* dev, int sectorSize);
5 void scache_close(cache_set* cache);
6 void scache_kill(cache_set* cache); //dlanor: added for disconnection events (flush impossible)
7 int scache_allocSector(cache_set* cache, unsigned int sector, void** buf);
8 int scache_readSector(cache_set* cache, unsigned int sector, void** buf);
9 int scache_writeSector(cache_set* cache, unsigned int sector);
10 int scache_flushSectors(cache_set* cache);
12 void scache_getStat(cache_set* cache, unsigned int* access, unsigned int* hits);
14 #endif