forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/gpu/drm/gma500/gma_display.h
....@@ -1,18 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright © 2006-2011 Intel Corporation
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms and conditions of the GNU General Public License,
6
- * version 2, as published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope it will be useful, but WITHOUT
9
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
- * more details.
12
- *
13
- * You should have received a copy of the GNU General Public License along with
14
- * this program; if not, write to the Free Software Foundation, Inc.,
15
- * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
164 *
175 * Authors:
186 * Eric Anholt <eric@anholt.net>
....@@ -23,6 +11,10 @@
2311 #define _GMA_DISPLAY_H_
2412
2513 #include <linux/pm_runtime.h>
14
+#include <drm/drm_vblank.h>
15
+
16
+struct drm_encoder;
17
+struct drm_mode_set;
2618
2719 struct gma_clock_t {
2820 /* given values */
....@@ -80,6 +72,11 @@
8072 extern void gma_crtc_commit(struct drm_crtc *crtc);
8173 extern void gma_crtc_disable(struct drm_crtc *crtc);
8274 extern void gma_crtc_destroy(struct drm_crtc *crtc);
75
+extern int gma_crtc_page_flip(struct drm_crtc *crtc,
76
+ struct drm_framebuffer *fb,
77
+ struct drm_pending_vblank_event *event,
78
+ uint32_t page_flip_flags,
79
+ struct drm_modeset_acquire_ctx *ctx);
8380 extern int gma_crtc_set_config(struct drm_mode_set *set,
8481 struct drm_modeset_acquire_ctx *ctx);
8582