1 /* SPDX-License-Identifier: BSD-3-Clause
2  *
3  * Copyright(c) 2017 Intel Corporation. All rights reserved.
4  *
5  * Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>
6  */
7 
8 #ifndef __SOF_SCHEDULE_EDF_SCHEDULE_H__
9 #define __SOF_SCHEDULE_EDF_SCHEDULE_H__
10 
11 #include <sof/schedule/task.h>
12 #include <sof/trace/trace.h>
13 #include <user/trace.h>
14 #include <stdint.h>
15 
16 #define edf_sch_set_pdata(task, data) \
17 	(task->priv_data = data)
18 
19 #define edf_sch_get_pdata(task) task->priv_data
20 
21 struct edf_task_pdata {
22 	void *ctx;
23 };
24 
25 int scheduler_init_edf(void);
26 
27 int schedule_task_init_edf(struct task *task, const struct sof_uuid_entry *uid,
28 			   const struct task_ops *ops,
29 			   void *data, uint16_t core, uint32_t flags);
30 
31 #endif /* __SOF_SCHEDULE_EDF_SCHEDULE_H__ */
32