00001 00010 #ifndef __FAT_H 00011 #define __FAT_H 00012 #include "fat_defs.h" 00027 struct boot_sector { 00028 char fs_type; 00029 int block_size; 00030 unsigned int num_block; 00031 }; 00032 00050 struct dir_entry { 00051 char used; 00052 char name[MAX_LEN_NAME + 1]; 00053 char attr; 00054 unsigned int index; 00055 unsigned int len; 00056 }; 00057 00069 struct fat_ctrl { 00070 struct boot_sector b_sector; 00071 unsigned int *fat_ptr; 00072 unsigned int blk_base; 00073 }; 00074 00075 00076 00077 #endif