xref: /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/include/nvif/head.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/include/nvif/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: MIT */
262306a36Sopenharmony_ci#ifndef __NVIF_HEAD_H__
362306a36Sopenharmony_ci#define __NVIF_HEAD_H__
462306a36Sopenharmony_ci#include <nvif/object.h>
562306a36Sopenharmony_ci#include <nvif/event.h>
662306a36Sopenharmony_cistruct nvif_disp;
762306a36Sopenharmony_ci
862306a36Sopenharmony_cistruct nvif_head {
962306a36Sopenharmony_ci	struct nvif_object object;
1062306a36Sopenharmony_ci};
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ciint nvif_head_ctor(struct nvif_disp *, const char *name, int id, struct nvif_head *);
1362306a36Sopenharmony_civoid nvif_head_dtor(struct nvif_head *);
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_cistatic inline int
1662306a36Sopenharmony_cinvif_head_id(struct nvif_head *head)
1762306a36Sopenharmony_ci{
1862306a36Sopenharmony_ci	return head->object.handle;
1962306a36Sopenharmony_ci}
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciint nvif_head_vblank_event_ctor(struct nvif_head *, const char *name, nvif_event_func, bool wait,
2262306a36Sopenharmony_ci				struct nvif_event *);
2362306a36Sopenharmony_ci#endif
24

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