1
2
3
4
5
6
7
8#ifndef __ASM_SH_CACHE_H
9#define __ASM_SH_CACHE_H
10#ifdef __KERNEL__
11
12#include <linux/init.h>
13#include <cpu/cache.h>
14
15#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
16
17#define __read_mostly __attribute__((__section__(".data..read_mostly")))
18
19#ifndef __ASSEMBLY__
20struct cache_info {
21 unsigned int ways;
22 unsigned int sets;
23 unsigned int linesz;
24
25 unsigned int way_size;
26
27
28
29
30
31 unsigned int way_incr;
32 unsigned int entry_shift;
33 unsigned int entry_mask;
34
35
36
37
38
39
40 unsigned int alias_mask;
41 unsigned int n_aliases;
42
43 unsigned long flags;
44};
45#endif
46#endif
47#endif
48