summaryrefstree
path: root/kernel/drivers/vision/dsp/hardware/dsp-debug.h
blob: 85d43718177edfeeabbb99384562f96898f2c98f (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
/* 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_HARDWARE_DEBUG_H__
#define __DSP_HARDWARE_DEBUG_H__

#include "dsp-util.h"

#include "dsp-hw-debug.h"

struct dsp_device;

struct dsp_hw_debug_log {
	struct timer_list	timer;
	struct dsp_util_queue	*queue;
	bool			log_file;
};

void dsp_hw_debug_log_flush(struct dsp_hw_debug *debug);

int dsp_hw_debug_log_start(struct dsp_hw_debug *debug);
int dsp_hw_debug_log_stop(struct dsp_hw_debug *debug);

int dsp_hw_debug_open(struct dsp_hw_debug *debug);
int dsp_hw_debug_close(struct dsp_hw_debug *debug);

int dsp_hw_debug_probe(struct dsp_device *dspdev);
void dsp_hw_debug_remove(struct dsp_hw_debug *debug);

#endif