xref: /linux/drivers/gpu/drm/gma500/psb_irq.h (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /**************************************************************************
3  * Copyright (c) 2009-2011, Intel Corporation.
4  * All Rights Reserved.
5  *
6  * Authors:
7  *    Benjamin Defnet <benjamin.r.defnet@intel.com>
8  *    Rajesh Poornachandran <rajesh.poornachandran@intel.com>
9  *
10  **************************************************************************/
11 
12 #ifndef _PSB_IRQ_H_
13 #define _PSB_IRQ_H_
14 
15 struct drm_crtc;
16 struct drm_device;
17 
18 void gma_irq_preinstall(struct drm_device *dev);
19 void gma_irq_postinstall(struct drm_device *dev);
20 int  gma_irq_install(struct drm_device *dev);
21 void gma_irq_uninstall(struct drm_device *dev);
22 
23 int  gma_crtc_enable_vblank(struct drm_crtc *crtc);
24 void gma_crtc_disable_vblank(struct drm_crtc *crtc);
25 u32  gma_crtc_get_vblank_counter(struct drm_crtc *crtc);
26 void gma_enable_pipestat(struct drm_psb_private *dev_priv, int pipe, u32 mask);
27 void gma_disable_pipestat(struct drm_psb_private *dev_priv, int pipe, u32 mask);
28 
29 #endif /* _PSB_IRQ_H_ */
30