forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/gpu/drm/gma500/psb_irq.h
....@@ -1,19 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /**************************************************************************
23 * Copyright (c) 2009-2011, Intel Corporation.
34 * All Rights Reserved.
4
- *
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.
8
- *
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
12
- * more details.
13
- *
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.
175 *
186 * Authors:
197 * Benjamin Defnet <benjamin.r.defnet@intel.com>
....@@ -24,7 +12,8 @@
2412 #ifndef _PSB_IRQ_H_
2513 #define _PSB_IRQ_H_
2614
27
-#include <drm/drmP.h>
15
+struct drm_crtc;
16
+struct drm_device;
2817
2918 bool sysirq_init(struct drm_device *dev);
3019 void sysirq_uninit(struct drm_device *dev);
....@@ -38,9 +27,9 @@
3827 int psb_irq_disable_dpst(struct drm_device *dev);
3928 void psb_irq_turn_on_dpst(struct drm_device *dev);
4029 void psb_irq_turn_off_dpst(struct drm_device *dev);
41
-int psb_enable_vblank(struct drm_device *dev, unsigned int pipe);
42
-void psb_disable_vblank(struct drm_device *dev, unsigned int pipe);
43
-u32 psb_get_vblank_counter(struct drm_device *dev, unsigned int pipe);
30
+int psb_enable_vblank(struct drm_crtc *crtc);
31
+void psb_disable_vblank(struct drm_crtc *crtc);
32
+u32 psb_get_vblank_counter(struct drm_crtc *crtc);
4433
4534 int mdfld_enable_te(struct drm_device *dev, int pipe);
4635 void mdfld_disable_te(struct drm_device *dev, int pipe);