1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/root/target/linux/brcm2708/patches-4.14/0166-vcsm-Define-cache-operation-constants-in-user-header.patch
2018-03-23 21:58:08 +01:00

49 lines
1.6 KiB
Diff

From 4b2da16d1237058758e3c49e0c3ea535a9e732af Mon Sep 17 00:00:00 2001
From: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
Date: Thu, 4 Jan 2018 23:58:06 +0900
Subject: [PATCH 166/277] vcsm: Define cache operation constants in user header
Without this change, users have to use raw values (1, 2, 3) to specify
cache operation.
Signed-off-by: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
---
drivers/char/broadcom/vc_sm/vc_sm_knl.h | 5 -----
include/linux/broadcom/vmcs_sm_ioctl.h | 5 +++++
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/char/broadcom/vc_sm/vc_sm_knl.h b/drivers/char/broadcom/vc_sm/vc_sm_knl.h
index 4f120421c2d1..f7f74750d835 100644
--- a/drivers/char/broadcom/vc_sm/vc_sm_knl.h
+++ b/drivers/char/broadcom/vc_sm/vc_sm_knl.h
@@ -27,11 +27,6 @@ enum vc_sm_lock_cache_mode {
VC_SM_LOCK_NON_CACHED,
};
-/* Cache functions */
-#define VCSM_CACHE_OP_INV 0x01
-#define VCSM_CACHE_OP_CLEAN 0x02
-#define VCSM_CACHE_OP_FLUSH 0x03
-
/* Allocate a shared memory handle and block. */
int vc_sm_alloc(struct vc_sm_alloc_t *alloc, int *handle);
diff --git a/include/linux/broadcom/vmcs_sm_ioctl.h b/include/linux/broadcom/vmcs_sm_ioctl.h
index b75729d762f2..ddbeebc71ada 100644
--- a/include/linux/broadcom/vmcs_sm_ioctl.h
+++ b/include/linux/broadcom/vmcs_sm_ioctl.h
@@ -79,6 +79,11 @@ 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 */
--
2.16.1