diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2007-01-29 23:35:21 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2007-01-29 23:35:21 +0000 |
commit | ca91b679a541c9f8b1e5b5e59c0dcacb4265a500 (patch) | |
tree | 92e171e1d9a232c73ef67a838ecacb6bc6d639df /firmware/export | |
parent | 0f03e3af3104a78d60f13e7eeb5b9ace12cc0bb3 (diff) | |
download | rockbox-ca91b679a541c9f8b1e5b5e59c0dcacb4265a500.tar.gz rockbox-ca91b679a541c9f8b1e5b5e59c0dcacb4265a500.zip |
Reverting the FAT32 driver change - it seems to have introduced a bug
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12152 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/fat.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/firmware/export/fat.h b/firmware/export/fat.h index 93b60e6dc0..2680fdf751 100644 --- a/firmware/export/fat.h +++ b/firmware/export/fat.h | |||
@@ -73,19 +73,13 @@ struct fat_file | |||
73 | #endif | 73 | #endif |
74 | }; | 74 | }; |
75 | 75 | ||
76 | #define FAT_DIR_BUFSECTORS 2 /* Needs to be an even number, at least 2 */ | ||
77 | #define FAT_DIR_BUFSIZE (SECTOR_SIZE*FAT_DIR_BUFSECTORS) | ||
78 | |||
79 | struct fat_dir | 76 | struct fat_dir |
80 | { | 77 | { |
81 | unsigned int entry; | 78 | unsigned int entry; |
82 | unsigned int entrycount; | 79 | unsigned int entrycount; |
83 | long sector; | 80 | long sector; |
84 | struct fat_file file; | 81 | struct fat_file file; |
85 | /* The buffer needs to be at least 3 sectors, so we make it 2*2 and | 82 | unsigned char sectorcache[3][SECTOR_SIZE]; |
86 | alternate between them */ | ||
87 | unsigned char sectorcache[2][FAT_DIR_BUFSIZE]; | ||
88 | unsigned int bufindex; /* Which buffer to be loaded next */ | ||
89 | }; | 83 | }; |
90 | 84 | ||
91 | 85 | ||