blob: 0fcb608bbdf9632b9c06da15d2bb81a676f7c922 [file] [log] [blame]
Alan Cox6a227d52011-11-03 18:22:37 +00001/*
2 * Copyright © 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.
16 */
17
18extern const struct drm_crtc_helper_funcs cdv_intel_helper_funcs;
19extern const struct drm_crtc_funcs cdv_intel_crtc_funcs;
Patrik Jakobsson2adb29f2013-07-01 01:42:16 +020020extern const struct gma_clock_funcs cdv_clock_funcs;
Alan Cox6a227d52011-11-03 18:22:37 +000021extern void cdv_intel_crt_init(struct drm_device *dev,
22 struct psb_intel_mode_device *mode_dev);
23extern void cdv_intel_lvds_init(struct drm_device *dev,
24 struct psb_intel_mode_device *mode_dev);
25extern void cdv_hdmi_init(struct drm_device *dev, struct psb_intel_mode_device *mode_dev,
26 int reg);
27extern struct drm_display_mode *cdv_intel_crtc_mode_get(struct drm_device *dev,
28 struct drm_crtc *crtc);
29
Kirill A. Shutemov017350b2012-03-08 16:09:33 +000030static inline void cdv_intel_wait_for_vblank(struct drm_device *dev)
Alan Cox6a227d52011-11-03 18:22:37 +000031{
32 /* Wait for 20ms, i.e. one cycle at 50hz. */
33 /* FIXME: msleep ?? */
34 mdelay(20);
35}
36
37