diff options
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_drv.h')
| -rw-r--r-- | drivers/gpu/drm/vc4/vc4_drv.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_drv.h b/drivers/gpu/drm/vc4/vc4_drv.h index 3d1df6b1c4d3..f53fe6cd72be 100644 --- a/drivers/gpu/drm/vc4/vc4_drv.h +++ b/drivers/gpu/drm/vc4/vc4_drv.h | |||
| @@ -91,8 +91,12 @@ struct vc4_dev { | |||
| 91 | struct vc4_bo *overflow_mem; | 91 | struct vc4_bo *overflow_mem; |
| 92 | struct work_struct overflow_mem_work; | 92 | struct work_struct overflow_mem_work; |
| 93 | 93 | ||
| 94 | int power_refcount; | ||
| 95 | |||
| 96 | /* Mutex controlling the power refcount. */ | ||
| 97 | struct mutex power_lock; | ||
| 98 | |||
| 94 | struct { | 99 | struct { |
| 95 | uint32_t last_ct0ca, last_ct1ca; | ||
| 96 | struct timer_list timer; | 100 | struct timer_list timer; |
| 97 | struct work_struct reset_work; | 101 | struct work_struct reset_work; |
| 98 | } hangcheck; | 102 | } hangcheck; |
| @@ -142,6 +146,7 @@ struct vc4_seqno_cb { | |||
| 142 | }; | 146 | }; |
| 143 | 147 | ||
| 144 | struct vc4_v3d { | 148 | struct vc4_v3d { |
| 149 | struct vc4_dev *vc4; | ||
| 145 | struct platform_device *pdev; | 150 | struct platform_device *pdev; |
| 146 | void __iomem *regs; | 151 | void __iomem *regs; |
| 147 | }; | 152 | }; |
| @@ -202,6 +207,11 @@ struct vc4_exec_info { | |||
| 202 | /* Sequence number for this bin/render job. */ | 207 | /* Sequence number for this bin/render job. */ |
| 203 | uint64_t seqno; | 208 | uint64_t seqno; |
| 204 | 209 | ||
| 210 | /* Last current addresses the hardware was processing when the | ||
| 211 | * hangcheck timer checked on us. | ||
| 212 | */ | ||
| 213 | uint32_t last_ct0ca, last_ct1ca; | ||
| 214 | |||
| 205 | /* Kernel-space copy of the ioctl arguments */ | 215 | /* Kernel-space copy of the ioctl arguments */ |
| 206 | struct drm_vc4_submit_cl *args; | 216 | struct drm_vc4_submit_cl *args; |
| 207 | 217 | ||
| @@ -443,7 +453,6 @@ void vc4_plane_async_set_fb(struct drm_plane *plane, | |||
| 443 | extern struct platform_driver vc4_v3d_driver; | 453 | extern struct platform_driver vc4_v3d_driver; |
| 444 | int vc4_v3d_debugfs_ident(struct seq_file *m, void *unused); | 454 | int vc4_v3d_debugfs_ident(struct seq_file *m, void *unused); |
| 445 | int vc4_v3d_debugfs_regs(struct seq_file *m, void *unused); | 455 | int vc4_v3d_debugfs_regs(struct seq_file *m, void *unused); |
| 446 | int vc4_v3d_set_power(struct vc4_dev *vc4, bool on); | ||
| 447 | 456 | ||
| 448 | /* vc4_validate.c */ | 457 | /* vc4_validate.c */ |
| 449 | int | 458 | int |
