summaryrefstree
path: root/kernel/drivers/vision/npu/npu-util-memdump.h
blob: 8abb1ec221049fd8de32c91257d7e507f48e72a4 (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
/*
 * 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.
 */

#include "npu-log.h"
#include "npu-system.h"

#ifdef CONFIG_FIRMWARE_SRAM_DUMP_DEBUGFS
int npu_util_memdump_probe(struct npu_system *system);
int npu_util_memdump_open(struct npu_system *system);
int npu_util_memdump_close(struct npu_system *system);
int npu_util_memdump_start(struct npu_system *system);
int npu_util_memdump_stop(struct npu_system *system);
#else
#define npu_util_memdump_probe(...)	(0)
#define npu_util_memdump_open(...)	(0)
#define npu_util_memdump_close(...)	(0)
#define npu_util_memdump_start(...)	(0)
#define npu_util_memdump_stop(...)	(0)
#endif

int npu_util_dump_handle_error_k(struct npu_device *device);