linux/include/sound/sof/trace.h

/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
/*
 * This file is provided under a dual BSD/GPLv2 license.  When using or
 * redistributing this file, you may do so under either license.
 *
 * Copyright(c) 2018 Intel Corporation
 */

#ifndef __INCLUDE_SOUND_SOF_TRACE_H__
#define __INCLUDE_SOUND_SOF_TRACE_H__

#include <sound/sof/header.h>
#include <sound/sof/stream.h>

/*
 * DMA for Trace
 */

#define SOF_TRACE_FILENAME_SIZE

/* DMA for Trace params info - SOF_IPC_DEBUG_DMA_PARAMS */
/* Deprecated - use sof_ipc_dma_trace_params_ext */
struct sof_ipc_dma_trace_params {}  __packed;

/* DMA for Trace params info - SOF_IPC_DEBUG_DMA_PARAMS_EXT */
struct sof_ipc_dma_trace_params_ext {}  __packed;

/* DMA for Trace params info - SOF_IPC_DEBUG_DMA_PARAMS */
struct sof_ipc_dma_trace_posn {}  __packed;

/* Values used in sof_ipc_trace_filter_elem: */

/* bits 6..0 */
#define SOF_IPC_TRACE_FILTER_ELEM_SET_LEVEL
#define SOF_IPC_TRACE_FILTER_ELEM_BY_UUID
#define SOF_IPC_TRACE_FILTER_ELEM_BY_PIPE
#define SOF_IPC_TRACE_FILTER_ELEM_BY_COMP

/* bit 7 */
#define SOF_IPC_TRACE_FILTER_ELEM_FIN

/* bits 31..8: Unused */

/** part of sof_ipc_trace_filter, ABI3.17 */
struct sof_ipc_trace_filter_elem {} __packed;

/** Runtime tracing filtration data - SOF_IPC_TRACE_FILTER_UPDATE, ABI3.17 */
struct sof_ipc_trace_filter {} __packed;

/*
 * Commom debug
 */

/*
 * SOF panic codes
 */
#define SOF_IPC_PANIC_MAGIC
#define SOF_IPC_PANIC_MAGIC_MASK
#define SOF_IPC_PANIC_CODE_MASK
#define SOF_IPC_PANIC_MEM
#define SOF_IPC_PANIC_WORK
#define SOF_IPC_PANIC_IPC
#define SOF_IPC_PANIC_ARCH
#define SOF_IPC_PANIC_PLATFORM
#define SOF_IPC_PANIC_TASK
#define SOF_IPC_PANIC_EXCEPTION
#define SOF_IPC_PANIC_DEADLOCK
#define SOF_IPC_PANIC_STACK
#define SOF_IPC_PANIC_IDLE
#define SOF_IPC_PANIC_WFI
#define SOF_IPC_PANIC_ASSERT

/* panic info include filename and line number
 * filename array will not include null terminator if fully filled
 */
struct sof_ipc_panic_info {}  __packed;

#endif