]>
git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blob - drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.h
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
[21];
28 void nv50_disp_super_1(struct nv50_disp
*);
29 void nv50_disp_super_1_0(struct nv50_disp
*, struct nvkm_head
*);
30 void nv50_disp_super_2_0(struct nv50_disp
*, struct nvkm_head
*);
31 void nv50_disp_super_2_1(struct nv50_disp
*, struct nvkm_head
*);
32 void nv50_disp_super_2_2(struct nv50_disp
*, struct nvkm_head
*);
33 void nv50_disp_super_3_0(struct nv50_disp
*, struct nvkm_head
*);
35 int nv50_disp_new_(const struct nv50_disp_func
*, struct nvkm_device
*,
36 int index
, int heads
, struct nvkm_disp
**);
37 int gf119_disp_new_(const struct nv50_disp_func
*, struct nvkm_device
*,
38 int index
, struct nvkm_disp
**);
40 struct nv50_disp_func
{
41 void (*intr
)(struct nv50_disp
*);
42 void (*intr_error
)(struct nv50_disp
*, int chid
);
44 const struct nvkm_event_func
*uevent
;
45 void (*super
)(struct work_struct
*);
47 const struct nvkm_disp_oclass
*root
;
50 int (*new)(struct nvkm_disp
*, int id
);
55 int (*new)(struct nvkm_disp
*, int id
);
60 int (*new)(struct nvkm_disp
*, int id
);
65 int (*new)(struct nvkm_disp
*, int id
);
69 void nv50_disp_intr(struct nv50_disp
*);
70 void nv50_disp_super(struct work_struct
*);
72 void gf119_disp_intr(struct nv50_disp
*);
73 void gf119_disp_super(struct work_struct
*);
74 void gf119_disp_intr_error(struct nv50_disp
*, int);
76 void nv50_disp_dptmds_war_2(struct nv50_disp
*, struct dcb_output
*);
77 void nv50_disp_dptmds_war_3(struct nv50_disp
*, struct dcb_output
*);
78 void nv50_disp_update_sppll1(struct nv50_disp
*);