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

CPU header file. More...

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

Go to the source code of this file.

Macros

#define PLATFORM_PRIMARY_CORE_ID   0
 Id of primary DSP core.

Functions

static int cpu_get_id (void)
static bool cpu_is_primary (int id)
static bool cpu_is_me (int id)
static int cpu_enable_core (int id)
static void cpu_disable_core (int id)
static int cpu_is_core_enabled (int id)
static int cpu_enabled_cores (void)
static int cpu_restore_secondary_cores (void)
static int cpu_secondary_cores_prepare_d0ix (void)

Detailed Description

Macro Definition Documentation

◆ PLATFORM_PRIMARY_CORE_ID

#define PLATFORM_PRIMARY_CORE_ID   0

Id of primary DSP core.

SOF IPC protocols make a distinction between primary and secondary cores. In Zephyr, primary core id concept is not present in public OS interface, but in implementation zero is the boot core (see z_smp_init() in Zephyr).

Function Documentation

◆ cpu_disable_core()

void cpu_disable_core ( int id)
inlinestatic

◆ cpu_enable_core()

int cpu_enable_core ( int id)
inlinestatic

◆ cpu_enabled_cores()

int cpu_enabled_cores ( void )
inlinestatic

◆ cpu_get_id()

int cpu_get_id ( void )
inlinestatic

◆ cpu_is_core_enabled()

int cpu_is_core_enabled ( int id)
inlinestatic

◆ cpu_is_me()

bool cpu_is_me ( int id)
inlinestatic

◆ cpu_is_primary()

bool cpu_is_primary ( int id)
inlinestatic

◆ cpu_restore_secondary_cores()

int cpu_restore_secondary_cores ( void )
inlinestatic

◆ cpu_secondary_cores_prepare_d0ix()

int cpu_secondary_cores_prepare_d0ix ( void )
inlinestatic