aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-4.14/950-0153-vcsm-Describe-the-use-of-cache-operation-constants.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/brcm2708/patches-4.14/950-0153-vcsm-Describe-the-use-of-cache-operation-constants.patch')
-rw-r--r--target/linux/brcm2708/patches-4.14/950-0153-vcsm-Describe-the-use-of-cache-operation-constants.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-4.14/950-0153-vcsm-Describe-the-use-of-cache-operation-constants.patch b/target/linux/brcm2708/patches-4.14/950-0153-vcsm-Describe-the-use-of-cache-operation-constants.patch
new file mode 100644
index 0000000000..6cbf624a9c
--- /dev/null
+++ b/target/linux/brcm2708/patches-4.14/950-0153-vcsm-Describe-the-use-of-cache-operation-constants.patch
@@ -0,0 +1,39 @@
+From d99ef60d169e20b8ab9f0d5b76d4d0e27a37526a Mon Sep 17 00:00:00 2001
+From: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
+Date: Mon, 8 Jan 2018 21:15:13 +0900
+Subject: [PATCH 153/454] vcsm: Describe the use of cache operation constants
+
+Signed-off-by: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
+---
+ include/linux/broadcom/vmcs_sm_ioctl.h | 13 ++++++++-----
+ 1 file changed, 8 insertions(+), 5 deletions(-)
+
+--- a/include/linux/broadcom/vmcs_sm_ioctl.h
++++ b/include/linux/broadcom/vmcs_sm_ioctl.h
+@@ -79,11 +79,6 @@ enum vmcs_sm_cache_e {
+ VMCS_SM_CACHE_BOTH,
+ };
+
+-/* Cache functions */
+-#define VCSM_CACHE_OP_INV 0x01
+-#define VCSM_CACHE_OP_CLEAN 0x02
+-#define VCSM_CACHE_OP_FLUSH 0x03
+-
+ /* IOCTL Data structures */
+ struct vmcs_sm_ioctl_alloc {
+ /* user -> kernel */
+@@ -173,6 +168,14 @@ struct vmcs_sm_ioctl_cache {
+ unsigned int size;
+ };
+
++/*
++ * Cache functions to be set to struct vmcs_sm_ioctl_clean_invalid cmd and
++ * vmcs_sm_ioctl_clean_invalid2 invalidate_mode.
++ */
++#define VCSM_CACHE_OP_INV 0x01
++#define VCSM_CACHE_OP_CLEAN 0x02
++#define VCSM_CACHE_OP_FLUSH 0x03
++
+ struct vmcs_sm_ioctl_clean_invalid {
+ /* user -> kernel */
+ struct {