1
/**************************************************************************
2
* Copyright (c) 2009, Intel Corporation.
5
* This program is free software; you can redistribute it and/or modify it
6
* under the terms and conditions of the GNU General Public License,
7
* version 2, as published by the Free Software Foundation.
9
* This program is distributed in the hope it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14
* You should have received a copy of the GNU General Public License along with
15
* this program; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
19
* Benjamin Defnet <benjamin.r.defnet@intel.com>
20
* Rajesh Poornachandran <rajesh.poornachandran@intel.com>
22
**************************************************************************/
29
bool sysirq_init(struct drm_device *dev);
30
void sysirq_uninit(struct drm_device *dev);
32
void psb_irq_preinstall(struct drm_device *dev);
33
int psb_irq_postinstall(struct drm_device *dev);
34
void psb_irq_uninstall(struct drm_device *dev);
35
irqreturn_t psb_irq_handler(DRM_IRQ_ARGS);
37
void psb_irq_preinstall_islands(struct drm_device *dev, int hw_islands);
38
int psb_irq_postinstall_islands(struct drm_device *dev, int hw_islands);
39
void psb_irq_uninstall_islands(struct drm_device *dev, int hw_islands);
41
int psb_irq_enable_dpst(struct drm_device *dev);
42
int psb_irq_disable_dpst(struct drm_device *dev);
43
void psb_irq_turn_on_dpst(struct drm_device *dev);
44
void psb_irq_turn_off_dpst(struct drm_device *dev);
45
int psb_enable_vblank(struct drm_device *dev, int pipe);
46
void psb_disable_vblank(struct drm_device *dev, int pipe);
47
u32 psb_get_vblank_counter(struct drm_device *dev, int pipe);