From 3de68444979825f83d08b772fc04d897417e52d2 Mon Sep 17 00:00:00 2001 From: Tomasz Lauda Date: Thu, 10 Oct 2019 11:02:07 +0200 Subject: [PATCH] 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 --- src/include/sof/schedule/task.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/include/sof/schedule/task.h b/src/include/sof/schedule/task.h index a43ad1c5d..43e6bfabc 100644 --- a/src/include/sof/schedule/task.h +++ b/src/include/sof/schedule/task.h @@ -10,8 +10,10 @@ #include #include +#include #include +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);