diff options
author | Chunming Zhou <david1.zhou@amd.com> | 2019-01-10 04:56:39 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-01-25 16:15:34 -0500 |
commit | ae6d343541bb75958e9535d056adaf4ff6a66d6a (patch) | |
tree | 686553f24f4646eba7c51ba82d524dc97d4feb5c /include/drm/ttm | |
parent | 466bcb75b0791ba301817cdadeed20398f2224fe (diff) |
drm/ttm: add lru notify to bo driver v2
allow driver do somethings when lru changed.
v2:
address Michel's comments.
Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/drm/ttm')
-rw-r--r-- | include/drm/ttm/ttm_bo_driver.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index 1021106438b2..15829b24277c 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h | |||
@@ -381,6 +381,15 @@ struct ttm_bo_driver { | |||
381 | */ | 381 | */ |
382 | int (*access_memory)(struct ttm_buffer_object *bo, unsigned long offset, | 382 | int (*access_memory)(struct ttm_buffer_object *bo, unsigned long offset, |
383 | void *buf, int len, int write); | 383 | void *buf, int len, int write); |
384 | |||
385 | /** | ||
386 | * struct ttm_bo_driver member del_from_lru_notify | ||
387 | * | ||
388 | * @bo: the buffer object deleted from lru | ||
389 | * | ||
390 | * notify driver that a BO was deleted from LRU. | ||
391 | */ | ||
392 | void (*del_from_lru_notify)(struct ttm_buffer_object *bo); | ||
384 | }; | 393 | }; |
385 | 394 | ||
386 | /** | 395 | /** |