forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/gpu/drm/nouveau/nouveau_mem.h
....@@ -7,7 +7,7 @@
77 #include <nvif/vmm.h>
88
99 static inline struct nouveau_mem *
10
-nouveau_mem(struct ttm_mem_reg *reg)
10
+nouveau_mem(struct ttm_resource *reg)
1111 {
1212 return reg->mm_node;
1313 }
....@@ -21,10 +21,10 @@
2121 };
2222
2323 int nouveau_mem_new(struct nouveau_cli *, u8 kind, u8 comp,
24
- struct ttm_mem_reg *);
25
-void nouveau_mem_del(struct ttm_mem_reg *);
26
-int nouveau_mem_vram(struct ttm_mem_reg *, bool contig, u8 page);
27
-int nouveau_mem_host(struct ttm_mem_reg *, struct ttm_dma_tt *);
24
+ struct ttm_resource *);
25
+void nouveau_mem_del(struct ttm_resource *);
26
+int nouveau_mem_vram(struct ttm_resource *, bool contig, u8 page);
27
+int nouveau_mem_host(struct ttm_resource *, struct ttm_dma_tt *);
2828 void nouveau_mem_fini(struct nouveau_mem *);
2929 int nouveau_mem_map(struct nouveau_mem *, struct nvif_vmm *, struct nvif_vma *);
3030 #endif