]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - drivers/gpu/drm/nouveau/include/nvkm/subdev/mmu.h
3 #include <core/subdev.h>
9 struct nvkm_memory
*mem
[2];
14 struct list_head head
;
15 struct nvkm_gpuobj
*obj
;
20 struct nvkm_mm_node
*node
;
35 struct list_head pgd_list
;
36 atomic_t engref
[NVKM_SUBDEV_NR
];
38 struct nvkm_vm_pgt
*pgt
;
45 int nvkm_vm_new(struct nvkm_device
*, u64 offset
, u64 length
, u64 mm_offset
,
46 struct lock_class_key
*, struct nvkm_vm
**);
47 int nvkm_vm_ref(struct nvkm_vm
*, struct nvkm_vm
**, struct nvkm_gpuobj
*pgd
);
48 int nvkm_vm_boot(struct nvkm_vm
*, u64 size
);
49 int nvkm_vm_get(struct nvkm_vm
*, u64 size
, u32 page_shift
, u32 access
,
51 void nvkm_vm_put(struct nvkm_vma
*);
52 void nvkm_vm_map(struct nvkm_vma
*, struct nvkm_mem
*);
53 void nvkm_vm_map_at(struct nvkm_vma
*, u64 offset
, struct nvkm_mem
*);
54 void nvkm_vm_unmap(struct nvkm_vma
*);
55 void nvkm_vm_unmap_at(struct nvkm_vma
*, u64 offset
, u64 length
);
58 const struct nvkm_mmu_func
*func
;
59 struct nvkm_subdev subdev
;
69 struct list_head list
;
73 int nv04_mmu_new(struct nvkm_device
*, int, struct nvkm_mmu
**);
74 int nv41_mmu_new(struct nvkm_device
*, int, struct nvkm_mmu
**);
75 int nv44_mmu_new(struct nvkm_device
*, int, struct nvkm_mmu
**);
76 int nv50_mmu_new(struct nvkm_device
*, int, struct nvkm_mmu
**);
77 int g84_mmu_new(struct nvkm_device
*, int, struct nvkm_mmu
**);
78 int gf100_mmu_new(struct nvkm_device
*, int, struct nvkm_mmu
**);
79 int gk104_mmu_new(struct nvkm_device
*, int, struct nvkm_mmu
**);
80 int gk20a_mmu_new(struct nvkm_device
*, int, struct nvkm_mmu
**);
81 int gm200_mmu_new(struct nvkm_device
*, int, struct nvkm_mmu
**);
82 int gm20b_mmu_new(struct nvkm_device
*, int, struct nvkm_mmu
**);
83 int gp100_mmu_new(struct nvkm_device
*, int, struct nvkm_mmu
**);
84 int gp10b_mmu_new(struct nvkm_device
*, int, struct nvkm_mmu
**);