Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
log_backend_adsp_hda.h File Reference
#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef void(* adsp_hda_log_hook_t) (uint32_t written)
 HDA logger requires a hook for IPC messages.
 

Functions

void adsp_hda_log_init (adsp_hda_log_hook_t hook, uint32_t channel)
 Initialize the Intel ADSP HDA logger.
 

Typedef Documentation

◆ adsp_hda_log_hook_t

typedef void(* adsp_hda_log_hook_t) (uint32_t written)

HDA logger requires a hook for IPC messages.

When the log is flushed and written with DMA an IPC message should be sent to inform the host. This hook function pointer allows for that

Function Documentation

◆ adsp_hda_log_init()

void adsp_hda_log_init ( adsp_hda_log_hook_t  hook,
uint32_t  channel 
)

Initialize the Intel ADSP HDA logger.

Parameters
hookFunction is called after each HDA flush in order to inform the Host of DMA log data. This hook may be called from multiple CPUs and multiple calling contexts concurrently. It is up to the author of the hook to serialize if needed. It is guaranteed to be called once for every flush.
channelHDA stream (DMA Channel) to use for logging