mirror of https://github.com/thesofproject/sof.git
task: add pipeline_task
Adds definition of pipeline_task. It's a task type registered by pipelines and used in DMA scheduling domains. Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
parent
5dca048ed6
commit
3de6844497
|
@ -10,8 +10,10 @@
|
|||
|
||||
#include <arch/schedule/task.h>
|
||||
#include <sof/list.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
struct comp_dev;
|
||||
struct sof;
|
||||
|
||||
#define SOF_TASK_PRI_HIGH 0 /* priority level 0 - high */
|
||||
|
@ -53,6 +55,15 @@ struct task {
|
|||
void *private;
|
||||
};
|
||||
|
||||
/** \brief Task type registered by pipelines. */
|
||||
struct pipeline_task {
|
||||
struct task task; /**< parent structure */
|
||||
bool registrable; /**< should task be registered on irq */
|
||||
struct comp_dev *sched_comp; /**< pipeline scheduling component */
|
||||
};
|
||||
|
||||
#define pipeline_task_get(task) ((struct pipeline_task *)(task))
|
||||
|
||||
enum task_state task_main_master_core(void *data);
|
||||
|
||||
enum task_state task_main_slave_core(void *data);
|
||||
|
|
Loading…
Reference in New Issue