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>
36 lines
738 B
C
36 lines
738 B
C
#ifndef __NV04_INSTMEM_H__
|
|
#define __NV04_INSTMEM_H__
|
|
#include "priv.h"
|
|
|
|
#include <core/mm.h>
|
|
|
|
extern struct nvkm_instobj_impl nv04_instobj_oclass;
|
|
|
|
struct nv04_instmem_priv {
|
|
struct nvkm_instmem base;
|
|
|
|
void __iomem *iomem;
|
|
struct nvkm_mm heap;
|
|
|
|
struct nvkm_gpuobj *vbios;
|
|
struct nvkm_ramht *ramht;
|
|
struct nvkm_gpuobj *ramro;
|
|
struct nvkm_gpuobj *ramfc;
|
|
};
|
|
|
|
static inline struct nv04_instmem_priv *
|
|
nv04_instmem(void *obj)
|
|
{
|
|
return (void *)nvkm_instmem(obj);
|
|
}
|
|
|
|
struct nv04_instobj_priv {
|
|
struct nvkm_instobj base;
|
|
struct nvkm_mm_node *mem;
|
|
};
|
|
|
|
void nv04_instmem_dtor(struct nvkm_object *);
|
|
|
|
int nv04_instmem_alloc(struct nvkm_instmem *, struct nvkm_object *,
|
|
u32 size, u32 align, struct nvkm_object **pobject);
|
|
#endif
|