diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-10-31 16:09:28 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-10-31 16:09:28 +0000 |
commit | a5e77d8f943e602c56036f0f21b60b7f442a3976 (patch) | |
tree | 324101cf4060f4f06bd522bd49d4f57469a6dad3 /firmware/drivers/fat.h | |
parent | 3bf2f7858188c222abde85643ce980963dc7e4c9 (diff) | |
download | rockbox-a5e77d8f943e602c56036f0f21b60b7f442a3976.tar.gz rockbox-a5e77d8f943e602c56036f0f21b60b7f442a3976.zip |
Fat writing update. File creation now works, though still only short filenames.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2790 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/fat.h')
-rw-r--r-- | firmware/drivers/fat.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/firmware/drivers/fat.h b/firmware/drivers/fat.h index 1316202a6c..6ed68ad8d8 100644 --- a/firmware/drivers/fat.h +++ b/firmware/drivers/fat.h | |||
@@ -46,15 +46,6 @@ struct fat_direntry | |||
46 | #define FAT_ATTR_DIRECTORY 0x10 | 46 | #define FAT_ATTR_DIRECTORY 0x10 |
47 | #define FAT_ATTR_ARCHIVE 0x20 | 47 | #define FAT_ATTR_ARCHIVE 0x20 |
48 | 48 | ||
49 | struct fat_dir | ||
50 | { | ||
51 | int entry; | ||
52 | int cached_sec; | ||
53 | int num_sec; | ||
54 | unsigned char cached_buf[SECTOR_SIZE]; | ||
55 | int startcluster; | ||
56 | }; | ||
57 | |||
58 | struct fat_file | 49 | struct fat_file |
59 | { | 50 | { |
60 | int firstcluster; /* first cluster in file */ | 51 | int firstcluster; /* first cluster in file */ |
@@ -65,6 +56,16 @@ struct fat_file | |||
65 | int direntry; /* dir entry index in sector */ | 56 | int direntry; /* dir entry index in sector */ |
66 | }; | 57 | }; |
67 | 58 | ||
59 | struct fat_dir | ||
60 | { | ||
61 | int entry; | ||
62 | int cached_sec; | ||
63 | int num_sec; | ||
64 | unsigned char cached_buf[SECTOR_SIZE]; | ||
65 | int startcluster; | ||
66 | }; | ||
67 | |||
68 | |||
68 | extern int fat_mount(int startsector); | 69 | extern int fat_mount(int startsector); |
69 | 70 | ||
70 | extern int fat_create_dir(unsigned int currdir, char *name); | 71 | extern int fat_create_dir(unsigned int currdir, char *name); |