xref: /linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/mem.h (revision 664b0bae0b87f69bc9deb098f5e0158b9cf18e04)
1 #ifndef __NVKM_MEM_H__
2 #define __NVKM_MEM_H__
3 #include "priv.h"
4 
5 int nvkm_mem_new_type(struct nvkm_mmu *, int type, u8 page, u64 size,
6 		      void *argv, u32 argc, struct nvkm_memory **);
7 int nvkm_mem_map_host(struct nvkm_memory *, void **pmap);
8 
9 int nv04_mem_new(struct nvkm_mmu *, int, u8, u64, void *, u32,
10 		 struct nvkm_memory **);
11 int nv04_mem_map(struct nvkm_mmu *, struct nvkm_memory *, void *, u32,
12 		 u64 *, u64 *, struct nvkm_vma **);
13 
14 int nv50_mem_new(struct nvkm_mmu *, int, u8, u64, void *, u32,
15 		 struct nvkm_memory **);
16 int nv50_mem_map(struct nvkm_mmu *, struct nvkm_memory *, void *, u32,
17 		 u64 *, u64 *, struct nvkm_vma **);
18 
19 int gf100_mem_new(struct nvkm_mmu *, int, u8, u64, void *, u32,
20 		  struct nvkm_memory **);
21 int gf100_mem_map(struct nvkm_mmu *, struct nvkm_memory *, void *, u32,
22 		  u64 *, u64 *, struct nvkm_vma **);
23 #endif
24