#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/pm_runtime.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_modeset_helper_vtables.h>
#include <drm/drm_simple_kms_helper.h>
#include "cdv_device.h"
#include "intel_bios.h"
#include "power.h"
#include "psb_drv.h"
#include "psb_intel_drv.h"
#include "psb_intel_reg.h"
static void cdv_intel_crt_dpms(struct drm_encoder *encoder, int mode)
{ … }
static enum drm_mode_status cdv_intel_crt_mode_valid(struct drm_connector *connector,
struct drm_display_mode *mode)
{ … }
static void cdv_intel_crt_mode_set(struct drm_encoder *encoder,
struct drm_display_mode *mode,
struct drm_display_mode *adjusted_mode)
{ … }
static bool cdv_intel_crt_detect_hotplug(struct drm_connector *connector,
bool force)
{ … }
static enum drm_connector_status cdv_intel_crt_detect(
struct drm_connector *connector, bool force)
{ … }
static void cdv_intel_crt_destroy(struct drm_connector *connector)
{ … }
static int cdv_intel_crt_get_modes(struct drm_connector *connector)
{ … }
static int cdv_intel_crt_set_property(struct drm_connector *connector,
struct drm_property *property,
uint64_t value)
{ … }
static const struct drm_encoder_helper_funcs cdv_intel_crt_helper_funcs = …;
static const struct drm_connector_funcs cdv_intel_crt_connector_funcs = …;
static const struct drm_connector_helper_funcs
cdv_intel_crt_connector_helper_funcs = …;
void cdv_intel_crt_init(struct drm_device *dev,
struct psb_intel_mode_device *mode_dev)
{ … }