mgh: fix for default HDD DMA mode, that wasn't correctly set
[open-ps2-loader.git] / modules / usb / usbhdfsd / fat_write.h
blob86f13ec0c894e2f292d1aa8ccb11f20aa2ca8c8e
1 #ifndef _FAT_WRITE_H
2 #define _FAT_WRITE_H 1
4 unsigned char toUpperChar(unsigned char c);
5 int fat_createFile(fat_driver* fatd, const unsigned char* fname, char directory, char escapeNotExist, unsigned int* cluster, unsigned int* sfnSector, int* sfnOffset);
6 int fat_deleteFile(fat_driver* fatd, const unsigned char* fname, char directory);
7 int fat_truncateFile(fat_driver* fatd, unsigned int cluster, unsigned int sfnSector, int sfnOffset );
8 int fat_writeFile(fat_driver* fatd, fat_dir* fatDir, int* updateClusterIndices, unsigned int filePos, unsigned char* buffer, int size) ;
9 int fat_updateSfn(fat_driver* fatd, int size, unsigned int sfnSector, int sfnOffset );
11 int fat_allocSector(fat_driver* fatd, unsigned int sector, unsigned char** buf);
12 int fat_writeSector(fat_driver* fatd, unsigned int sector);
13 int fat_flushSectors(fat_driver* fatd);
14 #endif /* _FAT_WRITE_H */