diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/vfio.h | 2 | ||||
| -rw-r--r-- | include/uapi/linux/vfio.h | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/vfio.h b/include/linux/vfio.h index 24579a0312a0..81022a52bc34 100644 --- a/include/linux/vfio.h +++ b/include/linux/vfio.h | |||
| @@ -96,5 +96,7 @@ extern void vfio_unregister_iommu_driver( | |||
| 96 | extern struct vfio_group *vfio_group_get_external_user(struct file *filep); | 96 | extern struct vfio_group *vfio_group_get_external_user(struct file *filep); |
| 97 | extern void vfio_group_put_external_user(struct vfio_group *group); | 97 | extern void vfio_group_put_external_user(struct vfio_group *group); |
| 98 | extern int vfio_external_user_iommu_id(struct vfio_group *group); | 98 | extern int vfio_external_user_iommu_id(struct vfio_group *group); |
| 99 | extern long vfio_external_check_extension(struct vfio_group *group, | ||
| 100 | unsigned long arg); | ||
| 99 | 101 | ||
| 100 | #endif /* VFIO_H */ | 102 | #endif /* VFIO_H */ |
diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h index 0fd47f5bc146..cb9023d4f063 100644 --- a/include/uapi/linux/vfio.h +++ b/include/uapi/linux/vfio.h | |||
| @@ -23,6 +23,12 @@ | |||
| 23 | 23 | ||
| 24 | #define VFIO_TYPE1_IOMMU 1 | 24 | #define VFIO_TYPE1_IOMMU 1 |
| 25 | #define VFIO_SPAPR_TCE_IOMMU 2 | 25 | #define VFIO_SPAPR_TCE_IOMMU 2 |
| 26 | #define VFIO_TYPE1v2_IOMMU 3 | ||
| 27 | /* | ||
| 28 | * IOMMU enforces DMA cache coherence (ex. PCIe NoSnoop stripping). This | ||
| 29 | * capability is subject to change as groups are added or removed. | ||
| 30 | */ | ||
| 31 | #define VFIO_DMA_CC_IOMMU 4 | ||
| 26 | 32 | ||
| 27 | /* | 33 | /* |
| 28 | * The IOCTL interface is designed for extensibility by embedding the | 34 | * The IOCTL interface is designed for extensibility by embedding the |
