diff options
author | Eric Auger <eric.auger@linaro.org> | 2015-06-15 12:09:43 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2015-06-22 18:35:22 +0300 |
commit | 813ae66008aeb97a48f20efefeb962179b642dbe (patch) | |
tree | abc7911b21ac87c15f8614d5618e680456b0309c /drivers/vfio/platform/vfio_platform_private.h | |
parent | 9f85d8f9fa342b22f01b8b4416c850bac00c2b4a (diff) | |
download | linux-813ae66008aeb97a48f20efefeb962179b642dbe.tar.xz |
VFIO: platform: add reset callback
A new reset callback is introduced. If this callback is populated,
the reset is invoked on device first open/last close or upon userspace
ioctl. The modality is exposed on VFIO_DEVICE_GET_INFO.
Signed-off-by: Eric Auger <eric.auger@linaro.org>
Acked-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Tested-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/platform/vfio_platform_private.h')
-rw-r--r-- | drivers/vfio/platform/vfio_platform_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vfio/platform/vfio_platform_private.h b/drivers/vfio/platform/vfio_platform_private.h index 9e37b9fda483..1c9b3d59543c 100644 --- a/drivers/vfio/platform/vfio_platform_private.h +++ b/drivers/vfio/platform/vfio_platform_private.h @@ -67,6 +67,7 @@ struct vfio_platform_device { struct resource* (*get_resource)(struct vfio_platform_device *vdev, int i); int (*get_irq)(struct vfio_platform_device *vdev, int i); + int (*reset)(struct vfio_platform_device *vdev); }; struct vfio_platform_reset_combo { |