xref: /openbmc/linux/drivers/gpu/drm/gma500/psb_irq.h (revision 5c49fd3a)
15c49fd3aSAlan Cox /**************************************************************************
25c49fd3aSAlan Cox  * Copyright (c) 2009-2011, Intel Corporation.
35c49fd3aSAlan Cox  * All Rights Reserved.
45c49fd3aSAlan Cox  *
55c49fd3aSAlan Cox  * This program is free software; you can redistribute it and/or modify it
65c49fd3aSAlan Cox  * under the terms and conditions of the GNU General Public License,
75c49fd3aSAlan Cox  * version 2, as published by the Free Software Foundation.
85c49fd3aSAlan Cox  *
95c49fd3aSAlan Cox  * This program is distributed in the hope it will be useful, but WITHOUT
105c49fd3aSAlan Cox  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
115c49fd3aSAlan Cox  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
125c49fd3aSAlan Cox  * more details.
135c49fd3aSAlan Cox  *
145c49fd3aSAlan Cox  * You should have received a copy of the GNU General Public License along with
155c49fd3aSAlan Cox  * this program; if not, write to the Free Software Foundation, Inc.,
165c49fd3aSAlan Cox  * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
175c49fd3aSAlan Cox  *
185c49fd3aSAlan Cox  * Authors:
195c49fd3aSAlan Cox  *    Benjamin Defnet <benjamin.r.defnet@intel.com>
205c49fd3aSAlan Cox  *    Rajesh Poornachandran <rajesh.poornachandran@intel.com>
215c49fd3aSAlan Cox  *
225c49fd3aSAlan Cox  **************************************************************************/
235c49fd3aSAlan Cox 
245c49fd3aSAlan Cox #ifndef _SYSIRQ_H_
255c49fd3aSAlan Cox #define _SYSIRQ_H_
265c49fd3aSAlan Cox 
275c49fd3aSAlan Cox #include <drm/drmP.h>
285c49fd3aSAlan Cox 
295c49fd3aSAlan Cox bool sysirq_init(struct drm_device *dev);
305c49fd3aSAlan Cox void sysirq_uninit(struct drm_device *dev);
315c49fd3aSAlan Cox 
325c49fd3aSAlan Cox void psb_irq_preinstall(struct drm_device *dev);
335c49fd3aSAlan Cox int  psb_irq_postinstall(struct drm_device *dev);
345c49fd3aSAlan Cox void psb_irq_uninstall(struct drm_device *dev);
355c49fd3aSAlan Cox irqreturn_t psb_irq_handler(DRM_IRQ_ARGS);
365c49fd3aSAlan Cox 
375c49fd3aSAlan Cox int psb_irq_enable_dpst(struct drm_device *dev);
385c49fd3aSAlan Cox int psb_irq_disable_dpst(struct drm_device *dev);
395c49fd3aSAlan Cox void psb_irq_turn_on_dpst(struct drm_device *dev);
405c49fd3aSAlan Cox void psb_irq_turn_off_dpst(struct drm_device *dev);
415c49fd3aSAlan Cox int  psb_enable_vblank(struct drm_device *dev, int pipe);
425c49fd3aSAlan Cox void psb_disable_vblank(struct drm_device *dev, int pipe);
435c49fd3aSAlan Cox u32  psb_get_vblank_counter(struct drm_device *dev, int pipe);
445c49fd3aSAlan Cox 
455c49fd3aSAlan Cox #endif /* _SYSIRQ_H_ */
46