X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Flinux%2Fvfio.h;h=610a86a892b8896363ece505cdbe686096505cfc;hb=0d77a123ffb5d11b97895afe8430191a273b23d6;hp=ddb44097538245f17e882efff635143ada49e089;hpb=5d0fe6362e7d416002ea4ee61bfe3ae6f505e9cc;p=firefly-linux-kernel-4.4.55.git diff --git a/include/linux/vfio.h b/include/linux/vfio.h index ddb440975382..610a86a892b8 100644 --- a/include/linux/vfio.h +++ b/include/linux/vfio.h @@ -44,6 +44,9 @@ struct vfio_device_ops { void (*request)(void *device_data, unsigned int count); }; +extern struct iommu_group *vfio_iommu_group_get(struct device *dev); +extern void vfio_iommu_group_put(struct iommu_group *group, struct device *dev); + extern int vfio_add_group_dev(struct device *dev, const struct vfio_device_ops *ops, void *device_data);