You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target/linux/brcm2708/patches-4.14/950-0153-vcsm-Describe-the-...

40 lines
1.2 KiB
Diff

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 {