1 #ifndef __NVKM_SW_PRIV_H__ 2 #define __NVKM_SW_PRIV_H__ 3 #define nvkm_sw(p) container_of((p), struct nvkm_sw, engine) 4 #include <engine/sw.h> 5 struct nvkm_sw_chan; 6 7 int nvkm_sw_new_(const struct nvkm_sw_func *, struct nvkm_device *, 8 int index, struct nvkm_sw **); 9 10 struct nvkm_sw_chan_sclass { 11 int (*ctor)(struct nvkm_sw_chan *, const struct nvkm_oclass *, 12 void *data, u32 size, struct nvkm_object **); 13 struct nvkm_sclass base; 14 }; 15 16 struct nvkm_sw_func { 17 int (*chan_new)(struct nvkm_sw *, struct nvkm_fifo_chan *, 18 const struct nvkm_oclass *, struct nvkm_object **); 19 const struct nvkm_sw_chan_sclass sclass[]; 20 }; 21 #endif 22