2 * Meta cache partition manipulation.
4 * Copyright 2010 Imagination Technologies Ltd.
7 #ifndef _METAG_CACHEPART_H_
8 #define _METAG_CACHEPART_H_
11 * get_dcache_size() - Get size of data cache.
13 unsigned int get_dcache_size(void);
16 * get_icache_size() - Get size of code cache.
18 unsigned int get_icache_size(void);
21 * get_global_dcache_size() - Get the thread's global dcache.
23 * Returns the size of the current thread's global dcache partition.
25 unsigned int get_global_dcache_size(void);
28 * get_global_icache_size() - Get the thread's global icache.
30 * Returns the size of the current thread's global icache partition.
32 unsigned int get_global_icache_size(void);
35 * check_for_dache_aliasing() - Ensure that the bootloader has configured the
36 * dache and icache properly to avoid aliasing
37 * @thread_id: Hardware thread ID
40 void check_for_cache_aliasing(int thread_id);