@@ -15,9 +15,10 @@ int nvkm_disp_new_(const struct nvkm_disp_func *, struct nvkm_device *, enum nvk
1515void nvkm_disp_vblank (struct nvkm_disp * , int head );
1616
1717struct nvkm_disp_func {
18+ void (* dtor )(struct nvkm_disp * );
1819 int (* oneinit )(struct nvkm_disp * );
1920 int (* init )(struct nvkm_disp * );
20- void (* fini )(struct nvkm_disp * );
21+ void (* fini )(struct nvkm_disp * , bool suspend );
2122 void (* intr )(struct nvkm_disp * );
2223 void (* intr_error )(struct nvkm_disp * , int chid );
2324
@@ -32,7 +33,7 @@ struct nvkm_disp_func {
3233
3334 u16 ramht_size ;
3435
35- const struct nvkm_sclass root ;
36+ struct nvkm_sclass root ;
3637
3738 struct nvkm_disp_user {
3839 struct nvkm_sclass base ;
@@ -44,7 +45,7 @@ struct nvkm_disp_func {
4445
4546int nv50_disp_oneinit (struct nvkm_disp * );
4647int nv50_disp_init (struct nvkm_disp * );
47- void nv50_disp_fini (struct nvkm_disp * );
48+ void nv50_disp_fini (struct nvkm_disp * , bool suspend );
4849void nv50_disp_intr (struct nvkm_disp * );
4950extern const struct nvkm_enum nv50_disp_intr_error_type [];
5051void nv50_disp_super (struct work_struct * );
@@ -56,12 +57,12 @@ void nv50_disp_super_2_2(struct nvkm_disp *, struct nvkm_head *);
5657void nv50_disp_super_3_0 (struct nvkm_disp * , struct nvkm_head * );
5758
5859int gf119_disp_init (struct nvkm_disp * );
59- void gf119_disp_fini (struct nvkm_disp * );
60+ void gf119_disp_fini (struct nvkm_disp * , bool suspend );
6061void gf119_disp_intr (struct nvkm_disp * );
6162void gf119_disp_super (struct work_struct * );
6263void gf119_disp_intr_error (struct nvkm_disp * , int );
6364
64- void gv100_disp_fini (struct nvkm_disp * );
65+ void gv100_disp_fini (struct nvkm_disp * , bool suspend );
6566void gv100_disp_intr (struct nvkm_disp * );
6667void gv100_disp_super (struct work_struct * );
6768int gv100_disp_wndw_cnt (struct nvkm_disp * , unsigned long * );
0 commit comments