aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov2015-08-07 11:09:35 -0500
committerEmil Velikov2015-08-13 11:43:36 -0500
commitbddf4df4a17df30624f27c5e85f859a1b09f8fc0 (patch)
treeb9854882fc81b841b457e8ffb5b4cadcb6b5059a /amdgpu/amdgpu_internal.h
parentb47181897770520bb5afcebc2c2c3ffaf7729a36 (diff)
downloadexternal-libdrm-bddf4df4a17df30624f27c5e85f859a1b09f8fc0.tar.gz
external-libdrm-bddf4df4a17df30624f27c5e85f859a1b09f8fc0.tar.xz
external-libdrm-bddf4df4a17df30624f27c5e85f859a1b09f8fc0.zip
amdgpu: hide the final internal functions from global namespace
Thus the only symbols that we export are the ones officially provided by the API. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian K├Ânig <christian.koenig@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Diffstat (limited to 'amdgpu/amdgpu_internal.h')
-rw-r--r--amdgpu/amdgpu_internal.h24
1 files changed, 3 insertions, 21 deletions
diff --git a/amdgpu/amdgpu_internal.h b/amdgpu/amdgpu_internal.h
index 7f86da93..4b07aff8 100644
--- a/amdgpu/amdgpu_internal.h
+++ b/amdgpu/amdgpu_internal.h
@@ -119,9 +119,7 @@ struct amdgpu_context {
119 * Functions. 119 * Functions.
120 */ 120 */
121 121
122void amdgpu_device_free_internal(amdgpu_device_handle dev); 122drm_private void amdgpu_bo_free_internal(amdgpu_bo_handle bo);
123
124void amdgpu_bo_free_internal(amdgpu_bo_handle bo);
125 123
126drm_private struct amdgpu_bo_va_mgr* 124drm_private struct amdgpu_bo_va_mgr*
127amdgpu_vamgr_get_global(struct amdgpu_device *dev); 125amdgpu_vamgr_get_global(struct amdgpu_device *dev);
@@ -137,9 +135,9 @@ amdgpu_vamgr_find_va(struct amdgpu_bo_va_mgr *mgr, uint64_t size,
137drm_private void 135drm_private void
138amdgpu_vamgr_free_va(struct amdgpu_bo_va_mgr *mgr, uint64_t va, uint64_t size); 136amdgpu_vamgr_free_va(struct amdgpu_bo_va_mgr *mgr, uint64_t va, uint64_t size);
139 137
140int amdgpu_query_gpu_info_init(amdgpu_device_handle dev); 138drm_private int amdgpu_query_gpu_info_init(amdgpu_device_handle dev);
141 139
142uint64_t amdgpu_cs_calculate_timeout(uint64_t timeout); 140drm_private uint64_t amdgpu_cs_calculate_timeout(uint64_t timeout);
143 141
144/** 142/**
145 * Inline functions. 143 * Inline functions.
@@ -189,20 +187,4 @@ static inline void amdgpu_bo_reference(struct amdgpu_bo **dst,
189 *dst = src; 187 *dst = src;
190} 188}
191 189
192/**
193 * Assignment between two amdgpu_device pointers with reference counting.
194 *
195 * Usage:
196 * struct amdgpu_device *dst = ... , *src = ...;
197 *
198 * dst = src;
199 * // No reference counting. Only use this when you need to move
200 * // a reference from one pointer to another.
201 *
202 * amdgpu_device_reference(&dst, src);
203 * // Reference counters are updated. dst is decremented and src is
204 * // incremented. dst is freed if its reference counter is 0.
205 */
206void amdgpu_device_reference(struct amdgpu_device **dst,
207 struct amdgpu_device *src);
208#endif 190#endif