summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/fat.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/export/fat.h b/firmware/export/fat.h
index 36beda711d..38ce6ee74d 100644
--- a/firmware/export/fat.h
+++ b/firmware/export/fat.h
@@ -25,6 +25,7 @@
25#include <stdbool.h> 25#include <stdbool.h>
26#include "mv.h" /* for volume definitions */ 26#include "mv.h" /* for volume definitions */
27#include "config.h" 27#include "config.h"
28#include "system.h"
28 29
29/* This value can be overwritten by a target in config-[target].h, but 30/* This value can be overwritten by a target in config-[target].h, but
30 that behaviour is still experimental */ 31 that behaviour is still experimental */
@@ -81,17 +82,17 @@ struct fat_file
81 82
82struct fat_dir 83struct fat_dir
83{ 84{
85 unsigned char sectorcache[SECTOR_SIZE] CACHEALIGN_ATTR;
84 unsigned int entry; 86 unsigned int entry;
85 unsigned int entrycount; 87 unsigned int entrycount;
86 long sector; 88 long sector;
87 struct fat_file file; 89 struct fat_file file;
88 unsigned char sectorcache[SECTOR_SIZE];
89 /* There are 2-bytes per characters. We don't want to bother too much, as LFN entries are 90 /* There are 2-bytes per characters. We don't want to bother too much, as LFN entries are
90 * at much 255 characters longs, that's at most 20 LFN entries. Each entry hold at most 91 * at much 255 characters longs, that's at most 20 LFN entries. Each entry hold at most
91 * 13 characters, that a total of 260 characters. So we keep a buffer of that size. 92 * 13 characters, that a total of 260 characters. So we keep a buffer of that size.
92 * Keep coherent with fat.c code. */ 93 * Keep coherent with fat.c code. */
93 unsigned char longname[260 * 2]; 94 unsigned char longname[260 * 2];
94}; 95} CACHEALIGN_ATTR;
95 96
96#ifdef HAVE_HOTSWAP 97#ifdef HAVE_HOTSWAP
97extern void fat_lock(void); 98extern void fat_lock(void);