Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / drivers / gpu / drm / nouveau / nvkm / engine / sw / priv.h
blob4aca1791abc3c46c958f69976c6ec15d859666cb
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __NVKM_SW_PRIV_H__
3 #define __NVKM_SW_PRIV_H__
4 #define nvkm_sw(p) container_of((p), struct nvkm_sw, engine)
5 #include <engine/sw.h>
6 struct nvkm_sw_chan;
8 int nvkm_sw_new_(const struct nvkm_sw_func *, struct nvkm_device *,
9 int index, struct nvkm_sw **);
11 struct nvkm_sw_chan_sclass {
12 int (*ctor)(struct nvkm_sw_chan *, const struct nvkm_oclass *,
13 void *data, u32 size, struct nvkm_object **);
14 struct nvkm_sclass base;
17 struct nvkm_sw_func {
18 int (*chan_new)(struct nvkm_sw *, struct nvkm_fifo_chan *,
19 const struct nvkm_oclass *, struct nvkm_object **);
20 const struct nvkm_sw_chan_sclass sclass[];
22 #endif