2013-10-18 14:44:23 +10:00
|
|
|
#ifndef __NVKM_FB_NV50_H__
|
|
|
|
|
#define __NVKM_FB_NV50_H__
|
|
|
|
|
#include "priv.h"
|
|
|
|
|
|
|
|
|
|
struct nv50_fb_priv {
|
2015-01-14 14:52:58 +10:00
|
|
|
struct nvkm_fb base;
|
2013-10-18 14:44:23 +10:00
|
|
|
struct page *r100c08_page;
|
|
|
|
|
dma_addr_t r100c08;
|
|
|
|
|
};
|
|
|
|
|
|
2015-01-14 14:52:58 +10:00
|
|
|
int nv50_fb_ctor(struct nvkm_object *, struct nvkm_object *,
|
|
|
|
|
struct nvkm_oclass *, void *, u32,
|
|
|
|
|
struct nvkm_object **);
|
|
|
|
|
void nv50_fb_dtor(struct nvkm_object *);
|
|
|
|
|
int nv50_fb_init(struct nvkm_object *);
|
2013-10-18 14:44:23 +10:00
|
|
|
|
|
|
|
|
struct nv50_fb_impl {
|
2015-01-14 14:52:58 +10:00
|
|
|
struct nvkm_fb_impl base;
|
2013-10-18 14:44:23 +10:00
|
|
|
u32 trap;
|
|
|
|
|
};
|
|
|
|
|
|
2013-10-21 12:04:43 +10:00
|
|
|
#define nv50_ram_create(p,e,o,d) \
|
|
|
|
|
nv50_ram_create_((p), (e), (o), sizeof(**d), (void **)d)
|
2015-01-14 14:52:58 +10:00
|
|
|
int nv50_ram_create_(struct nvkm_object *, struct nvkm_object *,
|
|
|
|
|
struct nvkm_oclass *, int, void **);
|
|
|
|
|
int nv50_ram_get(struct nvkm_fb *, u64 size, u32 align, u32 ncmin,
|
|
|
|
|
u32 memtype, struct nvkm_mem **);
|
|
|
|
|
void nv50_ram_put(struct nvkm_fb *, struct nvkm_mem **);
|
|
|
|
|
void __nv50_ram_put(struct nvkm_fb *, struct nvkm_mem *);
|
2013-10-21 10:26:04 +10:00
|
|
|
extern int nv50_fb_memtype[0x80];
|
2013-10-18 14:44:23 +10:00
|
|
|
#endif
|