summaryrefstree
path: root/kernel/drivers/gpu/exynos/g2d/g2d_debug.h
blob: cd1a9ab491d9521e3ba16479af807e4b691874d0 (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
42
43
44
45
46
47
48
49
50
/*
 * linux/drivers/gpu/exynos/g2d/g2d_debug.h
 *
 * Copyright (C) 2017 Samsung Electronics Co., Ltd.
 *
 * Contact: Hyesoo Yu <hyesoo.yu@samsung.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 */

#ifndef __EXYNOS_G2D_DEBUG_H_
#define __EXYNOS_G2D_DEBUG_H_

struct regs_info {
	int start;
	int size;
	const char *name;
};

enum g2d_stamp_id {
	G2D_STAMP_STATE_RUNTIME_PM,
	G2D_STAMP_STATE_TASK_RESOURCE,
	G2D_STAMP_STATE_BEGIN,
	G2D_STAMP_STATE_PUSH,
	G2D_STAMP_STATE_INT,
	G2D_STAMP_STATE_DONE,
	G2D_STAMP_STATE_TIMEOUT_FENCE,
	G2D_STAMP_STATE_TIMEOUT_HW,
	G2D_STAMP_STATE_ERR_INT,
	G2D_STAMP_STATE_MMUFAULT,
	G2D_STAMP_STATE_SHUTDOWN,
	G2D_STAMP_STATE_SUSPEND,
	G2D_STAMP_STATE_RESUME,
	G2D_STAMP_STATE_HWFCBUF,
	G2D_STAMP_STATE_PENDING,
	G2D_STAMP_STATE_NUM,
};

void g2d_init_debug(struct g2d_device *dev);
void g2d_destroy_debug(struct g2d_device *dev);
void g2d_stamp_task(struct g2d_task *task, u32 stampid, s32 val);
void g2d_dump_info(struct g2d_device *g2d_dev, struct g2d_task *task);
#endif /* __EXYNOS_G2D_HELPER_H_ */