18c2ecf20Sopenharmony_ci#ifndef __NVIF_MEM_H__ 28c2ecf20Sopenharmony_ci#define __NVIF_MEM_H__ 38c2ecf20Sopenharmony_ci#include "mmu.h" 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_cistruct nvif_mem { 68c2ecf20Sopenharmony_ci struct nvif_object object; 78c2ecf20Sopenharmony_ci u8 type; 88c2ecf20Sopenharmony_ci u8 page; 98c2ecf20Sopenharmony_ci u64 addr; 108c2ecf20Sopenharmony_ci u64 size; 118c2ecf20Sopenharmony_ci}; 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciint nvif_mem_ctor_type(struct nvif_mmu *mmu, const char *name, s32 oclass, 148c2ecf20Sopenharmony_ci int type, u8 page, u64 size, void *argv, u32 argc, 158c2ecf20Sopenharmony_ci struct nvif_mem *); 168c2ecf20Sopenharmony_ciint nvif_mem_ctor(struct nvif_mmu *mmu, const char *name, s32 oclass, u8 type, 178c2ecf20Sopenharmony_ci u8 page, u64 size, void *argv, u32 argc, struct nvif_mem *); 188c2ecf20Sopenharmony_civoid nvif_mem_dtor(struct nvif_mem *); 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciint nvif_mem_ctor_map(struct nvif_mmu *, const char *name, u8 type, u64 size, 218c2ecf20Sopenharmony_ci struct nvif_mem *); 228c2ecf20Sopenharmony_ci#endif 23