diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/common/dircache.c | 8 | ||||
-rw-r--r-- | firmware/export/config.h | 4 | ||||
-rw-r--r-- | firmware/include/dircache.h | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/firmware/common/dircache.c b/firmware/common/dircache.c index e1b592f005..7599c1b6c5 100644 --- a/firmware/common/dircache.c +++ b/firmware/common/dircache.c | |||
@@ -690,6 +690,14 @@ bool dircache_is_enabled(void) | |||
690 | } | 690 | } |
691 | 691 | ||
692 | /** | 692 | /** |
693 | * Returns true if dircache is being initialized. | ||
694 | */ | ||
695 | bool dircache_is_initializing(void) | ||
696 | { | ||
697 | return dircache_initializing; | ||
698 | } | ||
699 | |||
700 | /** | ||
693 | * Returns the current number of entries (directories and files) in the cache. | 701 | * Returns the current number of entries (directories and files) in the cache. |
694 | */ | 702 | */ |
695 | int dircache_get_entry_count(void) | 703 | int dircache_get_entry_count(void) |
diff --git a/firmware/export/config.h b/firmware/export/config.h index a1327558ed..6c2580c360 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -190,6 +190,10 @@ | |||
190 | #define HAVE_DIRCACHE 1 | 190 | #define HAVE_DIRCACHE 1 |
191 | #endif | 191 | #endif |
192 | 192 | ||
193 | /* Define tagcache in ram for all players (can operate | ||
194 | * also without dircache). */ | ||
195 | #define HAVE_TC_RAMCACHE 1 | ||
196 | |||
193 | /* define for all cpus from coldfire family */ | 197 | /* define for all cpus from coldfire family */ |
194 | #if (CONFIG_CPU == MCF5249) || (CONFIG_CPU == MCF5250) | 198 | #if (CONFIG_CPU == MCF5249) || (CONFIG_CPU == MCF5250) |
195 | #define CPU_COLDFIRE | 199 | #define CPU_COLDFIRE |
diff --git a/firmware/include/dircache.h b/firmware/include/dircache.h index 6c214a9073..f6bc153faf 100644 --- a/firmware/include/dircache.h +++ b/firmware/include/dircache.h | |||
@@ -85,6 +85,7 @@ int dircache_save(const char *path); | |||
85 | int dircache_build(int last_size); | 85 | int dircache_build(int last_size); |
86 | void* dircache_steal_buffer(long *size); | 86 | void* dircache_steal_buffer(long *size); |
87 | bool dircache_is_enabled(void); | 87 | bool dircache_is_enabled(void); |
88 | bool dircache_is_initializing(void); | ||
88 | int dircache_get_entry_count(void); | 89 | int dircache_get_entry_count(void); |
89 | int dircache_get_cache_size(void); | 90 | int dircache_get_cache_size(void); |
90 | int dircache_get_reserve_used(void); | 91 | int dircache_get_reserve_used(void); |