1 1.1 riastrad /* $NetBSD: mem.h,v 1.2 2021/12/18 23:45:33 riastradh Exp $ */ 2 1.1 riastrad 3 1.1 riastrad #ifndef __NVIF_MEM_H__ 4 1.1 riastrad #define __NVIF_MEM_H__ 5 1.1 riastrad #include "mmu.h" 6 1.1 riastrad 7 1.1 riastrad struct nvif_mem { 8 1.1 riastrad struct nvif_object object; 9 1.1 riastrad u8 type; 10 1.1 riastrad u8 page; 11 1.1 riastrad u64 addr; 12 1.1 riastrad u64 size; 13 1.1 riastrad }; 14 1.1 riastrad 15 1.1 riastrad int nvif_mem_init_type(struct nvif_mmu *mmu, s32 oclass, int type, u8 page, 16 1.1 riastrad u64 size, void *argv, u32 argc, struct nvif_mem *); 17 1.1 riastrad int nvif_mem_init(struct nvif_mmu *mmu, s32 oclass, u8 type, u8 page, 18 1.1 riastrad u64 size, void *argv, u32 argc, struct nvif_mem *); 19 1.1 riastrad void nvif_mem_fini(struct nvif_mem *); 20 1.1 riastrad 21 1.1 riastrad int nvif_mem_init_map(struct nvif_mmu *, u8 type, u64 size, struct nvif_mem *); 22 1.1 riastrad #endif 23