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

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

#include <core/client.h>
#include <core/ramht.h>
#include <subdev/bios.h>
#include <subdev/bios/disp.h>
#include <subdev/bios/init.h>
#include <subdev/bios/pll.h>
#include <subdev/devinit.h>
#include <subdev/i2c.h>
#include <subdev/mmu.h>
#include <subdev/timer.h>

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

static void
nv50_pior_clock(struct nvkm_ior *pior)
{}

static int
nv50_pior_dp_links(struct nvkm_ior *pior, struct nvkm_i2c_aux *aux)
{}

static const struct nvkm_ior_func_dp
nv50_pior_dp =;

static void
nv50_pior_power_wait(struct nvkm_device *device, u32 poff)
{}

static void
nv50_pior_power(struct nvkm_ior *pior, bool normal, bool pu, bool data, bool vsync, bool hsync)
{}

void
nv50_pior_depth(struct nvkm_ior *ior, struct nvkm_ior_state *state, u32 ctrl)
{}

static void
nv50_pior_state(struct nvkm_ior *pior, struct nvkm_ior_state *state)
{}

static const struct nvkm_ior_func
nv50_pior =;

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

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

static int
nv50_sor_bl_set(struct nvkm_ior *ior, int lvl)
{}

static int
nv50_sor_bl_get(struct nvkm_ior *ior)
{}

const struct nvkm_ior_func_bl
nv50_sor_bl =;

void
nv50_sor_clock(struct nvkm_ior *sor)
{}

static void
nv50_sor_power_wait(struct nvkm_device *device, u32 soff)
{}

void
nv50_sor_power(struct nvkm_ior *sor, bool normal, bool pu, bool data, bool vsync, bool hsync)
{}

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

static const struct nvkm_ior_func
nv50_sor =;

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

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

static void
nv50_dac_clock(struct nvkm_ior *dac)
{}

int
nv50_dac_sense(struct nvkm_ior *dac, u32 loadval)
{}

static void
nv50_dac_power_wait(struct nvkm_device *device, const u32 doff)
{}

void
nv50_dac_power(struct nvkm_ior *dac, bool normal, bool pu, bool data, bool vsync, bool hsync)
{}

static void
nv50_dac_state(struct nvkm_ior *dac, struct nvkm_ior_state *state)
{}

static const struct nvkm_ior_func
nv50_dac =;

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

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

static void
nv50_head_vblank_put(struct nvkm_head *head)
{}

static void
nv50_head_vblank_get(struct nvkm_head *head)
{}

static void
nv50_head_rgclk(struct nvkm_head *head, int div)
{}

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

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

static const struct nvkm_head_func
nv50_head =;

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

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


static void
nv50_disp_mthd_list(struct nvkm_disp *disp, int debug, u32 base, int c,
		    const struct nvkm_disp_mthd_list *list, int inst)
{}

void
nv50_disp_chan_mthd(struct nvkm_disp_chan *chan, int debug)
{}

static void
nv50_disp_chan_uevent_fini(struct nvkm_event *event, int type, int index)
{}

static void
nv50_disp_chan_uevent_init(struct nvkm_event *event, int types, int index)
{}

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

const struct nvkm_event_func
nv50_disp_chan_uevent =;

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

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

static void
nv50_disp_pioc_fini(struct nvkm_disp_chan *chan)
{}

static int
nv50_disp_pioc_init(struct nvkm_disp_chan *chan)
{}

const struct nvkm_disp_chan_func
nv50_disp_pioc_func =;

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

static void
nv50_disp_dmac_fini(struct nvkm_disp_chan *chan)
{}

static int
nv50_disp_dmac_init(struct nvkm_disp_chan *chan)
{}

int
nv50_disp_dmac_push(struct nvkm_disp_chan *chan, u64 object)
{}

const struct nvkm_disp_chan_func
nv50_disp_dmac_func =;

const struct nvkm_disp_chan_user
nv50_disp_curs =;

const struct nvkm_disp_chan_user
nv50_disp_oimm =;

static const struct nvkm_disp_mthd_list
nv50_disp_ovly_mthd_base =;

static const struct nvkm_disp_chan_mthd
nv50_disp_ovly_mthd =;

static const struct nvkm_disp_chan_user
nv50_disp_ovly =;

static const struct nvkm_disp_mthd_list
nv50_disp_base_mthd_base =;

const struct nvkm_disp_mthd_list
nv50_disp_base_mthd_image =;

static const struct nvkm_disp_chan_mthd
nv50_disp_base_mthd =;

static const struct nvkm_disp_chan_user
nv50_disp_base =;

const struct nvkm_disp_mthd_list
nv50_disp_core_mthd_base =;

static const struct nvkm_disp_mthd_list
nv50_disp_core_mthd_dac =;

const struct nvkm_disp_mthd_list
nv50_disp_core_mthd_sor =;

const struct nvkm_disp_mthd_list
nv50_disp_core_mthd_pior =;

static const struct nvkm_disp_mthd_list
nv50_disp_core_mthd_head =;

static const struct nvkm_disp_chan_mthd
nv50_disp_core_mthd =;

static void
nv50_disp_core_fini(struct nvkm_disp_chan *chan)
{}

static int
nv50_disp_core_init(struct nvkm_disp_chan *chan)
{}

const struct nvkm_disp_chan_func
nv50_disp_core_func =;

static const struct nvkm_disp_chan_user
nv50_disp_core =;

static u32
nv50_disp_super_iedt(struct nvkm_head *head, struct nvkm_outp *outp,
		     u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
		     struct nvbios_outp *iedt)
{}

static void
nv50_disp_super_ied_on(struct nvkm_head *head,
		       struct nvkm_ior *ior, int id, u32 khz)
{}

static void
nv50_disp_super_ied_off(struct nvkm_head *head, struct nvkm_ior *ior, int id)
{}

static struct nvkm_ior *
nv50_disp_super_ior_asy(struct nvkm_head *head)
{}

static struct nvkm_ior *
nv50_disp_super_ior_arm(struct nvkm_head *head)
{}

void
nv50_disp_super_3_0(struct nvkm_disp *disp, struct nvkm_head *head)
{}

static void
nv50_disp_super_2_2_dp(struct nvkm_head *head, struct nvkm_ior *ior)
{}

void
nv50_disp_super_2_2(struct nvkm_disp *disp, struct nvkm_head *head)
{}

void
nv50_disp_super_2_1(struct nvkm_disp *disp, struct nvkm_head *head)
{}

void
nv50_disp_super_2_0(struct nvkm_disp *disp, struct nvkm_head *head)
{}

void
nv50_disp_super_1_0(struct nvkm_disp *disp, struct nvkm_head *head)
{}

void
nv50_disp_super_1(struct nvkm_disp *disp)
{}

void
nv50_disp_super(struct work_struct *work)
{}

const struct nvkm_enum
nv50_disp_intr_error_type[] =;

static const struct nvkm_enum
nv50_disp_intr_error_code[] =;

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

void
nv50_disp_intr(struct nvkm_disp *disp)
{}

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

int
nv50_disp_init(struct nvkm_disp *disp)
{}

int
nv50_disp_oneinit(struct nvkm_disp *disp)
{}

static const struct nvkm_disp_func
nv50_disp =;

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