summaryrefslogtreecommitdiffstats
path: root/firmware/export/fat.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-03-12 10:03:52 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-03-12 10:03:52 +0000
commit06a5299aff38ba25c7742ae6293c588e38445f8b (patch)
tree5f8c3121882ba9c8d6317d1ce7fb5a07d3a99f5c /firmware/export/fat.h
parent2f5a37de5c45333453169ffe0b90e0f380d1cd50 (diff)
downloadrockbox-06a5299aff38ba25c7742ae6293c588e38445f8b.tar.gz
rockbox-06a5299aff38ba25c7742ae6293c588e38445f8b.zip
Do some crackdown on kernel object reinitialization after they could be in use and use before initialization. For c200/e200: Be sure fat cache and ata locks are acquired in the proper order during hot swapping. Delay hotswap monitoring until after initial file mounting (address 2nd kobj concern + possible call of fat driver before init).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16636 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/fat.h')
-rw-r--r--firmware/export/fat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/fat.h b/firmware/export/fat.h
index 0dfd395ea7..3cf2923b78 100644
--- a/firmware/export/fat.h
+++ b/firmware/export/fat.h
@@ -82,6 +82,10 @@ struct fat_dir
unsigned char sectorcache[3][SECTOR_SIZE];
};
+#ifdef HAVE_HOTSWAP
+extern void fat_lock(void);
+extern void fat_unlock(void);
+#endif
extern void fat_init(void);
extern int fat_mount(IF_MV2(int volume,) IF_MV2(int drive,) long startsector);