1 #ifndef __NVKM_SW_H__ 2 #define __NVKM_SW_H__ 3 #include <core/engine.h> 4 5 struct nvkm_sw { 6 struct nvkm_engine engine; 7 }; 8 9 #define nvkm_sw_create(p,e,c,d) \ 10 nvkm_engine_create((p), (e), (c), true, "SW", "software", (d)) 11 #define nvkm_sw_destroy(d) \ 12 nvkm_engine_destroy(&(d)->engine) 13 #define nvkm_sw_init(d) \ 14 nvkm_engine_init_old(&(d)->engine) 15 #define nvkm_sw_fini(d,s) \ 16 nvkm_engine_fini_old(&(d)->engine, (s)) 17 18 #define _nvkm_sw_dtor _nvkm_engine_dtor 19 #define _nvkm_sw_init _nvkm_engine_init 20 #define _nvkm_sw_fini _nvkm_engine_fini 21 22 extern struct nvkm_oclass *nv04_sw_oclass; 23 extern struct nvkm_oclass *nv10_sw_oclass; 24 extern struct nvkm_oclass *nv50_sw_oclass; 25 extern struct nvkm_oclass *gf100_sw_oclass; 26 27 void nv04_sw_intr(struct nvkm_subdev *); 28 #endif 29