diff options
author | Tharun Kumar Merugu <mtharu@codeaurora.org> | 2018-12-17 14:02:07 +0530 |
---|---|---|
committer | Tharun Kumar Merugu <mtharu@codeaurora.org> | 2018-12-18 09:46:17 +0530 |
commit | 4fbcbe6cb3baa417c1b91b32072b8cb68ed428ff (patch) | |
tree | 104ee1e0a35b00460d51ee8cd6f72fa21b66ad00 /drivers/char/adsprpc_compat.c | |
parent | 082fa7fad60fc0bc2ef8bd9cbe62fae321950531 (diff) |
msm: adsprpc: Maintain the same structures in kernel and user-space
Mismatch in structures in user-space and kernel is leading to
unknown ioctl code and leading to failure in FASTRPC_IOCTL_CONTROL call.
Change-Id: I38537f128dc9a2815c1a98ec4ee59b2265c9159c
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
Diffstat (limited to 'drivers/char/adsprpc_compat.c')
-rw-r--r-- | drivers/char/adsprpc_compat.c | 13 |
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; }; }; |