WIP FPC-III support
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / include / nvif / parent.h
blob41cb1b0d90d3595f4b67393bcd518b365b814a75
1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NVIF_PARENT_H__
3 #define __NVIF_PARENT_H__
4 #include <nvif/os.h>
5 struct nvif_object;
7 struct nvif_parent {
8 const struct nvif_parent_func {
9 void (*debugf)(struct nvif_object *, const char *fmt, ...) __printf(2, 3);
10 void (*errorf)(struct nvif_object *, const char *fmt, ...) __printf(2, 3);
11 } *func;
14 static inline void
15 nvif_parent_dtor(struct nvif_parent *parent)
17 parent->func = NULL;
20 static inline void
21 nvif_parent_ctor(const struct nvif_parent_func *func, struct nvif_parent *parent)
23 parent->func = func;
25 #endif