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>
(cherry picked from commit
55b31490ae9d428fb32706916ec0c135c05f6206
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>
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);
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 */