xref: /kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/etnaviv_sched.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2017 Etnaviv Project
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef __ETNAVIV_SCHED_H__
78c2ecf20Sopenharmony_ci#define __ETNAVIV_SCHED_H__
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include <drm/gpu_scheduler.h>
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_cistruct etnaviv_gpu;
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_cistatic inline
148c2ecf20Sopenharmony_cistruct etnaviv_gem_submit *to_etnaviv_submit(struct drm_sched_job *sched_job)
158c2ecf20Sopenharmony_ci{
168c2ecf20Sopenharmony_ci	return container_of(sched_job, struct etnaviv_gem_submit, sched_job);
178c2ecf20Sopenharmony_ci}
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciint etnaviv_sched_init(struct etnaviv_gpu *gpu);
208c2ecf20Sopenharmony_civoid etnaviv_sched_fini(struct etnaviv_gpu *gpu);
218c2ecf20Sopenharmony_ciint etnaviv_sched_push_job(struct drm_sched_entity *sched_entity,
228c2ecf20Sopenharmony_ci			   struct etnaviv_gem_submit *submit);
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#endif /* __ETNAVIV_SCHED_H__ */
25

Indexes created Thu Nov 07 10:32:03 CST 2024