diff options
author | Christian König <christian.koenig@amd.com> | 2018-07-30 07:27:09 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-31 17:58:18 -0400 |
commit | 4a8c21a1e9b3c35b21c5a4a4c16a009a193389bd (patch) | |
tree | 1b2d6994f5a5c9e39a54f0eb405181cbfdc63bd0 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | 8ab19ea619aeed8ca4a36c124e8edfd9b9491aba (diff) |
drm/amdgpu: move bo_list defines to amdgpu_bo_list.h
Further demangle amdgpu.h
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 4d4d6697fbce..447c4c7a36d6 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -74,6 +74,7 @@ | |||
74 | #include "amdgpu_gart.h" | 74 | #include "amdgpu_gart.h" |
75 | #include "amdgpu_debugfs.h" | 75 | #include "amdgpu_debugfs.h" |
76 | #include "amdgpu_job.h" | 76 | #include "amdgpu_job.h" |
77 | #include "amdgpu_bo_list.h" | ||
77 | 78 | ||
78 | /* | 79 | /* |
79 | * Modules parameters. | 80 | * Modules parameters. |
@@ -690,45 +691,6 @@ struct amdgpu_fpriv { | |||
690 | }; | 691 | }; |
691 | 692 | ||
692 | /* | 693 | /* |
693 | * residency list | ||
694 | */ | ||
695 | struct amdgpu_bo_list_entry { | ||
696 | struct amdgpu_bo *robj; | ||
697 | struct ttm_validate_buffer tv; | ||
698 | struct amdgpu_bo_va *bo_va; | ||
699 | uint32_t priority; | ||
700 | struct page **user_pages; | ||
701 | int user_invalidated; | ||
702 | }; | ||
703 | |||
704 | struct amdgpu_bo_list { | ||
705 | struct mutex lock; | ||
706 | struct rcu_head rhead; | ||
707 | struct kref refcount; | ||
708 | struct amdgpu_bo *gds_obj; | ||
709 | struct amdgpu_bo *gws_obj; | ||
710 | struct amdgpu_bo *oa_obj; | ||
711 | unsigned first_userptr; | ||
712 | unsigned num_entries; | ||
713 | struct amdgpu_bo_list_entry *array; | ||
714 | }; | ||
715 | |||
716 | int amdgpu_bo_list_get(struct amdgpu_fpriv *fpriv, int id, | ||
717 | struct amdgpu_bo_list **result); | ||
718 | void amdgpu_bo_list_get_list(struct amdgpu_bo_list *list, | ||
719 | struct list_head *validated); | ||
720 | void amdgpu_bo_list_put(struct amdgpu_bo_list *list); | ||
721 | void amdgpu_bo_list_free(struct amdgpu_bo_list *list); | ||
722 | int amdgpu_bo_create_list_entry_array(struct drm_amdgpu_bo_list_in *in, | ||
723 | struct drm_amdgpu_bo_list_entry **info_param); | ||
724 | |||
725 | int amdgpu_bo_list_create(struct amdgpu_device *adev, | ||
726 | struct drm_file *filp, | ||
727 | struct drm_amdgpu_bo_list_entry *info, | ||
728 | unsigned num_entries, | ||
729 | struct amdgpu_bo_list **list); | ||
730 | |||
731 | /* | ||
732 | * GFX stuff | 694 | * GFX stuff |
733 | */ | 695 | */ |
734 | #include "clearstate_defs.h" | 696 | #include "clearstate_defs.h" |