diff options
author | Rob Clark <robdclark@gmail.com> | 2013-12-01 02:24:22 +0400 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2014-01-09 23:44:05 +0400 |
commit | 9e0efa63565511dc75846e6b036a4b80e92b9a98 (patch) | |
tree | 4f9efd191aaf9cb622c9d451e96e4c3859e4850c /drivers/gpu/drm/msm/msm_kms.h | |
parent | dd2da6e34672100b5fd811fbf2cf97e29c08080f (diff) | |
download | linux-9e0efa63565511dc75846e6b036a4b80e92b9a98.tar.xz |
drm/msm: move irq utils to mdp_kms
We'll want basically the same thing for mdp5, so refactor it out so it
can be shared.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_kms.h')
-rw-r--r-- | drivers/gpu/drm/msm/msm_kms.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_kms.h b/drivers/gpu/drm/msm/msm_kms.h index f01e239f7261..dc0d30f5b291 100644 --- a/drivers/gpu/drm/msm/msm_kms.h +++ b/drivers/gpu/drm/msm/msm_kms.h @@ -49,8 +49,19 @@ struct msm_kms_funcs { struct msm_kms { const struct msm_kms_funcs *funcs; + + /* irq handling: */ + bool in_irq; + struct list_head irq_list; /* list of mdp4_irq */ + uint32_t vblank_mask; /* irq bits set for userspace vblank */ }; +static inline void msm_kms_init(struct msm_kms *kms, + const struct msm_kms_funcs *funcs) +{ + kms->funcs = funcs; +} + struct msm_kms *mdp4_kms_init(struct drm_device *dev); #endif /* __MSM_KMS_H__ */ |