Linux Audio

Check our new training course

In-person Linux kernel drivers training

Jun 16-20, 2025
Register
Loading...
v5.14.15
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * Copyright © 2011 Intel Corporation
 
 
 
 
 
 
 
 
 
 
 
 
 
 4 */
 5
 6struct drm_crtc;
 7struct drm_device;
 8struct psb_intel_mode_device;
 9
10extern const struct drm_crtc_helper_funcs cdv_intel_helper_funcs;
11extern const struct gma_clock_funcs cdv_clock_funcs;
12extern void cdv_intel_crt_init(struct drm_device *dev,
13			struct psb_intel_mode_device *mode_dev);
14extern void cdv_intel_lvds_init(struct drm_device *dev,
15			struct psb_intel_mode_device *mode_dev);
16extern void cdv_hdmi_init(struct drm_device *dev, struct psb_intel_mode_device *mode_dev,
17			int reg);
18extern struct drm_display_mode *cdv_intel_crtc_mode_get(struct drm_device *dev,
19					     struct drm_crtc *crtc);
20extern void cdv_update_wm(struct drm_device *dev, struct drm_crtc *crtc);
21extern void cdv_disable_sr(struct drm_device *dev);
 
 
 
 
 
 
 
v3.5.6
 
 1/*
 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;
20extern void cdv_intel_crt_init(struct drm_device *dev,
21			struct psb_intel_mode_device *mode_dev);
22extern void cdv_intel_lvds_init(struct drm_device *dev,
23			struct psb_intel_mode_device *mode_dev);
24extern void cdv_hdmi_init(struct drm_device *dev, struct psb_intel_mode_device *mode_dev,
25			int reg);
26extern struct drm_display_mode *cdv_intel_crtc_mode_get(struct drm_device *dev,
27					     struct drm_crtc *crtc);
28
29static inline void cdv_intel_wait_for_vblank(struct drm_device *dev)
30{
31	/* Wait for 20ms, i.e. one cycle at 50hz. */
32        /* FIXME: msleep ?? */
33	mdelay(20);
34}
35
36