Staging
v0.8.1
swh:1:snp:a902887e4be9191b7c6c4406aa06b31c1ce2c7cc
Raw File
Tip revision: 771c577c23bac90597c685971d7297ea00f99d11 authored by Linus Torvalds on 20 May 2018, 22:31:38 UTC
Linux 4.17-rc6
Tip revision: 771c577
nv50.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __NV50_FIFO_H__
#define __NV50_FIFO_H__
#define nv50_fifo(p) container_of((p), struct nv50_fifo, base)
#include "priv.h"

struct nv50_fifo {
	struct nvkm_fifo base;
	struct nvkm_memory *runlist[2];
	int cur_runlist;
};

int nv50_fifo_new_(const struct nvkm_fifo_func *, struct nvkm_device *,
		   int index, struct nvkm_fifo **);

void *nv50_fifo_dtor(struct nvkm_fifo *);
int nv50_fifo_oneinit(struct nvkm_fifo *);
void nv50_fifo_init(struct nvkm_fifo *);
void nv50_fifo_runlist_update(struct nv50_fifo *);
#endif
back to top