1 #ifndef __NVKM_FB_NV50_H__
2 #define __NVKM_FB_NV50_H__
3 #include "priv.h"
4 
5 struct nv50_fb_priv {
6 	struct nvkm_fb base;
7 	struct page *r100c08_page;
8 	dma_addr_t r100c08;
9 };
10 
11 int  nv50_fb_ctor(struct nvkm_object *, struct nvkm_object *,
12 		  struct nvkm_oclass *, void *, u32,
13 		  struct nvkm_object **);
14 void nv50_fb_dtor(struct nvkm_object *);
15 int  nv50_fb_init(struct nvkm_object *);
16 
17 struct nv50_fb_impl {
18 	struct nvkm_fb_impl base;
19 	u32 trap;
20 };
21 
22 #define nv50_ram_create(p,e,o,d)                                               \
23 	nv50_ram_create_((p), (e), (o), sizeof(**d), (void **)d)
24 int  nv50_ram_create_(struct nvkm_object *, struct nvkm_object *,
25 		      struct nvkm_oclass *, int, void **);
26 int  nv50_ram_get(struct nvkm_fb *, u64 size, u32 align, u32 ncmin,
27 		  u32 memtype, struct nvkm_mem **);
28 void nv50_ram_put(struct nvkm_fb *, struct nvkm_mem **);
29 void __nv50_ram_put(struct nvkm_fb *, struct nvkm_mem *);
30 extern int nv50_fb_memtype[0x80];
31 #endif
32