summaryrefslogtreecommitdiff
path: root/include/fastrpc_internal.h
diff options
context:
space:
mode:
authorThierry Escande <thierry.escande@linaro.org>2019-02-06 11:43:49 +0100
committerThierry Escande <thierry.escande@linaro.org>2019-02-07 11:14:10 +0100
commit0cb51faae2ceecc563a241ee4dd1ad784e89adc3 (patch)
treeca0f311c7765616cbb77750f73cb2612ab40b1c2 /include/fastrpc_internal.h
parent208211dd3910bb6bec00af68cb9009e05ea309c1 (diff)
fastrpc: Use DSP_DOMAIN for device and firwmare filename
DSP_DOMAIN is defined at build time to be ADSP or CDSP. It is then used to open the corresponding device and firwmare for the domain. Signed-off-by: Thierry Escande <thierry.escande@linaro.org>
Diffstat (limited to 'include/fastrpc_internal.h')
-rw-r--r--include/fastrpc_internal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/fastrpc_internal.h b/include/fastrpc_internal.h
index 0e42595..2a0548c 100644
--- a/include/fastrpc_internal.h
+++ b/include/fastrpc_internal.h
@@ -107,6 +107,14 @@ struct fastrpc_ioctl_mmap
#define FASTRPC_SMD_GUID "fastrpcsmd-apps-dsp"
+#if defined CDSP_DOMAIN
+#define FASTRPC_DEVICE "/dev/fastrpc-cdsp"
+#define FASTRPC_SHELL "fastrpc_shell_3"
+#else /* Defaults to ADSP */
+#define FASTRPC_DEVICE "/dev/fastrpc-adsp"
+#define FASTRPC_SHELL "fastrpc_shell_0"
+#endif
+
struct smq_null_invoke32
{
uint32_t ctx; //! invoke caller context