780fd6c54e11f3d1d27c322b0fc1f4bcb592f585
[openwrt/staging/jow.git] /
1 From 2e485e16881f0aad726dd401df6e9f2eb96f64dd Mon Sep 17 00:00:00 2001
2 From: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
3 Date: Thu, 4 Jan 2018 23:58:06 +0900
4 Subject: [PATCH 148/454] vcsm: Define cache operation constants in user header
5
6 Without this change, users have to use raw values (1, 2, 3) to specify
7 cache operation.
8
9 Signed-off-by: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
10 ---
11 drivers/char/broadcom/vc_sm/vc_sm_knl.h | 5 -----
12 include/linux/broadcom/vmcs_sm_ioctl.h | 5 +++++
13 2 files changed, 5 insertions(+), 5 deletions(-)
14
15 --- a/drivers/char/broadcom/vc_sm/vc_sm_knl.h
16 +++ b/drivers/char/broadcom/vc_sm/vc_sm_knl.h
17 @@ -27,11 +27,6 @@ enum vc_sm_lock_cache_mode {
18 VC_SM_LOCK_NON_CACHED,
19 };
20
21 -/* Cache functions */
22 -#define VCSM_CACHE_OP_INV 0x01
23 -#define VCSM_CACHE_OP_CLEAN 0x02
24 -#define VCSM_CACHE_OP_FLUSH 0x03
25 -
26 /* Allocate a shared memory handle and block. */
27 int vc_sm_alloc(struct vc_sm_alloc_t *alloc, int *handle);
28
29 --- a/include/linux/broadcom/vmcs_sm_ioctl.h
30 +++ b/include/linux/broadcom/vmcs_sm_ioctl.h
31 @@ -79,6 +79,11 @@ enum vmcs_sm_cache_e {
32 VMCS_SM_CACHE_BOTH,
33 };
34
35 +/* Cache functions */
36 +#define VCSM_CACHE_OP_INV 0x01
37 +#define VCSM_CACHE_OP_CLEAN 0x02
38 +#define VCSM_CACHE_OP_FLUSH 0x03
39 +
40 /* IOCTL Data structures */
41 struct vmcs_sm_ioctl_alloc {
42 /* user -> kernel */