X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=kernel%2Finclude%2Fdrm%2Fttm%2Fttm_bo_api.h;fp=kernel%2Finclude%2Fdrm%2Fttm%2Fttm_bo_api.h;h=b7bfa513e6ed5cbd0ff615201391905b735d0c5f;hb=52f993b8e89487ec9ee15a7fb4979e0f09a45b27;hp=c768ddfbe53ccbbfeedd92809a9d4036adfc1fe2;hpb=c189ccac5702322ed843fe17057035b7222a59b6;p=kvmfornfv.git diff --git a/kernel/include/drm/ttm/ttm_bo_api.h b/kernel/include/drm/ttm/ttm_bo_api.h index c768ddfbe..b7bfa513e 100644 --- a/kernel/include/drm/ttm/ttm_bo_api.h +++ b/kernel/include/drm/ttm/ttm_bo_api.h @@ -316,6 +316,20 @@ ttm_bo_reference(struct ttm_buffer_object *bo) */ extern int ttm_bo_wait(struct ttm_buffer_object *bo, bool lazy, bool interruptible, bool no_wait); + +/** + * ttm_bo_mem_compat - Check if proposed placement is compatible with a bo + * + * @placement: Return immediately if buffer is busy. + * @mem: The struct ttm_mem_reg indicating the region where the bo resides + * @new_flags: Describes compatible placement found + * + * Returns true if the placement is compatible + */ +extern bool ttm_bo_mem_compat(struct ttm_placement *placement, + struct ttm_mem_reg *mem, + uint32_t *new_flags); + /** * ttm_bo_validate *