|
@@ -334,6 +334,7 @@ struct amdgpu_gart_funcs {
|
|
|
struct amdgpu_ih_funcs {
|
|
|
/* ring read/write ptr handling, called from interrupt context */
|
|
|
u32 (*get_wptr)(struct amdgpu_device *adev);
|
|
|
+ bool (*prescreen_iv)(struct amdgpu_device *adev);
|
|
|
void (*decode_iv)(struct amdgpu_device *adev,
|
|
|
struct amdgpu_iv_entry *entry);
|
|
|
void (*set_rptr)(struct amdgpu_device *adev);
|
|
@@ -1749,6 +1750,7 @@ amdgpu_get_sdma_instance(struct amdgpu_ring *ring)
|
|
|
#define amdgpu_ring_init_cond_exec(r) (r)->funcs->init_cond_exec((r))
|
|
|
#define amdgpu_ring_patch_cond_exec(r,o) (r)->funcs->patch_cond_exec((r),(o))
|
|
|
#define amdgpu_ih_get_wptr(adev) (adev)->irq.ih_funcs->get_wptr((adev))
|
|
|
+#define amdgpu_ih_prescreen_iv(adev) (adev)->irq.ih_funcs->prescreen_iv((adev))
|
|
|
#define amdgpu_ih_decode_iv(adev, iv) (adev)->irq.ih_funcs->decode_iv((adev), (iv))
|
|
|
#define amdgpu_ih_set_rptr(adev) (adev)->irq.ih_funcs->set_rptr((adev))
|
|
|
#define amdgpu_display_vblank_get_counter(adev, crtc) (adev)->mode_info.funcs->vblank_get_counter((adev), (crtc))
|