summaryrefslogtreecommitdiff
path: root/drivers/char/adsprpc_shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/adsprpc_shared.h')
-rw-r--r--drivers/char/adsprpc_shared.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/char/adsprpc_shared.h b/drivers/char/adsprpc_shared.h
index 4fc9396bfd3a..9b24e2da489f 100644
--- a/drivers/char/adsprpc_shared.h
+++ b/drivers/char/adsprpc_shared.h
@@ -25,6 +25,7 @@
#define FASTRPC_IOCTL_INVOKE_ATTRS \
_IOWR('R', 7, struct fastrpc_ioctl_invoke_attrs)
#define FASTRPC_IOCTL_GETINFO _IOWR('R', 8, uint32_t)
+#define FASTRPC_IOCTL_GETPERF _IOWR('R', 9, struct fastrpc_ioctl_perf)
#define FASTRPC_GLINK_GUID "fastrpcglink-apps-dsp"
#define FASTRPC_SMD_GUID "fastrpcsmd-apps-dsp"
@@ -45,6 +46,9 @@
/* Driver should operate in serial mode with the co-processor */
#define FASTRPC_MODE_SERIAL 1
+/* Driver should operate in profile mode with the co-processor */
+#define FASTRPC_MODE_PROFILE 2
+
/* INIT a new process or attach to guestos */
#define FASTRPC_INIT_ATTACH 0
#define FASTRPC_INIT_CREATE 1
@@ -159,7 +163,6 @@ struct fastrpc_ioctl_munmap {
ssize_t size; /* size */
};
-
struct fastrpc_ioctl_mmap {
int fd; /* ion fd */
uint32_t flags; /* flags for dsp to map with */
@@ -168,6 +171,12 @@ struct fastrpc_ioctl_mmap {
uintptr_t vaddrout; /* dsps virtual address */
};
+struct fastrpc_ioctl_perf { /* kernel performance data */
+ uintptr_t __user data;
+ uint32_t numkeys;
+ uintptr_t __user keys;
+};
+
struct smq_null_invoke {
uint64_t ctx; /* invoke caller context */
uint32_t handle; /* handle to invoke */