1 #ifndef __NV50_DISP_H__
2 #define __NV50_DISP_H__
3 #define nv50_disp(p) container_of((p), struct nv50_disp, base)
8 const struct nv50_disp_func *func;
11 struct workqueue_struct *wq;
12 struct work_struct supervisor;
15 struct nvkm_event uevent;
25 struct nv50_disp_chan *chan[17];
28 void nv50_disp_super_1(struct nv50_disp *);
30 int nv50_disp_new_(const struct nv50_disp_func *, struct nvkm_device *,
31 int index, int heads, struct nvkm_disp **);
32 int gf119_disp_new_(const struct nv50_disp_func *, struct nvkm_device *,
33 int index, struct nvkm_disp **);
35 struct nv50_disp_func {
36 void (*intr)(struct nv50_disp *);
37 void (*intr_error)(struct nv50_disp *, int chid);
39 const struct nvkm_event_func *uevent;
40 void (*super)(struct work_struct *);
42 const struct nvkm_disp_oclass *root;
45 int (*new)(struct nvkm_disp *, int id);
50 int (*new)(struct nvkm_disp *, int id);
55 int (*new)(struct nvkm_disp *, int id);
60 int (*new)(struct nvkm_disp *, int id);
64 void nv50_disp_intr(struct nv50_disp *);
65 void nv50_disp_super(struct work_struct *);
67 void gf119_disp_intr(struct nv50_disp *);
68 void gf119_disp_super(struct work_struct *);
69 void gf119_disp_intr_error(struct nv50_disp *, int);
71 void nv50_disp_dptmds_war_2(struct nv50_disp *, struct dcb_output *);
72 void nv50_disp_dptmds_war_3(struct nv50_disp *, struct dcb_output *);
73 void nv50_disp_update_sppll1(struct nv50_disp *);