]> git.karo-electronics.de Git - karo-tx-linux.git/blob - drivers/gpu/drm/nouveau/nvkm/subdev/fb/nvc0.h
drm/nouveau/devinit: namespace + nvidia gpu names (no binary change)
[karo-tx-linux.git] / drivers / gpu / drm / nouveau / nvkm / 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,m,d)                                             \
22         nvc0_ram_create_((p), (e), (o), (m), sizeof(**d), (void **)d)
23 int  nvc0_ram_create_(struct nouveau_object *, struct nouveau_object *,
24                       struct nouveau_oclass *, u32, 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 int  nve0_ram_init(struct nouveau_object*);
30
31 #endif