License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[sfrench/cifs-2.6.git] / arch / metag / include / asm / cachepart.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Meta cache partition manipulation.
4  *
5  * Copyright 2010 Imagination Technologies Ltd.
6  */
7
8 #ifndef _METAG_CACHEPART_H_
9 #define _METAG_CACHEPART_H_
10
11 /**
12  * get_dcache_size() - Get size of data cache.
13  */
14 unsigned int get_dcache_size(void);
15
16 /**
17  * get_icache_size() - Get size of code cache.
18  */
19 unsigned int get_icache_size(void);
20
21 /**
22  * get_global_dcache_size() - Get the thread's global dcache.
23  *
24  * Returns the size of the current thread's global dcache partition.
25  */
26 unsigned int get_global_dcache_size(void);
27
28 /**
29  * get_global_icache_size() - Get the thread's global icache.
30  *
31  * Returns the size of the current thread's global icache partition.
32  */
33 unsigned int get_global_icache_size(void);
34
35 /**
36  * check_for_dache_aliasing() - Ensure that the bootloader has configured the
37  * dache and icache properly to avoid aliasing
38  * @thread_id: Hardware thread ID
39  *
40  */
41 void check_for_cache_aliasing(int thread_id);
42
43 #endif