linux/drivers/gpu/drm/i915/display/dvo_ch7xxx.c

/**************************************************************************

Copyright © 2006 Dave Airlie

All Rights Reserved.

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, sub license, 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 NON-INFRINGEMENT.
IN NO EVENT SHALL THE AUTHOR 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 "intel_display_types.h"
#include "intel_dvo_dev.h"

#define CH7xxx_REG_VID
#define CH7xxx_REG_DID

#define CH7011_VID
#define CH7010B_VID
#define CH7009A_VID
#define CH7009B_VID
#define CH7301_VID

#define CH7xxx_VID
#define CH7xxx_DID
#define CH7010_DID

#define CH7xxx_NUM_REGS

#define CH7xxx_CM
#define CH7xxx_CM_XCM
#define CH7xxx_CM_MCP
#define CH7xxx_INPUT_CLOCK
#define CH7xxx_GPIO
#define CH7xxx_GPIO_HPIR

#define CH7xxx_IDF
#define CH7xxx_IDF_IBS
#define CH7xxx_IDF_DES
#define CH7xxx_IDF_HSP
#define CH7xxx_IDF_VSP

#define CH7xxx_CONNECTION_DETECT
#define CH7xxx_CDET_DVI

#define CH7xxx_DAC_CNTL
#define CH7xxx_SYNCO_MASK
#define CH7xxx_SYNCO_VGA_HSYNC

#define CH7xxx_CLOCK_OUTPUT
#define CH7xxx_BCOEN
#define CH7xxx_BCOP
#define CH7xxx_BCO_MASK
#define CH7xxx_BCO_VGA_VSYNC

#define CH7301_HOTPLUG
#define CH7xxx_TCTL
#define CH7xxx_TVCO
#define CH7xxx_TPCP
#define CH7xxx_TPD
#define CH7xxx_TPVT
#define CH7xxx_TLPF
#define CH7xxx_TCT
#define CH7301_TEST_PATTERN

#define CH7xxx_PM
#define CH7xxx_PM_FPD
#define CH7301_PM_DACPD0
#define CH7301_PM_DACPD1
#define CH7301_PM_DACPD2
#define CH7xxx_PM_DVIL
#define CH7xxx_PM_DVIP

#define CH7301_SYNC_POLARITY
#define CH7301_SYNC_RGB_YUV
#define CH7301_SYNC_POL_DVI

/** @file
 * driver for the Chrontel 7xxx DVI chip over DVO.
 */

static struct ch7xxx_id_struct {} ch7xxx_ids[] =;

static struct ch7xxx_did_struct {} ch7xxx_dids[] =;

struct ch7xxx_priv {};

static char *ch7xxx_get_id(u8 vid)
{}

static char *ch7xxx_get_did(u8 did)
{}

/** Reads an 8 bit register */
static bool ch7xxx_readb(struct intel_dvo_device *dvo, int addr, u8 *ch)
{}

/** Writes an 8 bit register */
static bool ch7xxx_writeb(struct intel_dvo_device *dvo, int addr, u8 ch)
{}

static bool ch7xxx_init(struct intel_dvo_device *dvo,
			struct i2c_adapter *adapter)
{}

static enum drm_connector_status ch7xxx_detect(struct intel_dvo_device *dvo)
{}

static enum drm_mode_status ch7xxx_mode_valid(struct intel_dvo_device *dvo,
					      struct drm_display_mode *mode)
{}

static void ch7xxx_mode_set(struct intel_dvo_device *dvo,
			    const struct drm_display_mode *mode,
			    const struct drm_display_mode *adjusted_mode)
{}

/* set the CH7xxx power state */
static void ch7xxx_dpms(struct intel_dvo_device *dvo, bool enable)
{}

static bool ch7xxx_get_hw_state(struct intel_dvo_device *dvo)
{}

static void ch7xxx_dump_regs(struct intel_dvo_device *dvo)
{}

static void ch7xxx_destroy(struct intel_dvo_device *dvo)
{}

const struct intel_dvo_dev_ops ch7xxx_ops =;