2019-05-30 07:57:49 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2011-11-04 02:22:04 +08:00
|
|
|
/**************************************************************************
|
|
|
|
* Copyright (c) 2009-2011, Intel Corporation.
|
|
|
|
* All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Benjamin Defnet <benjamin.r.defnet@intel.com>
|
|
|
|
* Rajesh Poornachandran <rajesh.poornachandran@intel.com>
|
|
|
|
*
|
|
|
|
**************************************************************************/
|
|
|
|
|
2013-03-14 19:36:54 +08:00
|
|
|
#ifndef _PSB_IRQ_H_
|
|
|
|
#define _PSB_IRQ_H_
|
2011-11-04 02:22:04 +08:00
|
|
|
|
2020-01-23 21:59:27 +08:00
|
|
|
struct drm_crtc;
|
2019-05-20 03:55:23 +08:00
|
|
|
struct drm_device;
|
2011-11-04 02:22:04 +08:00
|
|
|
|
2022-03-17 17:25:55 +08:00
|
|
|
void gma_irq_preinstall(struct drm_device *dev);
|
|
|
|
void gma_irq_postinstall(struct drm_device *dev);
|
2022-09-07 04:38:52 +08:00
|
|
|
int gma_irq_install(struct drm_device *dev);
|
2022-03-17 17:25:55 +08:00
|
|
|
void gma_irq_uninstall(struct drm_device *dev);
|
2011-11-04 02:22:04 +08:00
|
|
|
|
2022-03-22 21:17:42 +08:00
|
|
|
int gma_crtc_enable_vblank(struct drm_crtc *crtc);
|
|
|
|
void gma_crtc_disable_vblank(struct drm_crtc *crtc);
|
|
|
|
u32 gma_crtc_get_vblank_counter(struct drm_crtc *crtc);
|
2022-03-17 17:25:55 +08:00
|
|
|
void gma_enable_pipestat(struct drm_psb_private *dev_priv, int pipe, u32 mask);
|
|
|
|
void gma_disable_pipestat(struct drm_psb_private *dev_priv, int pipe, u32 mask);
|
2011-11-04 02:22:04 +08:00
|
|
|
|
2013-03-14 19:36:54 +08:00
|
|
|
#endif /* _PSB_IRQ_H_ */
|