mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-06 13:55:08 +08:00
5b85057acc
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>
27 lines
612 B
C
27 lines
612 B
C
#ifndef __NVKM_DMAOBJ_H__
|
|
#define __NVKM_DMAOBJ_H__
|
|
#include <core/engine.h>
|
|
struct nvkm_gpuobj;
|
|
|
|
struct nvkm_dmaobj {
|
|
struct nvkm_object base;
|
|
u32 target;
|
|
u32 access;
|
|
u64 start;
|
|
u64 limit;
|
|
};
|
|
|
|
struct nvkm_dmaeng {
|
|
struct nvkm_engine base;
|
|
|
|
/* creates a "physical" dma object from a struct nvkm_dmaobj */
|
|
int (*bind)(struct nvkm_dmaobj *dmaobj, struct nvkm_object *parent,
|
|
struct nvkm_gpuobj **);
|
|
};
|
|
|
|
extern struct nvkm_oclass *nv04_dmaeng_oclass;
|
|
extern struct nvkm_oclass *nv50_dmaeng_oclass;
|
|
extern struct nvkm_oclass *gf100_dmaeng_oclass;
|
|
extern struct nvkm_oclass *gf110_dmaeng_oclass;
|
|
#endif
|