linux/drivers/gpu/drm/nouveau/dispnv04/dfp.c

/*
 * Copyright 2003 NVIDIA, Corporation
 * Copyright 2006 Dave Airlie
 * Copyright 2007 Maarten Maathuis
 * Copyright 2007-2009 Stuart Bennett
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the next
 * paragraph) shall be included in all copies or substantial portions of the
 * Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 */

#include <drm/drm_fourcc.h>
#include <drm/drm_modeset_helper_vtables.h>

#include "nouveau_drv.h"
#include "nouveau_reg.h"
#include "nouveau_encoder.h"
#include "nouveau_connector.h"
#include "nouveau_crtc.h"
#include "hw.h"
#include "nvreg.h"

#include <drm/i2c/sil164.h>

#include <subdev/i2c.h>

#define FP_TG_CONTROL_ON
#define FP_TG_CONTROL_OFF

static inline bool is_fpc_off(uint32_t fpc)
{}

int nv04_dfp_get_bound_head(struct drm_device *dev, struct dcb_output *dcbent)
{}

void nv04_dfp_bind_head(struct drm_device *dev, struct dcb_output *dcbent,
			int head, bool dl)
{}

void nv04_dfp_disable(struct drm_device *dev, int head)
{}

void nv04_dfp_update_fp_control(struct drm_encoder *encoder, int mode)
{}

static struct drm_encoder *get_tmds_slave(struct drm_encoder *encoder)
{}

static bool nv04_dfp_mode_fixup(struct drm_encoder *encoder,
				const struct drm_display_mode *mode,
				struct drm_display_mode *adjusted_mode)
{}

static void nv04_dfp_prepare_sel_clk(struct drm_device *dev,
				     struct nouveau_encoder *nv_encoder, int head)
{}

static void nv04_dfp_prepare(struct drm_encoder *encoder)
{}


static void nv04_dfp_mode_set(struct drm_encoder *encoder,
			      struct drm_display_mode *mode,
			      struct drm_display_mode *adjusted_mode)
{}

static void nv04_dfp_commit(struct drm_encoder *encoder)
{}

static void nv04_dfp_update_backlight(struct drm_encoder *encoder, int mode)
{}

static inline bool is_powersaving_dpms(int mode)
{}

static void nv04_lvds_dpms(struct drm_encoder *encoder, int mode)
{}

static void nv04_tmds_dpms(struct drm_encoder *encoder, int mode)
{}

static void nv04_dfp_save(struct drm_encoder *encoder)
{}

static void nv04_dfp_restore(struct drm_encoder *encoder)
{}

static void nv04_dfp_destroy(struct drm_encoder *encoder)
{}

static void nv04_tmds_slave_init(struct drm_encoder *encoder)
{}

static const struct drm_encoder_helper_funcs nv04_lvds_helper_funcs =;

static const struct drm_encoder_helper_funcs nv04_tmds_helper_funcs =;

static const struct drm_encoder_funcs nv04_dfp_funcs =;

int
nv04_dfp_create(struct drm_connector *connector, struct dcb_output *entry)
{}