summaryrefstree
path: root/kernel/drivers/gpu/exynos/g2d/g2d_fence.h
blob: 9347e78003d313c2e256722f7fa2b72525edec90 (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
/*
 * linux/drivers/gpu/exynos/g2d/g2d_fence.h
 *
 * Copyright (C) 2017 Samsung Electronics Co., Ltd.
 *
 * 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_FENCE_H__
#define __EXYNOS_G2D_FENCE_H__

struct g2d_device;
struct g2d_layer;
struct g2d_task;
struct g2d_task_data;
struct dma_fence;

void g2d_fence_timeout_handler(unsigned long arg);
struct dma_fence *g2d_get_acquire_fence(struct g2d_device *g2d_dev,
					struct g2d_layer *layer, s32 fence_fd);
struct sync_file *g2d_create_release_fence(struct g2d_device *g2d_dev,
					   struct g2d_task *task,
					   struct g2d_task_data *data);
bool g2d_task_has_error_fence(struct g2d_task *task);

#endif /*__EXYNOS_G2D_FENCE_H__*/