linux/drivers/gpu/drm/mgag200/mgag200_vga_bmc.c

// SPDX-License-Identifier: GPL-2.0-only

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

#include "mgag200_ddc.h"
#include "mgag200_drv.h"

static void mgag200_vga_bmc_encoder_atomic_disable(struct drm_encoder *encoder,
						   struct drm_atomic_state *state)
{}

static void mgag200_vga_bmc_encoder_atomic_enable(struct drm_encoder *encoder,
						  struct drm_atomic_state *state)
{}

static int mgag200_vga_bmc_encoder_atomic_check(struct drm_encoder *encoder,
						struct drm_crtc_state *new_crtc_state,
						struct drm_connector_state *new_connector_state)
{}

static const struct drm_encoder_helper_funcs mgag200_dac_encoder_helper_funcs =;

static const struct drm_encoder_funcs mgag200_dac_encoder_funcs =;

static int mgag200_vga_bmc_connector_helper_get_modes(struct drm_connector *connector)
{}

/*
 * There's no monitor connected if the DDC did not return an EDID. Still
 * return 'connected' as there's always a BMC. Incrementing the connector's
 * epoch counter triggers an update of the related properties.
 */
static int mgag200_vga_bmc_connector_helper_detect_ctx(struct drm_connector *connector,
						       struct drm_modeset_acquire_ctx *ctx,
						       bool force)
{}

static const struct drm_connector_helper_funcs mgag200_vga_connector_helper_funcs =;

static const struct drm_connector_funcs mgag200_vga_connector_funcs =;

int mgag200_vga_bmc_output_init(struct mga_device *mdev)
{}