Add IPC new message type and structure for sending DMA trace host offset.

It is used to update DMA trace host offset to kernel for realtime
output DMA trace.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
This commit is contained in:
Yan Wang 2017-11-09 14:17:28 +08:00 committed by Liam Girdwood
parent 2a015d0df2
commit c01584cdba
1 changed files with 7 additions and 0 deletions

View File

@ -118,6 +118,7 @@
/* trace and debug */ /* trace and debug */
#define SOF_IPC_TRACE_DMA_PARAMS SOF_CMD_TYPE(0x001) #define SOF_IPC_TRACE_DMA_PARAMS SOF_CMD_TYPE(0x001)
#define SOF_IPC_TRACE_DMA_POSITION SOF_CMD_TYPE(0x002)
/* Get message component id */ /* Get message component id */
#define SOF_IPC_MESSAGE_ID(x) (x & 0xffff) #define SOF_IPC_MESSAGE_ID(x) (x & 0xffff)
@ -810,4 +811,10 @@ struct sof_ipc_dma_trace_params {
struct sof_ipc_host_buffer buffer; struct sof_ipc_host_buffer buffer;
} __attribute__((packed)); } __attribute__((packed));
/* DMA for Trace params info - SOF_IPC_DEBUG_DMA_PARAMS */
struct sof_ipc_dma_trace_posn {
struct sof_ipc_reply rhdr;
uint32_t host_offset; /* Offset of DMA host buffer */
} __attribute__((packed));
#endif #endif