kernel_samsung_a53x/drivers/vision3/dsp/hardware/include/dsp-hw-log.h
2024-06-15 16:02:09 -03:00

39 lines
834 B
C
Executable file

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Samsung Exynos SoC series dsp driver
*
* Copyright (c) 2019 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*/
#ifndef __HW_DSP_HW_LOG_H__
#define __HW_DSP_HW_LOG_H__
#include "dsp-util.h"
#define DSP_HW_LOG_LINE_SIZE (128)
#define DSP_HW_LOG_TIME (1)
struct dsp_system;
struct dsp_hw_log;
struct dsp_hw_log_ops {
void (*flush)(struct dsp_hw_log *log);
int (*start)(struct dsp_hw_log *log);
int (*stop)(struct dsp_hw_log *log);
int (*open)(struct dsp_hw_log *log);
int (*close)(struct dsp_hw_log *log);
int (*probe)(struct dsp_hw_log *log, void *sys);
void (*remove)(struct dsp_hw_log *log);
};
struct dsp_hw_log {
struct timer_list timer;
struct dsp_util_queue *queue;
const struct dsp_hw_log_ops *ops;
struct dsp_system *sys;
};
#endif