diff options
author | Dave Airlie <airlied@redhat.com> | 2020-09-08 06:46:21 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2020-09-09 08:30:01 +1000 |
commit | 738edc0adb388f75aec67011f6e8f225b9f29783 (patch) | |
tree | bc4116edcfdcff5abf9ec13179fe22874976b415 /include | |
parent | dc2caa305a6fc5db2b9c1b24ecef8038cd957d07 (diff) | |
download | lwn-738edc0adb388f75aec67011f6e8f225b9f29783.tar.gz lwn-738edc0adb388f75aec67011f6e8f225b9f29783.zip |
drm/ttm/agp: export bind/unbind/destroy for drivers to use.
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200907204630.1406528-5-airlied@gmail.com
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/ttm/ttm_tt.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_tt.h b/include/drm/ttm/ttm_tt.h index 6bda88f8da46..5a34f1640865 100644 --- a/include/drm/ttm/ttm_tt.h +++ b/include/drm/ttm/ttm_tt.h @@ -266,6 +266,12 @@ struct ttm_tt *ttm_agp_tt_create(struct ttm_buffer_object *bo, uint32_t page_flags); int ttm_agp_tt_populate(struct ttm_bo_device *bdev, struct ttm_tt *ttm, struct ttm_operation_ctx *ctx); void ttm_agp_tt_unpopulate(struct ttm_bo_device *bdev, struct ttm_tt *ttm); +int ttm_agp_bind(struct ttm_bo_device *bdev, + struct ttm_tt *ttm, struct ttm_resource *bo_mem); +void ttm_agp_unbind(struct ttm_bo_device *bdev, + struct ttm_tt *ttm); +void ttm_agp_destroy(struct ttm_bo_device *bdev, + struct ttm_tt *ttm); #endif #endif |