diff options
| author | Jason Gunthorpe <jgg@nvidia.com> | 2024-02-07 16:49:24 -0400 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-03-13 10:41:39 +0000 |
| commit | b44f1eafe16bf261642c5390ba0e2adc4cedd5ef (patch) | |
| tree | 046c80c1051d9c304497076400da3cb4949c9ff8 /sys/linux/dev_iommu.txt | |
| parent | 400732e21bdb27e4c3e1c2cf933c4f57fab7d4f8 (diff) | |
sys/linux: add IOMMU_GET_HW_INFO
Diffstat (limited to 'sys/linux/dev_iommu.txt')
| -rw-r--r-- | sys/linux/dev_iommu.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/linux/dev_iommu.txt b/sys/linux/dev_iommu.txt index 482d81053..50498836c 100644 --- a/sys/linux/dev_iommu.txt +++ b/sys/linux/dev_iommu.txt @@ -35,6 +35,8 @@ ioctl$IOMMU_VFIO_IOAS$CLEAR(fd fd_iommufd, cmd const[IOMMU_VFIO_IOAS], arg ptr[i ioctl$IOMMU_HWPT_ALLOC$NONE(fd fd_iommufd, cmd const[IOMMU_HWPT_ALLOC], arg ptr[in, iommu_hwpt_alloc$IOMMU_HWPT_DATA_NONE]) ioctl$IOMMU_HWPT_ALLOC$TEST(fd fd_iommufd, cmd const[IOMMU_HWPT_ALLOC], arg ptr[in, iommu_hwpt_alloc$IOMMU_HWPT_DATA_SELFTEST]) +ioctl$IOMMU_GET_HW_INFO(fd fd_iommufd, cmd const[IOMMU_GET_HW_INFO], arg ptr[in, iommu_hw_info]) + # VFIO compatibility ioctls # This shares a few structs with dev_vfio.txt ioctl$IOMMU_VFIO_GET_API_VERSION(fd fd_iommufd, cmd const[VFIO_GET_API_VERSION]) @@ -193,6 +195,17 @@ iommu_hwpt_selftest { type iommu_hwpt_alloc$IOMMU_HWPT_DATA_SELFTEST iommu_hwpt_alloc[IOMMU_HWPT_DATA_SELFTEST, iommu_hwpt_selftest] +iommu_hw_info { + size len[parent, int32] + flags const[0x0, int32] + dev_id device_handle + data_len len[data_uptr, int32] + data_uptr ptr64[out, array[int8]] + out_data_type int32 (out) + __reserved const[0x0, int32] + out_capabilities int64 (out) +} + iommu_iova_range { start int64 last int64 |
