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_init_type(struct nvif_mmu *mmu, s32 oclass, int type, u8 page, 14 u64 size, void *argv, u32 argc, struct nvif_mem *); 15 int nvif_mem_init(struct nvif_mmu *mmu, s32 oclass, u8 type, u8 page, 16 u64 size, void *argv, u32 argc, struct nvif_mem *); 17 void nvif_mem_fini(struct nvif_mem *); 18 19 int nvif_mem_init_map(struct nvif_mmu *, u8 type, u64 size, struct nvif_mem *); 20 #endif 21