WIP FPC-III support
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / nvkm / engine / sw / priv.h
blob6d18fc6180f2904cf58ea3ea9c2140ebbb1b0f45
1 /* SPDX-License-Identifier: MIT */
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