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

/*
 * Copyright 2018 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.
 */
#include "priv.h"
#include "chan.h"
#include "hdmi.h"
#include "head.h"
#include "ior.h"
#include "outp.h"

#include <core/client.h>
#include <core/gpuobj.h>
#include <core/ramht.h>
#include <subdev/timer.h>

#include <nvif/class.h>
#include <nvif/unpack.h>

static void
gv100_sor_hda_device_entry(struct nvkm_ior *ior, int head)
{}

const struct nvkm_ior_func_hda
gv100_sor_hda =;

void
gv100_sor_dp_watermark(struct nvkm_ior *sor, int head, u8 watermark)
{}

void
gv100_sor_dp_audio_sym(struct nvkm_ior *sor, int head, u16 h, u32 v)
{}

void
gv100_sor_dp_audio(struct nvkm_ior *sor, int head, bool enable)
{}

static const struct nvkm_ior_func_dp
gv100_sor_dp =;

void
gv100_sor_hdmi_infoframe_vsi(struct nvkm_ior *ior, int head, void *data, u32 size)
{}

void
gv100_sor_hdmi_infoframe_avi(struct nvkm_ior *ior, int head, void *data, u32 size)
{}

static void
gv100_sor_hdmi_ctrl(struct nvkm_ior *ior, int head, bool enable, u8 max_ac_packet, u8 rekey)
{}

const struct nvkm_ior_func_hdmi
gv100_sor_hdmi =;

void
gv100_sor_state(struct nvkm_ior *sor, struct nvkm_ior_state *state)
{}

static const struct nvkm_ior_func
gv100_sor =;

static int
gv100_sor_new(struct nvkm_disp *disp, int id)
{}

int
gv100_sor_cnt(struct nvkm_disp *disp, unsigned long *pmask)
{}

static void
gv100_head_vblank_put(struct nvkm_head *head)
{}

static void
gv100_head_vblank_get(struct nvkm_head *head)
{}

static void
gv100_head_rgpos(struct nvkm_head *head, u16 *hline, u16 *vline)
{}

static void
gv100_head_state(struct nvkm_head *head, struct nvkm_head_state *state)
{}

static const struct nvkm_head_func
gv100_head =;

int
gv100_head_new(struct nvkm_disp *disp, int id)
{}

int
gv100_head_cnt(struct nvkm_disp *disp, unsigned long *pmask)
{}

const struct nvkm_event_func
gv100_disp_chan_uevent =;

u64
gv100_disp_chan_user(struct nvkm_disp_chan *chan, u64 *psize)
{}

static int
gv100_disp_dmac_idle(struct nvkm_disp_chan *chan)
{}

int
gv100_disp_dmac_bind(struct nvkm_disp_chan *chan,
		     struct nvkm_object *object, u32 handle)
{}

void
gv100_disp_dmac_fini(struct nvkm_disp_chan *chan)
{}

int
gv100_disp_dmac_init(struct nvkm_disp_chan *chan)
{}

static void
gv100_disp_wimm_intr(struct nvkm_disp_chan *chan, bool en)
{}

static const struct nvkm_disp_chan_func
gv100_disp_wimm_func =;

const struct nvkm_disp_chan_user
gv100_disp_wimm =;

static const struct nvkm_disp_mthd_list
gv100_disp_wndw_mthd_base =;

static const struct nvkm_disp_chan_mthd
gv100_disp_wndw_mthd =;

static void
gv100_disp_wndw_intr(struct nvkm_disp_chan *chan, bool en)
{}

static const struct nvkm_disp_chan_func
gv100_disp_wndw_func =;

const struct nvkm_disp_chan_user
gv100_disp_wndw =;

int
gv100_disp_wndw_cnt(struct nvkm_disp *disp, unsigned long *pmask)
{}

static int
gv100_disp_curs_idle(struct nvkm_disp_chan *chan)
{}

static void
gv100_disp_curs_intr(struct nvkm_disp_chan *chan, bool en)
{}

static void
gv100_disp_curs_fini(struct nvkm_disp_chan *chan)
{}

static int
gv100_disp_curs_init(struct nvkm_disp_chan *chan)
{}

static const struct nvkm_disp_chan_func
gv100_disp_curs_func =;

const struct nvkm_disp_chan_user
gv100_disp_curs =;

static const struct nvkm_disp_mthd_list
gv100_disp_core_mthd_base =;

static const struct nvkm_disp_mthd_list
gv100_disp_core_mthd_sor =;

static const struct nvkm_disp_mthd_list
gv100_disp_core_mthd_wndw =;

static const struct nvkm_disp_mthd_list
gv100_disp_core_mthd_head =;

static const struct nvkm_disp_chan_mthd
gv100_disp_core_mthd =;

static int
gv100_disp_core_idle(struct nvkm_disp_chan *chan)
{}

static u64
gv100_disp_core_user(struct nvkm_disp_chan *chan, u64 *psize)
{}

static void
gv100_disp_core_intr(struct nvkm_disp_chan *chan, bool en)
{}

static void
gv100_disp_core_fini(struct nvkm_disp_chan *chan)
{}

static int
gv100_disp_core_init(struct nvkm_disp_chan *chan)
{}

static const struct nvkm_disp_chan_func
gv100_disp_core_func =;

const struct nvkm_disp_chan_user
gv100_disp_core =;

#define gv100_disp_caps(p)

struct gv100_disp_caps {};

static int
gv100_disp_caps_map(struct nvkm_object *object, void *argv, u32 argc,
		    enum nvkm_object_map *type, u64 *addr, u64 *size)
{}

static const struct nvkm_object_func
gv100_disp_caps =;

int
gv100_disp_caps_new(const struct nvkm_oclass *oclass, void *argv, u32 argc,
		    struct nvkm_object **pobject)
{}

void
gv100_disp_super(struct work_struct *work)
{}

static void
gv100_disp_exception(struct nvkm_disp *disp, int chid)
{}

static void
gv100_disp_intr_ctrl_disp(struct nvkm_disp *disp)
{}

static void
gv100_disp_intr_exc_other(struct nvkm_disp *disp)
{}

static void
gv100_disp_intr_exc_winim(struct nvkm_disp *disp)
{}

static void
gv100_disp_intr_exc_win(struct nvkm_disp *disp)
{}

static void
gv100_disp_intr_head_timing(struct nvkm_disp *disp, int head)
{}

void
gv100_disp_intr(struct nvkm_disp *disp)
{}

void
gv100_disp_fini(struct nvkm_disp *disp, bool suspend)
{}

static int
gv100_disp_init(struct nvkm_disp *disp)
{}

static const struct nvkm_disp_func
gv100_disp =;

int
gv100_disp_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
	       struct nvkm_disp **pdisp)
{}