COBE 0.1 ALPHA
|
00001 #ifndef FAT_H 00002 #define FAT_H 00003 00004 #include <stdint.h> 00005 00006 #ifndef NULL 00007 #define NULL (void*) 0 00008 #endif 00009 00018 typedef struct boot_fat_table { 00020 uint8_t cluster_size; 00022 uint16_t reserved_sectors; 00024 uint8_t num_of_fats; 00026 uint16_t max_entry_workdirectory; 00028 uint16_t sectors_of_fat; 00029 } boot_fat_table_t; 00030 00034 typedef struct directory { 00036 char name[255]; 00038 uint16_t cluster; 00040 struct directory* next; 00041 } directory_t; 00042 00043 void init_fat(); 00044 void fat_show_directory(); 00045 void fat_change_directory(char*); 00046 void fat_mkdir(char*); 00047 void fat_del(char*); 00048 uint32_t fat_get_cluster(); 00049 void* fat_long_name(char*); 00050 void fat_copy_act_sector(void*,uint16_t,bool); 00051 void fat_get_boot(boot_fat_table_t*); 00052 void fat_change_cluster(uint16_t,uint16_t); 00053 00054 #endif