summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/include/nvif/head.h
blob: 3ec36999e9560d2d35f6c6b7b2190be8acbbdbdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: MIT */
#ifndef __NVIF_HEAD_H__
#define __NVIF_HEAD_H__
#include <nvif/object.h>
#include <nvif/event.h>
struct nvif_disp;

struct nvif_head {
	struct nvif_object object;
};

int nvif_head_ctor(struct nvif_disp *, const char *name, int id, struct nvif_head *);
void nvif_head_dtor(struct nvif_head *);

static inline int
nvif_head_id(struct nvif_head *head)
{
	return head->object.handle;
}

int nvif_head_vblank_event_ctor(struct nvif_head *, const char *name, nvif_event_func, bool wait,
				struct nvif_event *);
#endif