summaryrefslogtreecommitdiff
path: root/firmware/drivers/fat.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/fat.h')
-rw-r--r--firmware/drivers/fat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/drivers/fat.h b/firmware/drivers/fat.h
index 907f7b326f..7f014a8aa1 100644
--- a/firmware/drivers/fat.h
+++ b/firmware/drivers/fat.h
@@ -100,12 +100,16 @@ struct fat_fileent
int sectornum; /* sector number in this cluster */
};
+extern int fat_mount(struct bpb *bpb);
+
+#ifdef DISK_WRITE
extern int fat_create_file(struct bpb *bpb,
unsigned int currdir,
char *name);
extern int fat_create_dir(struct bpb *bpb,
unsigned int currdir,
char *name);
+#endif
extern int fat_open(struct bpb *bpb,
unsigned int cluster,
struct fat_fileent *ent);