Driver to bind to Linux platform devices, and callbacks to discover their resources to be used by the main VFIO PLATFORM code.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -160,6 +160,7 @@ struct vfio_device_info { · 159 unmodified lines | ||
| 160 | 160 | __u32 flags; |
| 161 | 161 | #define VFIO_DEVICE_FLAGS_RESET (1 << 0) /* Device supports reset */ |
| 162 | 162 | #define VFIO_DEVICE_FLAGS_PCI (1 << 1) /* vfio-pci device */ |
| 163 | +#define VFIO_DEVICE_FLAGS_PLATFORM (1 << 2) /* vfio-platform device */ | |
| 163 | 164 | __u32 num_regions; /* Max region index + 1 */ |
| 164 | 165 | __u32 num_irqs; /* Max IRQ index + 1 */ |
| 165 | 166 | }; |