Linux 4.16-rc2
[linux-2.6-block.git] / arch / metag / include / asm / cachepart.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
42682c6c
JH
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 */
14unsigned int get_dcache_size(void);
15
16/**
17 * get_icache_size() - Get size of code cache.
18 */
19unsigned 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 */
26unsigned 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 */
33unsigned 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 */
41void check_for_cache_aliasing(int thread_id);
42
43#endif