#include "priv.h"
#include "cgrp.h"
#include "chan.h"
#include "chid.h"
#include "runl.h"
#include "runq.h"
#include <core/gpuobj.h>
#include <subdev/mc.h>
#include <subdev/mmu.h>
#include <subdev/top.h>
#include <nvif/class.h>
#include <nvif/if900d.h>
void
gk104_chan_stop(struct nvkm_chan *chan)
{ … }
void
gk104_chan_start(struct nvkm_chan *chan)
{ … }
void
gk104_chan_unbind(struct nvkm_chan *chan)
{ … }
void
gk104_chan_bind_inst(struct nvkm_chan *chan)
{ … }
void
gk104_chan_bind(struct nvkm_chan *chan)
{ … }
static int
gk104_chan_ramfc_write(struct nvkm_chan *chan, u64 offset, u64 length, u32 devm, bool priv)
{ … }
const struct nvkm_chan_func_ramfc
gk104_chan_ramfc = …;
const struct nvkm_chan_func_userd
gk104_chan_userd = …;
static const struct nvkm_chan_func
gk104_chan = …;
static void
gk104_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chan *chan)
{ … }
int
gk104_ectx_ctor(struct nvkm_engn *engn, struct nvkm_vctx *vctx)
{ … }
struct gk104_engn_status { … };
static void
gk104_engn_status(struct nvkm_engn *engn, struct gk104_engn_status *status)
{ … }
int
gk104_engn_cxid(struct nvkm_engn *engn, bool *cgid)
{ … }
bool
gk104_engn_chsw(struct nvkm_engn *engn)
{ … }
const struct nvkm_engn_func
gk104_engn = …;
const struct nvkm_engn_func
gk104_engn_ce = …;
bool
gk104_runq_idle(struct nvkm_runq *runq)
{ … }
static const struct nvkm_bitfield
gk104_runq_intr_1_names[] = …;
static bool
gk104_runq_intr_1(struct nvkm_runq *runq)
{ … }
const struct nvkm_bitfield
gk104_runq_intr_0_names[] = …;
bool
gk104_runq_intr(struct nvkm_runq *runq, struct nvkm_runl *null)
{ … }
void
gk104_runq_init(struct nvkm_runq *runq)
{ … }
static u32
gk104_runq_runm(struct nvkm_runq *runq)
{ … }
const struct nvkm_runq_func
gk104_runq = …;
void
gk104_runl_fault_clear(struct nvkm_runl *runl)
{ … }
void
gk104_runl_allow(struct nvkm_runl *runl, u32 engm)
{ … }
void
gk104_runl_block(struct nvkm_runl *runl, u32 engm)
{ … }
bool
gk104_runl_pending(struct nvkm_runl *runl)
{ … }
void
gk104_runl_commit(struct nvkm_runl *runl, struct nvkm_memory *memory, u32 start, int count)
{ … }
void
gk104_runl_insert_chan(struct nvkm_chan *chan, struct nvkm_memory *memory, u64 offset)
{ … }
static const struct nvkm_runl_func
gk104_runl = …;
static const struct nvkm_enum
gk104_fifo_mmu_fault_engine[] = …;
const struct nvkm_enum
gk104_fifo_mmu_fault_reason[] = …;
const struct nvkm_enum
gk104_fifo_mmu_fault_hubclient[] = …;
const struct nvkm_enum
gk104_fifo_mmu_fault_gpcclient[] = …;
const struct nvkm_fifo_func_mmu_fault
gk104_fifo_mmu_fault = …;
static const struct nvkm_enum
gk104_fifo_intr_bind_reason[] = …;
void
gk104_fifo_intr_bind(struct nvkm_fifo *fifo)
{ … }
void
gk104_fifo_intr_chsw(struct nvkm_fifo *fifo)
{ … }
static void
gk104_fifo_intr_dropped_fault(struct nvkm_fifo *fifo)
{ … }
void
gk104_fifo_intr_runlist(struct nvkm_fifo *fifo)
{ … }
irqreturn_t
gk104_fifo_intr(struct nvkm_inth *inth)
{ … }
void
gk104_fifo_init_pbdmas(struct nvkm_fifo *fifo, u32 mask)
{ … }
void
gk104_fifo_init(struct nvkm_fifo *fifo)
{ … }
int
gk104_fifo_runl_ctor(struct nvkm_fifo *fifo)
{ … }
int
gk104_fifo_chid_nr(struct nvkm_fifo *fifo)
{ … }
static const struct nvkm_fifo_func
gk104_fifo = …;
int
gk104_fifo_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_fifo **pfifo)
{ … }