Sound Open Firmware
Loading...
Searching...
No Matches
edf_schedule.h
Go to the documentation of this file.
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
19#ifndef __SOF_SCHEDULE_EDF_SCHEDULE_H__
20#define __SOF_SCHEDULE_EDF_SCHEDULE_H__
21
22#include <rtos/task.h>
23#include <sof/trace/trace.h>
24#include <user/trace.h>
25#include <stdint.h>
26
37#define edf_sch_set_pdata(task, data) \
38 (task->priv_data = data)
39
46#define edf_sch_get_pdata(task) task->priv_data
47
53 void *ctx;
54};
55
62
74int schedule_task_init_edf(struct task *task, const struct sof_uuid_entry *uid,
75 const struct task_ops *ops,
76 void *data, uint16_t core, uint32_t flags);
77
80#endif /* __SOF_SCHEDULE_EDF_SCHEDULE_H__ */
int scheduler_init_edf(void)
Initialize the Earliest Deadline First (EDF) workqueue scheduler.
int schedule_task_init_edf(struct task *task, const struct sof_uuid_entry *uid, const struct task_ops *ops, void *data, uint16_t core, uint32_t flags)
Initialize a task for Earliest Deadline First (EDF) workqueue execution.
uint8_t data[0]
Binary byte payload for raw controls.
Definition header.h:5
User-space ABI log levels and binary trace packet header definitions.
Legacy EDF task private data container.
Definition edf_schedule.h:52
void * ctx
Task context pointer.
Definition edf_schedule.h:53
Connects UUID with component description.
Definition uuid.h:77
Operations and callbacks associated with a scheduling task.
Definition task.h:72
Core task structure managed by SOF schedulers.
Definition task.h:81
Core task descriptor, task operations, and task execution state machine.