Warning: This file is not a C or C++ file. It does not have highlighting.
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> |
6 | struct nvif_disp; |
7 | |
8 | struct nvif_head { |
9 | struct nvif_object object; |
10 | }; |
11 | |
12 | int nvif_head_ctor(struct nvif_disp *, const char *name, int id, struct nvif_head *); |
13 | void nvif_head_dtor(struct nvif_head *); |
14 | |
15 | static inline int |
16 | nvif_head_id(struct nvif_head *head) |
17 | { |
18 | return head->object.handle; |
19 | } |
20 | |
21 | int nvif_head_vblank_event_ctor(struct nvif_head *, const char *name, nvif_event_func, bool wait, |
22 | struct nvif_event *); |
23 | #endif |
24 |
Warning: This file is not a C or C++ file. It does not have highlighting.