linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/tu102.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 "cgrp.h"
#include "chan.h"
#include "runl.h"

#include <core/memory.h>
#include <subdev/gsp.h>
#include <subdev/mc.h>
#include <subdev/vfn.h>

#include <nvif/class.h>

static u32
tu102_chan_doorbell_handle(struct nvkm_chan *chan)
{}

static void
tu102_chan_start(struct nvkm_chan *chan)
{}

static const struct nvkm_chan_func
tu102_chan =;

static bool
tu102_runl_pending(struct nvkm_runl *runl)
{}

static void
tu102_runl_commit(struct nvkm_runl *runl, struct nvkm_memory *memory, u32 start, int count)
{}

static const struct nvkm_runl_func
tu102_runl =;

static const struct nvkm_enum
tu102_fifo_mmu_fault_engine[] =;

const struct nvkm_fifo_func_mmu_fault
tu102_fifo_mmu_fault =;

void
tu102_fifo_intr_ctxsw_timeout_info(struct nvkm_engn *engn, u32 info)
{}

static void
tu102_fifo_intr_ctxsw_timeout(struct nvkm_fifo *fifo)
{}

static void
tu102_fifo_intr_sched(struct nvkm_fifo *fifo)
{}

static irqreturn_t
tu102_fifo_intr(struct nvkm_inth *inth)
{}

static void
tu102_fifo_init_pbdmas(struct nvkm_fifo *fifo, u32 mask)
{}

static const struct nvkm_fifo_func
tu102_fifo =;

int
tu102_fifo_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
	       struct nvkm_fifo **pfifo)
{}