[Sound-open-firmware] [PATCH 2/4] Add IPC message definition for DMA tracing.
yan.wang at linux.intel.com
yan.wang at linux.intel.com
Mon Sep 18 05:23:37 CEST 2017
From: Yan Wang <yan.wang at linux.intel.com>
1. Add SOF_IPC_GLB_TRACE_MSG class of IPC communication.
2. Add two IPC commands for DMA tracing.
a) SOF_IPC_TRACE_DMA_INIT is used to initilize local buffer on DSP side.
b) SOF_IPC_TRACE_DMA_PARAMS is used to receive host DMA buffer PHY.
3. Define DMA for Trace params IPC info structure.
Signed-off-by: Yan Wang <yan.wang at linux.intel.com>
---
src/include/uapi/ipc.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/src/include/uapi/ipc.h b/src/include/uapi/ipc.h
index cbccb55..acfa05e 100644
--- a/src/include/uapi/ipc.h
+++ b/src/include/uapi/ipc.h
@@ -63,6 +63,7 @@
#define SOF_IPC_GLB_STREAM_MSG SOF_GLB_TYPE(0x6U)
#define SOF_IPC_FW_READY SOF_GLB_TYPE(0x7U)
#define SOF_IPC_GLB_DAI_MSG SOF_GLB_TYPE(0x8U)
+#define SOF_IPC_GLB_TRACE_MSG SOF_GLB_TYPE(0x9U)
/*
* DSP Command Message Types
@@ -113,6 +114,9 @@
#define SOF_IPC_STREAM_VORBIS_PARAMS SOF_CMD_TYPE(0x010)
#define SOF_IPC_STREAM_VORBIS_FREE SOF_CMD_TYPE(0x011)
+/* trace and debug */
+#define SOF_IPC_TRACE_DMA_INIT SOF_CMD_TYPE(0x001)
+#define SOF_IPC_TRACE_DMA_PARAMS SOF_CMD_TYPE(0x002)
/* Get message component id */
#define SOF_IPC_MESSAGE_ID(x) (x & 0xffff)
@@ -796,4 +800,14 @@ struct sof_ipc_window {
struct sof_ipc_window_elem window[];
} __attribute__((packed));
+/*
+ * DMA for Trace
+ */
+
+/* DMA for Trace params info - SOF_IPC_DEBUG_DMA_PARAMS */
+struct sof_ipc_dma_trace_params {
+ struct sof_ipc_hdr hdr;
+ struct sof_ipc_host_buffer buffer;
+} __attribute__((packed));
+
#endif
--
2.7.4
More information about the Sound-open-firmware
mailing list