summaryrefslogtreecommitdiff
path: root/arch/nds32/include/asm/cache_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nds32/include/asm/cache_info.h')
-rw-r--r--arch/nds32/include/asm/cache_info.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/nds32/include/asm/cache_info.h b/arch/nds32/include/asm/cache_info.h
new file mode 100644
index 000000000000..38ec458ba543
--- /dev/null
+++ b/arch/nds32/include/asm/cache_info.h
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0
+// Copyright (C) 2005-2017 Andes Technology Corporation
+
+struct cache_info {
+ unsigned char ways;
+ unsigned char line_size;
+ unsigned short sets;
+ unsigned short size;
+#if defined(CONFIG_CPU_CACHE_ALIASING)
+ unsigned short aliasing_num;
+ unsigned int aliasing_mask;
+#endif
+};