diff options
author | Andrey Grodzovsky | 2017-10-27 10:09:10 -0500 |
---|---|---|
committer | Christian König | 2017-10-27 11:25:53 -0500 |
commit | 9b38ea82fc30ccbf38ebc0c55412b27e5a5afd7b (patch) | |
tree | 19cff4ae90c65fbd001d23d756f05ee85eade6f5 /amdgpu/amdgpu.h | |
parent | 61ff9779e37179ed5106c0e2452e16500127fb9e (diff) | |
download | external-libdrm-9b38ea82fc30ccbf38ebc0c55412b27e5a5afd7b.tar.gz external-libdrm-9b38ea82fc30ccbf38ebc0c55412b27e5a5afd7b.tar.xz external-libdrm-9b38ea82fc30ccbf38ebc0c55412b27e5a5afd7b.zip |
amdgpu: Add wrappers for AMDGPU_VM IOCTL.
v2:
Rename wrappers to match the IOCTL naming, fix
identation and fix make check error.
Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'amdgpu/amdgpu.h')
-rw-r--r-- | amdgpu/amdgpu.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/amdgpu/amdgpu.h b/amdgpu/amdgpu.h index ecc975f1..597fc2ba 100644 --- a/amdgpu/amdgpu.h +++ b/amdgpu/amdgpu.h | |||
@@ -1489,6 +1489,24 @@ void amdgpu_cs_chunk_fence_to_dep(struct amdgpu_cs_fence *fence, | |||
1489 | void amdgpu_cs_chunk_fence_info_to_data(struct amdgpu_cs_fence_info *fence_info, | 1489 | void amdgpu_cs_chunk_fence_info_to_data(struct amdgpu_cs_fence_info *fence_info, |
1490 | struct drm_amdgpu_cs_chunk_data *data); | 1490 | struct drm_amdgpu_cs_chunk_data *data); |
1491 | 1491 | ||
1492 | /** | ||
1493 | * Reserve VMID | ||
1494 | * \param context - \c [in] GPU Context | ||
1495 | * \param flags - \c [in] TBD | ||
1496 | * | ||
1497 | * \return 0 on success otherwise POSIX Error code | ||
1498 | */ | ||
1499 | int amdgpu_vm_reserve_vmid(amdgpu_context_handle context, uint32_t flags); | ||
1500 | |||
1501 | /** | ||
1502 | * Free reserved VMID | ||
1503 | * \param context - \c [in] GPU Context | ||
1504 | * \param flags - \c [in] TBD | ||
1505 | * | ||
1506 | * \return 0 on success otherwise POSIX Error code | ||
1507 | */ | ||
1508 | int amdgpu_vm_unreserve_vmid(amdgpu_context_handle context, uint32_t flags); | ||
1509 | |||
1492 | #ifdef __cplusplus | 1510 | #ifdef __cplusplus |
1493 | } | 1511 | } |
1494 | #endif | 1512 | #endif |