drm/nouveau/fb: implement various bits of work towards memory reclocking
[deliverable/linux.git] / drivers / gpu / drm / nouveau / core / subdev / fb / nvc0.h
1 #ifndef __NVKM_RAM_NVC0_H__
2 #define __NVKM_RAM_NVC0_H__
3
4 #include "priv.h"
5 #include "nv50.h"
6
7 struct nvc0_fb_priv {
8 struct nouveau_fb base;
9 struct page *r100c10_page;
10 dma_addr_t r100c10;
11 };
12
13 int nvc0_fb_ctor(struct nouveau_object *, struct nouveau_object *,
14 struct nouveau_oclass *, void *, u32,
15 struct nouveau_object **);
16 void nvc0_fb_dtor(struct nouveau_object *);
17 int nvc0_fb_init(struct nouveau_object *);
18 bool nvc0_fb_memtype_valid(struct nouveau_fb *, u32);
19
20
21 #define nvc0_ram_create(p,e,o,d) \
22 nvc0_ram_create_((p), (e), (o), sizeof(**d), (void **)d)
23 int nvc0_ram_create_(struct nouveau_object *, struct nouveau_object *,
24 struct nouveau_oclass *, int, void **);
25 int nvc0_ram_get(struct nouveau_fb *, u64, u32, u32, u32,
26 struct nouveau_mem **);
27 void nvc0_ram_put(struct nouveau_fb *, struct nouveau_mem **);
28
29 #endif
This page took 0.030981 seconds and 5 git commands to generate.