Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / lima / lima_drv.h
blobc738d288547b508ec29574be738a72c452c87796
1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
2 /* Copyright 2017-2019 Qiang Yu <yuq825@gmail.com> */
4 #ifndef __LIMA_DRV_H__
5 #define __LIMA_DRV_H__
7 #include <drm/drm_file.h>
9 #include "lima_ctx.h"
11 extern int lima_sched_timeout_ms;
12 extern uint lima_heap_init_nr_pages;
13 extern uint lima_max_error_tasks;
14 extern uint lima_job_hang_limit;
16 struct lima_vm;
17 struct lima_bo;
18 struct lima_sched_task;
20 struct drm_lima_gem_submit_bo;
22 struct lima_drm_priv {
23 struct lima_vm *vm;
24 struct lima_ctx_mgr ctx_mgr;
27 struct lima_submit {
28 struct lima_ctx *ctx;
29 int pipe;
30 u32 flags;
32 struct drm_lima_gem_submit_bo *bos;
33 struct lima_bo **lbos;
34 u32 nr_bos;
36 u32 in_sync[2];
37 u32 out_sync;
39 struct lima_sched_task *task;
42 static inline struct lima_drm_priv *
43 to_lima_drm_priv(struct drm_file *file)
45 return file->driver_priv;
48 #endif