1#ifndef __NVKM_FB_NV50_H__ 2#define __NVKM_FB_NV50_H__ 3#include "priv.h" 4 5struct nv50_fb_priv { 6 struct nvkm_fb base; 7 struct page *r100c08_page; 8 dma_addr_t r100c08; 9}; 10 11int nv50_fb_ctor(struct nvkm_object *, struct nvkm_object *, 12 struct nvkm_oclass *, void *, u32, 13 struct nvkm_object **); 14void nv50_fb_dtor(struct nvkm_object *); 15int nv50_fb_init(struct nvkm_object *); 16 17struct 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) 24int nv50_ram_create_(struct nvkm_object *, struct nvkm_object *, 25 struct nvkm_oclass *, int, void **); 26int nv50_ram_get(struct nvkm_fb *, u64 size, u32 align, u32 ncmin, 27 u32 memtype, struct nvkm_mem **); 28void nv50_ram_put(struct nvkm_fb *, struct nvkm_mem **); 29void __nv50_ram_put(struct nvkm_fb *, struct nvkm_mem *); 30extern int nv50_fb_memtype[0x80]; 31#endif 32