51 lines
1.4 KiB
C
Executable File
51 lines
1.4 KiB
C
Executable File
/*
|
|
* 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_ */
|