forked from Minki/linux
88e72717c2
This continues the pattern started in commit cc1ef118fc
("drm/irq:
Make pipe unsigned and name consistent"). This is applied to the public
APIs and driver callbacks, so pretty much all drivers need to be updated
to match the new prototypes.
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Inki Dae <inki.dae@samsung.com>
Cc: Jianwei Wang <jianwei.wang.chn@gmail.com>
Cc: Alison Wang <alison.wang@freescale.com>
Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: David Airlie <airlied@linux.ie>
Cc: Rob Clark <robdclark@gmail.com>
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Mark Yao <mark.yao@rock-chips.com>
Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Cc: Vincent Abriou <vincent.abriou@st.com>
Cc: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
48 lines
1.9 KiB
C
48 lines
1.9 KiB
C
/**************************************************************************
|
|
* Copyright (c) 2009-2011, Intel Corporation.
|
|
* All Rights Reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with
|
|
* this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*
|
|
* Authors:
|
|
* Benjamin Defnet <benjamin.r.defnet@intel.com>
|
|
* Rajesh Poornachandran <rajesh.poornachandran@intel.com>
|
|
*
|
|
**************************************************************************/
|
|
|
|
#ifndef _PSB_IRQ_H_
|
|
#define _PSB_IRQ_H_
|
|
|
|
#include <drm/drmP.h>
|
|
|
|
bool sysirq_init(struct drm_device *dev);
|
|
void sysirq_uninit(struct drm_device *dev);
|
|
|
|
void psb_irq_preinstall(struct drm_device *dev);
|
|
int psb_irq_postinstall(struct drm_device *dev);
|
|
void psb_irq_uninstall(struct drm_device *dev);
|
|
irqreturn_t psb_irq_handler(int irq, void *arg);
|
|
|
|
int psb_irq_enable_dpst(struct drm_device *dev);
|
|
int psb_irq_disable_dpst(struct drm_device *dev);
|
|
void psb_irq_turn_on_dpst(struct drm_device *dev);
|
|
void psb_irq_turn_off_dpst(struct drm_device *dev);
|
|
int psb_enable_vblank(struct drm_device *dev, unsigned int pipe);
|
|
void psb_disable_vblank(struct drm_device *dev, unsigned int pipe);
|
|
u32 psb_get_vblank_counter(struct drm_device *dev, unsigned int pipe);
|
|
|
|
int mdfld_enable_te(struct drm_device *dev, int pipe);
|
|
void mdfld_disable_te(struct drm_device *dev, int pipe);
|
|
#endif /* _PSB_IRQ_H_ */
|