These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / gpu / drm / nouveau / nvkm / subdev / pmu / priv.h
1 #ifndef __NVKM_PMU_PRIV_H__
2 #define __NVKM_PMU_PRIV_H__
3 #define nvkm_pmu(p) container_of((p), struct nvkm_pmu, subdev)
4 #include <subdev/pmu.h>
5 #include <subdev/pmu/fuc/os.h>
6
7 int nvkm_pmu_new_(const struct nvkm_pmu_func *, struct nvkm_device *,
8                   int index, struct nvkm_pmu **);
9
10 struct nvkm_pmu_func {
11         void (*reset)(struct nvkm_pmu *);
12
13         struct {
14                 u32 *data;
15                 u32  size;
16         } code;
17
18         struct {
19                 u32 *data;
20                 u32  size;
21         } data;
22
23         void (*pgob)(struct nvkm_pmu *, bool);
24 };
25
26 void gk110_pmu_pgob(struct nvkm_pmu *, bool);
27 #endif