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
|
|
|
|
|
|
|
bool sysirq_init(struct drm_device *dev);
|
|
|
|
void sysirq_uninit(struct drm_device *dev);
|
|
|
|
|
|
|
|
void psb_irq_preinstall(struct drm_device *dev);
|
2021-08-03 17:06:55 +08:00
|
|
|
void psb_irq_postinstall(struct drm_device *dev);
|
|
|
|
int psb_irq_install(struct drm_device *dev, unsigned int irq);
|
2011-11-04 02:22:04 +08:00
|
|
|
void psb_irq_uninstall(struct drm_device *dev);
|
|
|
|
|
2020-01-23 21:59:27 +08:00
|
|
|
int psb_enable_vblank(struct drm_crtc *crtc);
|
|
|
|
void psb_disable_vblank(struct drm_crtc *crtc);
|
|
|
|
u32 psb_get_vblank_counter(struct drm_crtc *crtc);
|
2011-11-04 02:22:04 +08:00
|
|
|
|
2013-03-14 19:36:54 +08:00
|
|
|
#endif /* _PSB_IRQ_H_ */
|