162306a36Sopenharmony_ci#ifndef __NVIF_MEM_H__ 262306a36Sopenharmony_ci#define __NVIF_MEM_H__ 362306a36Sopenharmony_ci#include "mmu.h" 462306a36Sopenharmony_ci 562306a36Sopenharmony_cistruct nvif_mem { 662306a36Sopenharmony_ci struct nvif_object object; 762306a36Sopenharmony_ci u8 type; 862306a36Sopenharmony_ci u8 page; 962306a36Sopenharmony_ci u64 addr; 1062306a36Sopenharmony_ci u64 size; 1162306a36Sopenharmony_ci}; 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ciint nvif_mem_ctor_type(struct nvif_mmu *mmu, const char *name, s32 oclass, 1462306a36Sopenharmony_ci int type, u8 page, u64 size, void *argv, u32 argc, 1562306a36Sopenharmony_ci struct nvif_mem *); 1662306a36Sopenharmony_ciint nvif_mem_ctor(struct nvif_mmu *mmu, const char *name, s32 oclass, u8 type, 1762306a36Sopenharmony_ci u8 page, u64 size, void *argv, u32 argc, struct nvif_mem *); 1862306a36Sopenharmony_civoid nvif_mem_dtor(struct nvif_mem *); 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ciint nvif_mem_ctor_map(struct nvif_mmu *, const char *name, u8 type, u64 size, 2162306a36Sopenharmony_ci struct nvif_mem *); 2262306a36Sopenharmony_ci#endif 23