1 #ifndef __NVKM_FB_NV50_H__
2 #define __NVKM_FB_NV50_H__
3 #define nv50_fb(p) container_of((p), struct nv50_fb, base)
4 #include "priv.h"
5 
6 struct nv50_fb {
7 	const struct nv50_fb_func *func;
8 	struct nvkm_fb base;
9 	struct page *r100c08_page;
10 	dma_addr_t r100c08;
11 };
12 
13 struct nv50_fb_func {
14 	int (*ram_new)(struct nvkm_fb *, struct nvkm_ram **);
15 	u32 trap;
16 };
17 
18 int nv50_fb_new_(const struct nv50_fb_func *, struct nvkm_device *, int index,
19 		 struct nvkm_fb **pfb);
20 extern int nv50_fb_memtype[0x80];
21 #endif
22