hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/gpu/drm/nouveau/nouveau_ttm.h
....@@ -1,4 +1,4 @@
1
-/* SPDX-License-Identifier: GPL-2.0 */
1
+/* SPDX-License-Identifier: MIT */
22 #ifndef __NOUVEAU_TTM_H__
33 #define __NOUVEAU_TTM_H__
44
....@@ -8,9 +8,9 @@
88 return container_of(bd, struct nouveau_drm, ttm.bdev);
99 }
1010
11
-extern const struct ttm_mem_type_manager_func nouveau_vram_manager;
12
-extern const struct ttm_mem_type_manager_func nouveau_gart_manager;
13
-extern const struct ttm_mem_type_manager_func nv04_gart_manager;
11
+extern const struct ttm_resource_manager_func nouveau_vram_manager;
12
+extern const struct ttm_resource_manager_func nouveau_gart_manager;
13
+extern const struct ttm_resource_manager_func nv04_gart_manager;
1414
1515 struct ttm_tt *nouveau_sgdma_create_ttm(struct ttm_buffer_object *bo,
1616 u32 page_flags);
....@@ -22,4 +22,7 @@
2222 int nouveau_ttm_global_init(struct nouveau_drm *);
2323 void nouveau_ttm_global_release(struct nouveau_drm *);
2424
25
+int nouveau_sgdma_bind(struct ttm_bo_device *bdev, struct ttm_tt *ttm, struct ttm_resource *reg);
26
+void nouveau_sgdma_unbind(struct ttm_bo_device *bdev, struct ttm_tt *ttm);
27
+void nouveau_sgdma_destroy(struct ttm_bo_device *bdev, struct ttm_tt *ttm);
2528 #endif