18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/************************************************************************** 38c2ecf20Sopenharmony_ci * Copyright (c) 2009-2011, Intel Corporation. 48c2ecf20Sopenharmony_ci * All Rights Reserved. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Authors: 78c2ecf20Sopenharmony_ci * Benjamin Defnet <benjamin.r.defnet@intel.com> 88c2ecf20Sopenharmony_ci * Rajesh Poornachandran <rajesh.poornachandran@intel.com> 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci **************************************************************************/ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#ifndef _PSB_IRQ_H_ 138c2ecf20Sopenharmony_ci#define _PSB_IRQ_H_ 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_cistruct drm_crtc; 168c2ecf20Sopenharmony_cistruct drm_device; 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_cibool sysirq_init(struct drm_device *dev); 198c2ecf20Sopenharmony_civoid sysirq_uninit(struct drm_device *dev); 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_civoid psb_irq_preinstall(struct drm_device *dev); 228c2ecf20Sopenharmony_ciint psb_irq_postinstall(struct drm_device *dev); 238c2ecf20Sopenharmony_civoid psb_irq_uninstall(struct drm_device *dev); 248c2ecf20Sopenharmony_ciirqreturn_t psb_irq_handler(int irq, void *arg); 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciint psb_irq_enable_dpst(struct drm_device *dev); 278c2ecf20Sopenharmony_ciint psb_irq_disable_dpst(struct drm_device *dev); 288c2ecf20Sopenharmony_civoid psb_irq_turn_on_dpst(struct drm_device *dev); 298c2ecf20Sopenharmony_civoid psb_irq_turn_off_dpst(struct drm_device *dev); 308c2ecf20Sopenharmony_ciint psb_enable_vblank(struct drm_crtc *crtc); 318c2ecf20Sopenharmony_civoid psb_disable_vblank(struct drm_crtc *crtc); 328c2ecf20Sopenharmony_ciu32 psb_get_vblank_counter(struct drm_crtc *crtc); 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ciint mdfld_enable_te(struct drm_device *dev, int pipe); 358c2ecf20Sopenharmony_civoid mdfld_disable_te(struct drm_device *dev, int pipe); 368c2ecf20Sopenharmony_ci#endif /* _PSB_IRQ_H_ */ 37