diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/virtio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/virtio.h b/include/linux/virtio.h index f70411eb9d27..2bbf62697671 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h | |||
| @@ -132,6 +132,7 @@ int virtio_device_restore(struct virtio_device *dev); | |||
| 132 | * @feature_table_size: number of entries in the feature table array. | 132 | * @feature_table_size: number of entries in the feature table array. |
| 133 | * @feature_table_legacy: same as feature_table but when working in legacy mode. | 133 | * @feature_table_legacy: same as feature_table but when working in legacy mode. |
| 134 | * @feature_table_size_legacy: number of entries in feature table legacy array. | 134 | * @feature_table_size_legacy: number of entries in feature table legacy array. |
| 135 | * @legacy_only: driver does not support virtio 1.0. | ||
| 135 | * @probe: the function to call when a device is found. Returns 0 or -errno. | 136 | * @probe: the function to call when a device is found. Returns 0 or -errno. |
| 136 | * @remove: the function to call when a device is removed. | 137 | * @remove: the function to call when a device is removed. |
| 137 | * @config_changed: optional function to call when the device configuration | 138 | * @config_changed: optional function to call when the device configuration |
| @@ -144,6 +145,7 @@ struct virtio_driver { | |||
| 144 | unsigned int feature_table_size; | 145 | unsigned int feature_table_size; |
| 145 | const unsigned int *feature_table_legacy; | 146 | const unsigned int *feature_table_legacy; |
| 146 | unsigned int feature_table_size_legacy; | 147 | unsigned int feature_table_size_legacy; |
| 148 | bool legacy_only; | ||
| 147 | int (*probe)(struct virtio_device *dev); | 149 | int (*probe)(struct virtio_device *dev); |
| 148 | void (*scan)(struct virtio_device *dev); | 150 | void (*scan)(struct virtio_device *dev); |
| 149 | void (*remove)(struct virtio_device *dev); | 151 | void (*remove)(struct virtio_device *dev); |
