2015-01-14 13:32:15 +08:00
|
|
|
#ifndef __NVKM_SW_H__
|
|
|
|
#define __NVKM_SW_H__
|
|
|
|
#include <core/engine.h>
|
2015-01-14 10:34:00 +08:00
|
|
|
|
2015-01-14 13:32:15 +08:00
|
|
|
struct nvkm_sw {
|
2015-08-20 12:54:19 +08:00
|
|
|
const struct nvkm_sw_func *func;
|
2015-08-20 12:54:22 +08:00
|
|
|
struct nvkm_engine engine;
|
|
|
|
|
2015-08-20 12:54:18 +08:00
|
|
|
struct list_head chan;
|
2015-01-14 13:32:15 +08:00
|
|
|
};
|
2015-01-14 10:34:00 +08:00
|
|
|
|
2015-08-20 12:54:18 +08:00
|
|
|
bool nvkm_sw_mthd(struct nvkm_sw *sw, int chid, int subc, u32 mthd, u32 data);
|
|
|
|
|
2015-08-20 12:54:22 +08:00
|
|
|
int nv04_sw_new(struct nvkm_device *, int, struct nvkm_sw **);
|
|
|
|
int nv10_sw_new(struct nvkm_device *, int, struct nvkm_sw **);
|
|
|
|
int nv50_sw_new(struct nvkm_device *, int, struct nvkm_sw **);
|
|
|
|
int gf100_sw_new(struct nvkm_device *, int, struct nvkm_sw **);
|
2015-01-14 10:34:00 +08:00
|
|
|
#endif
|