linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c

/*
 * Copyright 2014 Red Hat Inc.
 *
 * 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 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 COPYRIGHT HOLDER(S) OR AUTHOR(S) 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.
 *
 * Authors: Ben Skeggs
 */
#include "dp.h"
#include "conn.h"
#include "head.h"
#include "ior.h"

#include <drm/display/drm_dp.h>

#include <subdev/bios.h>
#include <subdev/bios/init.h>
#include <subdev/gpio.h>
#include <subdev/i2c.h>

#include <nvif/event.h>

/* IED scripts are no longer used by UEFI/RM from Ampere, but have been updated for
 * the x86 option ROM.  However, the relevant VBIOS table versions weren't modified,
 * so we're unable to detect this in a nice way.
 */
#define AMPERE_IED_HACK(disp)

static int
nvkm_dp_mst_id_put(struct nvkm_outp *outp, u32 id)
{}

static int
nvkm_dp_mst_id_get(struct nvkm_outp *outp, u32 *pid)
{}

static int
nvkm_dp_aux_xfer(struct nvkm_outp *outp, u8 type, u32 addr, u8 *data, u8 *size)
{}

static int
nvkm_dp_aux_pwr(struct nvkm_outp *outp, bool pu)
{}

struct lt_state {};

static int
nvkm_dp_train_sense(struct lt_state *lt, bool pc, u32 delay)
{}

static int
nvkm_dp_train_drive(struct lt_state *lt, bool pc)
{}

static void
nvkm_dp_train_pattern(struct lt_state *lt, u8 pattern)
{}

static int
nvkm_dp_train_eq(struct lt_state *lt)
{}

static int
nvkm_dp_train_cr(struct lt_state *lt)
{}

static int
nvkm_dp_train_link(struct nvkm_outp *outp, int rate)
{}

static int
nvkm_dp_train_links(struct nvkm_outp *outp, int rate)
{}

static void
nvkm_dp_train_fini(struct nvkm_outp *outp)
{}

static void
nvkm_dp_train_init(struct nvkm_outp *outp)
{}

static int
nvkm_dp_drive(struct nvkm_outp *outp, u8 lanes, u8 pe[4], u8 vs[4])
{}

static int
nvkm_dp_train(struct nvkm_outp *outp, bool retrain)
{}

void
nvkm_dp_disable(struct nvkm_outp *outp, struct nvkm_ior *ior)
{}

static void
nvkm_dp_release(struct nvkm_outp *outp)
{}

void
nvkm_dp_enable(struct nvkm_outp *outp, bool auxpwr)
{}

static void
nvkm_dp_fini(struct nvkm_outp *outp)
{}

static void
nvkm_dp_init(struct nvkm_outp *outp)
{}

static void *
nvkm_dp_dtor(struct nvkm_outp *outp)
{}

static const struct nvkm_outp_func
nvkm_dp_func =;

int
nvkm_dp_new(struct nvkm_disp *disp, int index, struct dcb_output *dcbE, struct nvkm_outp **poutp)
{}