40 #include "../../api/fat_sl.h"
47 #include "../../version/ver_fat_sl.h"
48 #if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
49 #error Incompatible FAT_SL version number!
118 unsigned long fatsector;
171 unsigned long sector = cluster;
172 unsigned short s_data = (
unsigned short)( _tdata & 0xffff );
193 unsigned char f12new[2];
194 unsigned long sector = cluster;
196 unsigned short s_data = (
unsigned short)( _tdata & 0x0fff );
205 sector += sector / 2;
238 if ( !( cluster & 1 ) )
253 unsigned long sector = cluster;
267 _tdata &= 0x0fffffff;
268 _tdata |= oldv & 0xf0000000;
270 if ( _tdata != oldv )
311 unsigned long sector = cluster;
336 unsigned char dataf12[2];
337 unsigned long sector = cluster;
340 sector += sector / 2;
390 unsigned long sector = cluster;
474 unsigned long cluster;
520 for ( cou = 0 ; cou < maxcluster ; cou++ )
522 if ( cluster >= maxcluster )
573 while ( cluster < F_CLUSTER_RESERVED && cluster >= 2 )
575 unsigned long nextcluster;
589 cluster = nextcluster;
unsigned char _f_removechain(unsigned long cluster)
unsigned char _f_writefatsector(void)
void _f_setlong(void *, unsigned long)
unsigned char sector_per_cluster
unsigned char _f_alloccluster(unsigned long *pcluster)
void _f_clustertopos(unsigned long cluster, F_POS *pos)
unsigned long _f_getlong(void *)
unsigned long lastalloccluster
unsigned char _f_getcurrsector(void)
unsigned char _f_writeglsector(unsigned long sector)
unsigned short _f_getword(void *)
void _f_setword(void *, unsigned short)
unsigned char _f_getfatsector(unsigned long sector)
unsigned char number_of_FATs
unsigned char _f_readglsector(unsigned long sector)
char gl_sector[F_SECTOR_SIZE]
#define F_CLUSTER_RESERVED
unsigned char _f_getclustervalue(unsigned long cluster, unsigned long *pvalue)
unsigned char _f_setclustervalue(unsigned long cluster, unsigned long _tdata)