diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-04-14 07:46:05 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-04-14 07:46:05 +0000 |
commit | 2af36c275c17ede3d2fa17cddc8e42509d4d801d (patch) | |
tree | d9f491eb3a24d40007654c23b1e88e4d17d4c476 /lib/libdrm/amdgpu/amdgpu.h | |
parent | fd47fc1cc502f21064adbf113a77ed54c2b346a9 (diff) |
Import libdrm 2.4.79
Diffstat (limited to 'lib/libdrm/amdgpu/amdgpu.h')
-rw-r--r-- | lib/libdrm/amdgpu/amdgpu.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/lib/libdrm/amdgpu/amdgpu.h b/lib/libdrm/amdgpu/amdgpu.h index 7b26a04c9..55884b247 100644 --- a/lib/libdrm/amdgpu/amdgpu.h +++ b/lib/libdrm/amdgpu/amdgpu.h @@ -1059,6 +1059,24 @@ int amdgpu_query_gds_info(amdgpu_device_handle dev, struct amdgpu_gds_resource_info *gds_info); /** + * Query information about sensor. + * + * The return size is query-specific and depends on the "sensor_type" + * parameter. No more than "size" bytes is returned. + * + * \param dev - \c [in] Device handle. See #amdgpu_device_initialize() + * \param sensor_type - \c [in] AMDGPU_INFO_SENSOR_* + * \param size - \c [in] Size of the returned value. + * \param value - \c [out] Pointer to the return value. + * + * \return 0 on success\n + * <0 - Negative POSIX Error code + * +*/ +int amdgpu_query_sensor_info(amdgpu_device_handle dev, unsigned sensor_type, + unsigned size, void *value); + +/** * Read a set of consecutive memory-mapped registers. * Not all registers are allowed to be read by userspace. * @@ -1186,6 +1204,34 @@ int amdgpu_bo_va_op(amdgpu_bo_handle bo, uint32_t ops); /** + * VA mapping/unmapping for a buffer object or PRT region. + * + * This is not a simple drop-in extension for amdgpu_bo_va_op; instead, all + * parameters are treated "raw", i.e. size is not automatically aligned, and + * all flags must be specified explicitly. + * + * \param dev - \c [in] device handle + * \param bo - \c [in] BO handle (may be NULL) + * \param offset - \c [in] Start offset to map + * \param size - \c [in] Size to map + * \param addr - \c [in] Start virtual address. + * \param flags - \c [in] Supported flags for mapping/unmapping + * \param ops - \c [in] AMDGPU_VA_OP_MAP or AMDGPU_VA_OP_UNMAP + * + * \return 0 on success\n + * <0 - Negative POSIX Error code + * +*/ + +int amdgpu_bo_va_op_raw(amdgpu_device_handle dev, + amdgpu_bo_handle bo, + uint64_t offset, + uint64_t size, + uint64_t addr, + uint64_t flags, + uint32_t ops); + +/** * create semaphore * * \param sem - \c [out] semaphore handle |