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

/*
 * Copyright (c) 2007 Dave Airlie <[email protected]>
 * Copyright (c) 2007, 2010 Intel Corporation
 *   Jesse Barnes <[email protected]>
 *
 * 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 <linux/i2c.h>
#include <linux/slab.h>

#include <drm/drm_atomic_helper.h>
#include <drm/drm_edid.h>

#include "i915_drv.h"
#include "intel_backlight.h"
#include "intel_connector.h"
#include "intel_display_debugfs.h"
#include "intel_display_types.h"
#include "intel_hdcp.h"
#include "intel_panel.h"

int intel_connector_init(struct intel_connector *connector)
{}

struct intel_connector *intel_connector_alloc(void)
{}

/*
 * Free the bits allocated by intel_connector_alloc.
 * This should only be used after intel_connector_alloc has returned
 * successfully, and before drm_connector_init returns successfully.
 * Otherwise the destroy callbacks for the connector and the state should
 * take care of proper cleanup/free (see intel_connector_destroy).
 */
void intel_connector_free(struct intel_connector *connector)
{}

/*
 * Connector type independent destroy hook for drm_connector_funcs.
 */
void intel_connector_destroy(struct drm_connector *connector)
{}

int intel_connector_register(struct drm_connector *connector)
{}

void intel_connector_unregister(struct drm_connector *connector)
{}

void intel_connector_attach_encoder(struct intel_connector *connector,
				    struct intel_encoder *encoder)
{}

/*
 * Simple connector->get_hw_state implementation for encoders that support only
 * one connector and no cloning and hence the encoder state determines the state
 * of the connector.
 */
bool intel_connector_get_hw_state(struct intel_connector *connector)
{}

enum pipe intel_connector_get_pipe(struct intel_connector *connector)
{}

/**
 * intel_connector_update_modes - update connector from edid
 * @connector: DRM connector device to use
 * @drm_edid: previously read EDID information
 */
int intel_connector_update_modes(struct drm_connector *connector,
				 const struct drm_edid *drm_edid)
{}

/**
 * intel_ddc_get_modes - get modelist from monitor
 * @connector: DRM connector device to use
 * @ddc: DDC bus i2c adapter
 *
 * Fetch the EDID information from @connector using the DDC bus.
 */
int intel_ddc_get_modes(struct drm_connector *connector,
			struct i2c_adapter *ddc)
{}

static const struct drm_prop_enum_list force_audio_names[] =;

void
intel_attach_force_audio_property(struct drm_connector *connector)
{}

static const struct drm_prop_enum_list broadcast_rgb_names[] =;

void
intel_attach_broadcast_rgb_property(struct drm_connector *connector)
{}

void
intel_attach_aspect_ratio_property(struct drm_connector *connector)
{}

void
intel_attach_hdmi_colorspace_property(struct drm_connector *connector)
{}

void
intel_attach_dp_colorspace_property(struct drm_connector *connector)
{}

void
intel_attach_scaling_mode_property(struct drm_connector *connector)
{}