6cbf624a9c4ec580bfb19eb5c92256377a8c6872
[openwrt/staging/dangole.git] /
1 From d99ef60d169e20b8ab9f0d5b76d4d0e27a37526a Mon Sep 17 00:00:00 2001
2 From: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
3 Date: Mon, 8 Jan 2018 21:15:13 +0900
4 Subject: [PATCH 153/454] vcsm: Describe the use of cache operation constants
5
6 Signed-off-by: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
7 ---
8 include/linux/broadcom/vmcs_sm_ioctl.h | 13 ++++++++-----
9 1 file changed, 8 insertions(+), 5 deletions(-)
10
11 --- a/include/linux/broadcom/vmcs_sm_ioctl.h
12 +++ b/include/linux/broadcom/vmcs_sm_ioctl.h
13 @@ -79,11 +79,6 @@ enum vmcs_sm_cache_e {
14 VMCS_SM_CACHE_BOTH,
15 };
16
17 -/* Cache functions */
18 -#define VCSM_CACHE_OP_INV 0x01
19 -#define VCSM_CACHE_OP_CLEAN 0x02
20 -#define VCSM_CACHE_OP_FLUSH 0x03
21 -
22 /* IOCTL Data structures */
23 struct vmcs_sm_ioctl_alloc {
24 /* user -> kernel */
25 @@ -173,6 +168,14 @@ struct vmcs_sm_ioctl_cache {
26 unsigned int size;
27 };
28
29 +/*
30 + * Cache functions to be set to struct vmcs_sm_ioctl_clean_invalid cmd and
31 + * vmcs_sm_ioctl_clean_invalid2 invalidate_mode.
32 + */
33 +#define VCSM_CACHE_OP_INV 0x01
34 +#define VCSM_CACHE_OP_CLEAN 0x02
35 +#define VCSM_CACHE_OP_FLUSH 0x03
36 +
37 struct vmcs_sm_ioctl_clean_invalid {
38 /* user -> kernel */
39 struct {