xref: /linux/drivers/gpu/drm/nouveau/include/nvif/mem.h (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1 #ifndef __NVIF_MEM_H__
2 #define __NVIF_MEM_H__
3 #include "mmu.h"
4 
5 struct nvif_mem {
6 	struct nvif_object object;
7 	u8  type;
8 	u8  page;
9 	u64 addr;
10 	u64 size;
11 };
12 
13 int nvif_mem_ctor_type(struct nvif_mmu *mmu, const char *name, s32 oclass,
14 		       int type, u8 page, u64 size, void *argv, u32 argc,
15 		       struct nvif_mem *);
16 int nvif_mem_ctor(struct nvif_mmu *mmu, const char *name, s32 oclass, u8 type,
17 		  u8 page, u64 size, void *argv, u32 argc, struct nvif_mem *);
18 void nvif_mem_dtor(struct nvif_mem *);
19 
20 int nvif_mem_ctor_map(struct nvif_mmu *, const char *name, u8 type, u64 size,
21 		      struct nvif_mem *);
22 #endif
23