summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-12-19 23:29:13 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-12-19 23:29:12 -0800
commit16f7475b49e50cde34d10497b4583701d16b1e9e (patch)
treebcc056c9d06c015af7e723ed05884bf37be4fd18
parentc434e9712c9e2ddbb3db8b70c5cb6a6d032d5534 (diff)
parent4fbcbe6cb3baa417c1b91b32072b8cb68ed428ff (diff)
Merge "msm: adsprpc: Maintain the same structures in kernel and user-space"
-rw-r--r--drivers/char/adsprpc_compat.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/char/adsprpc_compat.c b/drivers/char/adsprpc_compat.c
index 65a6892344d5..d44ae93d9751 100644
--- a/drivers/char/adsprpc_compat.c
+++ b/drivers/char/adsprpc_compat.c
@@ -119,6 +119,17 @@ struct compat_fastrpc_ioctl_perf { /* kernel performance data */
compat_uptr_t keys;
};
+#define FASTRPC_CONTROL_LATENCY (1)
+struct compat_fastrpc_ctrl_latency {
+ compat_uint_t enable;
+ compat_uint_t level;
+};
+
+#define FASTRPC_CONTROL_SMMU (2)
+struct compat_fastrpc_ctrl_smmu {
+ compat_uint_t sharedcb;
+};
+
#define FASTRPC_CONTROL_KALLOC (3)
struct compat_fastrpc_ctrl_kalloc {
compat_uint_t kalloc_support; /* Remote memory allocation from kernel */
@@ -127,6 +138,8 @@ struct compat_fastrpc_ctrl_kalloc {
struct compat_fastrpc_ioctl_control {
compat_uint_t req;
union {
+ struct compat_fastrpc_ctrl_latency lp;
+ struct compat_fastrpc_ctrl_smmu smmu;
struct compat_fastrpc_ctrl_kalloc kalloc;
};
};