mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

The namespace of NVKM is being changed to nvkm_ instead of nouveau_, which will be used for the DRM part of the driver. This is being done in order to make it very clear as to what part of the driver a given symbol belongs to, and as a minor step towards splitting the DRM driver out to be able to stand on its own (for virt). Because there's already a large amount of churn here anyway, this is as good a time as any to also switch to NVIDIA's device and chipset naming to ease collaboration with them. A comparison of objdump disassemblies proves no code changes. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
53 lines
1.4 KiB
C
53 lines
1.4 KiB
C
#ifndef __NVKM_PMU_H__
|
|
#define __NVKM_PMU_H__
|
|
#include <core/subdev.h>
|
|
|
|
struct nvkm_pmu {
|
|
struct nvkm_subdev base;
|
|
|
|
struct {
|
|
u32 base;
|
|
u32 size;
|
|
} send;
|
|
|
|
struct {
|
|
u32 base;
|
|
u32 size;
|
|
|
|
struct work_struct work;
|
|
wait_queue_head_t wait;
|
|
u32 process;
|
|
u32 message;
|
|
u32 data[2];
|
|
} recv;
|
|
|
|
int (*message)(struct nvkm_pmu *, u32[2], u32, u32, u32, u32);
|
|
void (*pgob)(struct nvkm_pmu *, bool);
|
|
};
|
|
|
|
static inline struct nvkm_pmu *
|
|
nvkm_pmu(void *obj)
|
|
{
|
|
return (void *)nvkm_subdev(obj, NVDEV_SUBDEV_PMU);
|
|
}
|
|
|
|
extern struct nvkm_oclass *gt215_pmu_oclass;
|
|
extern struct nvkm_oclass *gf100_pmu_oclass;
|
|
extern struct nvkm_oclass *gf110_pmu_oclass;
|
|
extern struct nvkm_oclass *gk104_pmu_oclass;
|
|
extern struct nvkm_oclass *gk208_pmu_oclass;
|
|
extern struct nvkm_oclass *gk20a_pmu_oclass;
|
|
|
|
/* interface to MEMX process running on PMU */
|
|
struct nvkm_memx;
|
|
int nvkm_memx_init(struct nvkm_pmu *, struct nvkm_memx **);
|
|
int nvkm_memx_fini(struct nvkm_memx **, bool exec);
|
|
void nvkm_memx_wr32(struct nvkm_memx *, u32 addr, u32 data);
|
|
void nvkm_memx_wait(struct nvkm_memx *, u32 addr, u32 mask, u32 data, u32 nsec);
|
|
void nvkm_memx_nsec(struct nvkm_memx *, u32 nsec);
|
|
void nvkm_memx_wait_vblank(struct nvkm_memx *);
|
|
void nvkm_memx_train(struct nvkm_memx *);
|
|
int nvkm_memx_train_result(struct nvkm_pmu *, u32 *, int);
|
|
void nvkm_memx_block(struct nvkm_memx *);
|
|
void nvkm_memx_unblock(struct nvkm_memx *);
|
|
#endif
|