summaryrefstree
path: root/kernel/drivers/vision/dsp/hardware/dsp-system.h
blob: 48464fc5fb28443b4303f0bda01512cfdc4ba7a8 (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
32
33
34
35
36
37
38
39
40
41
/* 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_SYSTEM_H__
#define __DSP_SYSTEM_H__

#include "dsp-control.h"
#include "dsp-hw-system.h"

struct dsp_device;

int dsp_system_request_control(struct dsp_system *sys, unsigned int id,
		union dsp_control *cmd);
int dsp_system_execute_task(struct dsp_system *sys, struct dsp_task *task);
void dsp_system_iovmm_fault_dump(struct dsp_system *sys);

int dsp_system_boot(struct dsp_system *sys);
int dsp_system_reset(struct dsp_system *sys);

int dsp_system_power_active(struct dsp_system *sys);
int dsp_system_set_boot_qos(struct dsp_system *sys, int val);
int dsp_system_runtime_resume(struct dsp_system *sys);
int dsp_system_runtime_suspend(struct dsp_system *sys);
int dsp_system_resume(struct dsp_system *sys);
int dsp_system_suspend(struct dsp_system *sys);

int dsp_system_npu_start(struct dsp_system *sys, bool boot, dma_addr_t fw_iova);
int dsp_system_start(struct dsp_system *sys);
int dsp_system_stop(struct dsp_system *sys);

int dsp_system_open(struct dsp_system *sys);
int dsp_system_close(struct dsp_system *sys);
int dsp_system_probe(struct dsp_device *dspdev);
void dsp_system_remove(struct dsp_system *sys);

#endif