1 /* $NetBSD: rootnv50.h,v 1.3 2021/12/18 23:45:35 riastradh Exp $ */ 2 3 /* SPDX-License-Identifier: MIT */ 4 #ifndef __NV50_DISP_ROOT_H__ 5 #define __NV50_DISP_ROOT_H__ 6 #define nv50_disp_root(p) container_of((p), struct nv50_disp_root, object) 7 #include <core/object.h> 8 #include "nv50.h" 9 10 struct nv50_disp_root { 11 const struct nv50_disp_root_func *func; 12 struct nv50_disp *disp; 13 struct nvkm_object object; 14 }; 15 16 struct nv50_disp_root_func { 17 int blah; 18 struct nv50_disp_user { 19 struct nvkm_sclass base; 20 int (*ctor)(const struct nvkm_oclass *, void *argv, u32 argc, 21 struct nv50_disp *, struct nvkm_object **); 22 } user[]; 23 }; 24 25 int nv50_disp_root_new_(const struct nv50_disp_root_func *, struct nvkm_disp *, 26 const struct nvkm_oclass *, void *data, u32 size, 27 struct nvkm_object **); 28 29 extern const struct nvkm_disp_oclass nv50_disp_root_oclass; 30 extern const struct nvkm_disp_oclass g84_disp_root_oclass; 31 extern const struct nvkm_disp_oclass g94_disp_root_oclass; 32 extern const struct nvkm_disp_oclass gt200_disp_root_oclass; 33 extern const struct nvkm_disp_oclass gt215_disp_root_oclass; 34 extern const struct nvkm_disp_oclass gf119_disp_root_oclass; 35 extern const struct nvkm_disp_oclass gk104_disp_root_oclass; 36 extern const struct nvkm_disp_oclass gk110_disp_root_oclass; 37 extern const struct nvkm_disp_oclass gm107_disp_root_oclass; 38 extern const struct nvkm_disp_oclass gm200_disp_root_oclass; 39 extern const struct nvkm_disp_oclass gp100_disp_root_oclass; 40 extern const struct nvkm_disp_oclass gp102_disp_root_oclass; 41 extern const struct nvkm_disp_oclass gv100_disp_root_oclass; 42 extern const struct nvkm_disp_oclass tu102_disp_root_oclass; 43 #endif 44