diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2015-08-20 14:54:22 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-08-28 12:37:43 +1000 |
commit | 890677206202f9cdeecf456c030c26553b0e359f (patch) | |
tree | 15a1ade6c3c71f14319363a1202d40eac6733c95 /drm/nouveau/nvkm/engine/pm/nv40.h | |
parent | dd39fa8c8fa5081af4d2d349a8180343883d6f3f (diff) | |
download | nouveau-890677206202f9cdeecf456c030c26553b0e359f.tar.gz |
pm: convert to new-style nvkm_engine
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drm/nouveau/nvkm/engine/pm/nv40.h')
-rw-r--r-- | drm/nouveau/nvkm/engine/pm/nv40.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/drm/nouveau/nvkm/engine/pm/nv40.h b/drm/nouveau/nvkm/engine/pm/nv40.h index 082875276..da481abe8 100644 --- a/drm/nouveau/nvkm/engine/pm/nv40.h +++ b/drm/nouveau/nvkm/engine/pm/nv40.h @@ -1,24 +1,14 @@ #ifndef __NVKM_PM_NV40_H__ #define __NVKM_PM_NV40_H__ +#define nv40_pm(p) container_of((p), struct nv40_pm, base) #include "priv.h" -struct nv40_pm_oclass { - struct nvkm_oclass base; - const struct nvkm_specdom *doms; -}; - struct nv40_pm { struct nvkm_pm base; u32 sequence; }; -int nv40_pm_ctor(struct nvkm_object *, struct nvkm_object *, - struct nvkm_oclass *, void *data, u32 size, - struct nvkm_object **pobject); - -struct nv40_pm_cntr { - struct nvkm_perfctr base; -}; - +int nv40_pm_new_(const struct nvkm_specdom *, struct nvkm_device *, + int index, struct nvkm_pm **); extern const struct nvkm_funcdom nv40_perfctr_func; #endif |