summaryrefstree
path: root/kernel/drivers/vision/npu/npu-debug.h
blob: edd8cde306f3b7cb150decf9d373b5aa0523735b (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
/*
 * Samsung Exynos SoC series NPU driver
 *
 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
 *	http://www.samsung.com/
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */

#ifndef _NPU_DEBUG_H_
#define _NPU_DEBUG_H_

#include <linux/debugfs.h>

struct npu_debug {
	struct dentry *dfile_root;
	unsigned long  state;
};

/* Forward declaration */
struct npu_device;

int npu_debug_probe(struct npu_device *npu_device);
int npu_debug_release(void);
int npu_debug_open(struct npu_device *npu_device);
int npu_debug_close(struct npu_device *npu_device);
int npu_debug_start(struct npu_device *npu_device);
int npu_debug_stop(struct npu_device *npu_device);

int npu_debug_register(const char *name, const struct file_operations *ops);
int npu_debug_register_arg(
	const char *name, void *private_arg,
	const struct file_operations *ops);

#endif /* _NPU_DEBUG_H_ */