1 #ifndef __NOUVEAU_MEM_H__
2 #define __NOUVEAU_MEM_H__
5 #include <drm/ttm/ttm_bo_api.h>
8 static inline struct nouveau_mem *
9 nouveau_mem(struct ttm_mem_reg *reg)
15 struct nouveau_cli *cli;
21 struct nvkm_vma vma[2];
23 struct nvkm_mem __mem;
24 struct nvkm_mem *_mem;
25 struct nvkm_vma bar_vma;
27 struct nvkm_memory memory;
35 int nouveau_mem_new(struct nouveau_cli *, u8 kind, u8 comp,
36 struct ttm_mem_reg *);
37 void nouveau_mem_del(struct ttm_mem_reg *);
38 int nouveau_mem_vram(struct ttm_mem_reg *, bool contig, u8 page);
39 int nouveau_mem_host(struct ttm_mem_reg *, struct ttm_dma_tt *);
40 void nouveau_mem_fini(struct nouveau_mem *);
41 int nouveau_mem_map(struct nouveau_mem *, struct nvkm_vmm *, struct nvkm_vma *);