summaryrefslogtreecommitdiff
path: root/drm/nouveau/include/nvkm/engine/pm.h
blob: 82f1c7f5243a18f98827d6bf0c0f8b215020a8e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __NVKM_PM_H__
#define __NVKM_PM_H__
#include <core/engine.h>

struct nvkm_perfdom;
struct nvkm_perfctr;
struct nvkm_pm {
	struct nvkm_engine base;

	struct nvkm_perfctx *context;
	void *profile_data;

	struct list_head domains;
	struct list_head sources;
	u32 sequence;
};

static inline struct nvkm_pm *
nvkm_pm(void *obj)
{
	return (void *)nvkm_engine(obj, NVDEV_ENGINE_PM);
}

extern struct nvkm_oclass *nv40_pm_oclass;
extern struct nvkm_oclass *nv50_pm_oclass;
extern struct nvkm_oclass *g84_pm_oclass;
extern struct nvkm_oclass *gt200_pm_oclass;
extern struct nvkm_oclass *gt215_pm_oclass;
extern struct nvkm_oclass gf100_pm_oclass;
extern struct nvkm_oclass gk104_pm_oclass;
extern struct nvkm_oclass gk110_pm_oclass;
#endif