1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
2 /* Copyright 2017-2019 Qiang Yu <yuq825@gmail.com> */
7 #include <drm/drm_file.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
;
18 struct lima_sched_task
;
20 struct drm_lima_gem_submit_bo
;
22 struct lima_drm_priv
{
24 struct lima_ctx_mgr ctx_mgr
;
32 struct drm_lima_gem_submit_bo
*bos
;
33 struct lima_bo
**lbos
;
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
;