1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __NVKM_DISP_H__
3 #define __NVKM_DISP_H__
4 #define nvkm_disp(p) container_of((p), struct nvkm_disp, engine)
5 #include <core/engine.h>
6 #include <core/event.h>
7 
8 struct nvkm_disp {
9 	const struct nvkm_disp_func *func;
10 	struct nvkm_engine engine;
11 
12 	struct list_head head;
13 	struct list_head ior;
14 	struct list_head outp;
15 	struct list_head conn;
16 
17 	struct nvkm_event hpd;
18 	struct nvkm_event vblank;
19 
20 	struct nvkm_oproxy *client;
21 };
22 
23 int nv04_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
24 int nv50_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
25 int g84_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
26 int gt200_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
27 int g94_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
28 int mcp77_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
29 int gt215_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
30 int mcp89_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
31 int gf119_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
32 int gk104_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
33 int gk110_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
34 int gm107_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
35 int gm200_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
36 int gp100_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
37 int gp102_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
38 int gv100_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
39 int tu104_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
40 #endif
41