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>
28 lines
911 B
C
28 lines
911 B
C
#ifndef __NVKM_RAM_NVC0_H__
|
|
#define __NVKM_RAM_NVC0_H__
|
|
#include "priv.h"
|
|
#include "nv50.h"
|
|
|
|
struct gf100_fb_priv {
|
|
struct nvkm_fb base;
|
|
struct page *r100c10_page;
|
|
dma_addr_t r100c10;
|
|
};
|
|
|
|
int gf100_fb_ctor(struct nvkm_object *, struct nvkm_object *,
|
|
struct nvkm_oclass *, void *, u32,
|
|
struct nvkm_object **);
|
|
void gf100_fb_dtor(struct nvkm_object *);
|
|
int gf100_fb_init(struct nvkm_object *);
|
|
bool gf100_fb_memtype_valid(struct nvkm_fb *, u32);
|
|
|
|
#define gf100_ram_create(p,e,o,m,d) \
|
|
gf100_ram_create_((p), (e), (o), (m), sizeof(**d), (void **)d)
|
|
int gf100_ram_create_(struct nvkm_object *, struct nvkm_object *,
|
|
struct nvkm_oclass *, u32, int, void **);
|
|
int gf100_ram_get(struct nvkm_fb *, u64, u32, u32, u32,
|
|
struct nvkm_mem **);
|
|
void gf100_ram_put(struct nvkm_fb *, struct nvkm_mem **);
|
|
|
|
int gk104_ram_init(struct nvkm_object*);
|
|
#endif
|