#include <core/engine.h>
struct nvkm_falcon {
- struct nvkm_engine base;
+ struct nvkm_engine engine;
u32 addr;
u8 version;
nvkm_falcon_create_((p), (e), (c), (b), (d), (i), (f), \
sizeof(**r),(void **)r)
#define nvkm_falcon_destroy(p) \
- nvkm_engine_destroy(&(p)->base)
+ nvkm_engine_destroy(&(p)->engine)
#define nvkm_falcon_init(p) ({ \
struct nvkm_falcon *falcon = (p); \
_nvkm_falcon_init(nv_object(falcon)); \
if (ret)
return ret;
- nv_wo32(priv, 0x084, nv_engidx(&priv->base.base) - NVDEV_ENGINE_CE0);
+ nv_wo32(priv, 0x084, nv_engidx(&priv->base.engine) - NVDEV_ENGINE_CE0);
return 0;
}
u32 caps;
/* enable engine, and determine its capabilities */
- ret = nvkm_engine_init(&falcon->base);
+ ret = nvkm_engine_init(&falcon->engine);
if (ret)
return ret;
nv_mo32(falcon, 0x048, 0x00000003, 0x00000000);
nv_wo32(falcon, 0x014, 0xffffffff);
- return nvkm_engine_fini(&falcon->base, suspend);
+ return nvkm_engine_fini(&falcon->engine, suspend);
}
int