]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
vcsm: Describe the use of cache operation constants
authorSugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
Mon, 8 Jan 2018 12:15:13 +0000 (21:15 +0900)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 15 Aug 2018 17:23:07 +0000 (19:23 +0200)
Signed-off-by: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
(cherry picked from commit f17b998f3a1479e59534b5af9594e42aeb0a2c74
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
include/linux/broadcom/vmcs_sm_ioctl.h

index ddbeebc71ada82e88a1668fbdfd9821a39d7cd22..e881fa8ee8e1474cdaa0759b742a5f67c122c9eb 100644 (file)
@@ -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 {