xref: /openbmc/linux/drivers/gpu/drm/gma500/psb_irq.h (revision 5d5fb746)
1a61127c2SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
25c49fd3aSAlan Cox /**************************************************************************
35c49fd3aSAlan Cox  * Copyright (c) 2009-2011, Intel Corporation.
45c49fd3aSAlan Cox  * All Rights Reserved.
55c49fd3aSAlan Cox  *
65c49fd3aSAlan Cox  * Authors:
75c49fd3aSAlan Cox  *    Benjamin Defnet <benjamin.r.defnet@intel.com>
85c49fd3aSAlan Cox  *    Rajesh Poornachandran <rajesh.poornachandran@intel.com>
95c49fd3aSAlan Cox  *
105c49fd3aSAlan Cox  **************************************************************************/
115c49fd3aSAlan Cox 
129e8e4636SPatrik Jakobsson #ifndef _PSB_IRQ_H_
139e8e4636SPatrik Jakobsson #define _PSB_IRQ_H_
145c49fd3aSAlan Cox 
1542eabbe5SThomas Zimmermann struct drm_crtc;
1651474335SSam Ravnborg struct drm_device;
175c49fd3aSAlan Cox 
18*5d5fb746SPatrik Jakobsson void gma_irq_preinstall(struct drm_device *dev);
19*5d5fb746SPatrik Jakobsson void gma_irq_postinstall(struct drm_device *dev);
20*5d5fb746SPatrik Jakobsson int  gma_irq_install(struct drm_device *dev, unsigned int irq);
21*5d5fb746SPatrik Jakobsson void gma_irq_uninstall(struct drm_device *dev);
225c49fd3aSAlan Cox 
23*5d5fb746SPatrik Jakobsson int  gma_enable_vblank(struct drm_crtc *crtc);
24*5d5fb746SPatrik Jakobsson void gma_disable_vblank(struct drm_crtc *crtc);
25*5d5fb746SPatrik Jakobsson u32  gma_get_vblank_counter(struct drm_crtc *crtc);
26*5d5fb746SPatrik Jakobsson void gma_enable_pipestat(struct drm_psb_private *dev_priv, int pipe, u32 mask);
27*5d5fb746SPatrik Jakobsson void gma_disable_pipestat(struct drm_psb_private *dev_priv, int pipe, u32 mask);
285c49fd3aSAlan Cox 
299e8e4636SPatrik Jakobsson #endif /* _PSB_IRQ_H_ */
30