3 #include <core/subdev.h>
6 const struct nvkm_pmu_func *func;
7 struct nvkm_subdev subdev;
18 struct work_struct work;
19 wait_queue_head_t wait;
26 int nvkm_pmu_send(struct nvkm_pmu *, u32 reply[2], u32 process,
27 u32 message, u32 data0, u32 data1);
28 void nvkm_pmu_pgob(struct nvkm_pmu *, bool enable);
30 int gt215_pmu_new(struct nvkm_device *, int, struct nvkm_pmu **);
31 int gf100_pmu_new(struct nvkm_device *, int, struct nvkm_pmu **);
32 int gf119_pmu_new(struct nvkm_device *, int, struct nvkm_pmu **);
33 int gk104_pmu_new(struct nvkm_device *, int, struct nvkm_pmu **);
34 int gk110_pmu_new(struct nvkm_device *, int, struct nvkm_pmu **);
35 int gk208_pmu_new(struct nvkm_device *, int, struct nvkm_pmu **);
36 int gk20a_pmu_new(struct nvkm_device *, int, struct nvkm_pmu **);
37 int gm107_pmu_new(struct nvkm_device *, int, struct nvkm_pmu **);
39 /* interface to MEMX process running on PMU */
41 int nvkm_memx_init(struct nvkm_pmu *, struct nvkm_memx **);
42 int nvkm_memx_fini(struct nvkm_memx **, bool exec);
43 void nvkm_memx_wr32(struct nvkm_memx *, u32 addr, u32 data);
44 void nvkm_memx_wait(struct nvkm_memx *, u32 addr, u32 mask, u32 data, u32 nsec);
45 void nvkm_memx_nsec(struct nvkm_memx *, u32 nsec);
46 void nvkm_memx_wait_vblank(struct nvkm_memx *);
47 void nvkm_memx_train(struct nvkm_memx *);
48 int nvkm_memx_train_result(struct nvkm_pmu *, u32 *, int);
49 void nvkm_memx_block(struct nvkm_memx *);
50 void nvkm_memx_unblock(struct nvkm_memx *);