xref: /openbmc/linux/drivers/gpu/drm/gma500/psb_irq.h (revision 16b0314a)
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 bool sysirq_init(struct drm_device *dev);
19 void sysirq_uninit(struct drm_device *dev);
20 
21 void psb_irq_preinstall(struct drm_device *dev);
22 void psb_irq_postinstall(struct drm_device *dev);
23 int  psb_irq_install(struct drm_device *dev, unsigned int irq);
24 void psb_irq_uninstall(struct drm_device *dev);
25 
26 int  psb_enable_vblank(struct drm_crtc *crtc);
27 void psb_disable_vblank(struct drm_crtc *crtc);
28 u32  psb_get_vblank_counter(struct drm_crtc *crtc);
29 
30 #endif /* _PSB_IRQ_H_ */
31