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 249e8e4636SPatrik Jakobsson #ifndef _PSB_IRQ_H_ 259e8e4636SPatrik Jakobsson #define _PSB_IRQ_H_ 265c49fd3aSAlan Cox 2751474335SSam Ravnborg struct drm_device; 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); 35e9f0d76fSDaniel Vetter irqreturn_t psb_irq_handler(int irq, void *arg); 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); 4188e72717SThierry Reding int psb_enable_vblank(struct drm_device *dev, unsigned int pipe); 4288e72717SThierry Reding void psb_disable_vblank(struct drm_device *dev, unsigned int pipe); 4388e72717SThierry Reding u32 psb_get_vblank_counter(struct drm_device *dev, unsigned int pipe); 445c49fd3aSAlan Cox 45026abc33SKirill A. Shutemov int mdfld_enable_te(struct drm_device *dev, int pipe); 46026abc33SKirill A. Shutemov void mdfld_disable_te(struct drm_device *dev, int pipe); 479e8e4636SPatrik Jakobsson #endif /* _PSB_IRQ_H_ */ 48