Sound Open Firmware
Loading...
Searching...
No Matches
timer.h File Reference

RTOS cycle counter, hardware timer, and timestamp utilities. More...

Include dependency graph for timer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define sof_cycle_get_64_safe()   sof_cycle_get_64()
 
#define sof_cycle_get_64_atomic()   sof_cycle_get_64()
 
#define platform_timer_stop(x)
 

Functions

static uint64_t sof_cycle_get_64 (void)
 
static uint64_t sys_cycle_get_64_rate (void)
 
void platform_host_timestamp (struct comp_dev *host, struct sof_ipc_stream_posn *posn)
 
void platform_dai_timestamp (struct comp_dev *dai, struct sof_ipc_stream_posn *posn)
 
void platform_dai_wallclock (struct comp_dev *dai, uint64_t *wallclock)
 

Detailed Description

RTOS cycle counter, hardware timer, and timestamp utilities.

Macro Definition Documentation

◆ platform_timer_stop

#define platform_timer_stop (   x)

◆ sof_cycle_get_64_atomic

#define sof_cycle_get_64_atomic ( )    sof_cycle_get_64()

◆ sof_cycle_get_64_safe

#define sof_cycle_get_64_safe ( )    sof_cycle_get_64()

Function Documentation

◆ platform_dai_timestamp()

void platform_dai_timestamp ( struct comp_dev *  dai,
struct sof_ipc_stream_posn *  posn 
)

◆ platform_dai_wallclock()

void platform_dai_wallclock ( struct comp_dev *  dai,
uint64_t *  wallclock 
)

◆ platform_host_timestamp()

void platform_host_timestamp ( struct comp_dev *  host,
struct sof_ipc_stream_posn *  posn 
)

◆ sof_cycle_get_64()

static uint64_t sof_cycle_get_64 ( void  )
inlinestatic

◆ sys_cycle_get_64_rate()

static uint64_t sys_cycle_get_64_rate ( void  )
inlinestatic