blob: 16e806d39ed632a9c2d68199d0fb7be4b2cfbc7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Samsung Exynos SoC series dsp driver
*
* Copyright (c) 2019 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*/
#ifndef __DSP_CONTEXT_H__
#define __DSP_CONTEXT_H__
#include <linux/mutex.h>
#include "dsp-ioctl.h"
#include "dsp-core.h"
struct dsp_context {
int id;
struct list_head list;
struct mutex lock;
unsigned int boot_count;
struct dsp_core *core;
};
struct dsp_context *dsp_context_create(struct dsp_core *core);
void dsp_context_destroy(struct dsp_context *dctx);
const struct dsp_ioctl_ops *dsp_context_get_ops(void);
#endif
|