Sound Open Firmware
Loading...
Searching...
No Matches

Main DMA trace context and state machine descriptor. More...

#include <src/include/sof/trace/dma-trace.h>

Collaboration diagram for dma_trace_data:

Data Fields

struct dma_sg_config config
 Scatter-gather configuration for host DMA.
 
struct dma_trace_buf dmatb
 Internal circular buffer tracking read/write pointers.
 
struct dma_copy dc
 DMA copy engine instance.
 
struct sof_ipc_dma_trace_posn posn
 Position report payload sent to host.
 
struct ipc_msg * msg
 IPC message used to report buffer position.
 
uint32_t host_size
 Total size of host-allocated trace buffer.
 
struct task dmat_work
 Periodic scheduling task driving DMA transfers.
 
uint32_t enabled
 1 if DMA trace streaming is active, 0 otherwise
 
uint32_t copy_in_progress
 1 if a DMA copy operation is currently underway
 
uint32_t stream_tag
 Assigned host DMA stream tag.
 
uint32_t active_stream_tag
 Current active stream tag.
 
uint32_t dma_copy_align
 Minimal byte alignment required for DMA transfer chunks.
 
uint32_t dropped_entries
 Cumulative counter of dropped entries due to buffer overflow.
 
struct k_spinlock lock
 Spinlock synchronizing buffer writes and DMA triggers.
 
uint64_t time_delta
 Offset between host wallclock and DSP hardware timer.
 

Detailed Description

Main DMA trace context and state machine descriptor.

Field Documentation

◆ active_stream_tag

uint32_t dma_trace_data::active_stream_tag

Current active stream tag.

◆ config

struct dma_sg_config dma_trace_data::config

Scatter-gather configuration for host DMA.

◆ copy_in_progress

uint32_t dma_trace_data::copy_in_progress

1 if a DMA copy operation is currently underway

◆ dc

struct dma_copy dma_trace_data::dc

DMA copy engine instance.

◆ dma_copy_align

uint32_t dma_trace_data::dma_copy_align

Minimal byte alignment required for DMA transfer chunks.

◆ dmat_work

struct task dma_trace_data::dmat_work

Periodic scheduling task driving DMA transfers.

◆ dmatb

struct dma_trace_buf dma_trace_data::dmatb

Internal circular buffer tracking read/write pointers.

◆ dropped_entries

uint32_t dma_trace_data::dropped_entries

Cumulative counter of dropped entries due to buffer overflow.

◆ enabled

uint32_t dma_trace_data::enabled

1 if DMA trace streaming is active, 0 otherwise

◆ host_size

uint32_t dma_trace_data::host_size

Total size of host-allocated trace buffer.

◆ lock

struct k_spinlock dma_trace_data::lock

Spinlock synchronizing buffer writes and DMA triggers.

◆ msg

struct ipc_msg* dma_trace_data::msg

IPC message used to report buffer position.

◆ posn

struct sof_ipc_dma_trace_posn dma_trace_data::posn

Position report payload sent to host.

◆ stream_tag

uint32_t dma_trace_data::stream_tag

Assigned host DMA stream tag.

◆ time_delta

uint64_t dma_trace_data::time_delta

Offset between host wallclock and DSP hardware timer.


The documentation for this struct was generated from the following file: