1/* SPDX-License-Identifier: MIT */
2#ifndef __NVIF_HEAD_H__
3#define __NVIF_HEAD_H__
4#include <nvif/object.h>
5#include <nvif/event.h>
6struct nvif_disp;
7
8struct nvif_head {
9	struct nvif_object object;
10};
11
12int nvif_head_ctor(struct nvif_disp *, const char *name, int id, struct nvif_head *);
13void nvif_head_dtor(struct nvif_head *);
14
15static inline int
16nvif_head_id(struct nvif_head *head)
17{
18	return head->object.handle;
19}
20
21int nvif_head_vblank_event_ctor(struct nvif_head *, const char *name, nvif_event_func, bool wait,
22				struct nvif_event *);
23#endif
24