diff options
Diffstat (limited to 'include/linux/virtio.h')
| -rw-r--r-- | include/linux/virtio.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/virtio.h b/include/linux/virtio.h index d6359a5d5d4e..f70411eb9d27 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h | |||
| @@ -130,6 +130,8 @@ int virtio_device_restore(struct virtio_device *dev); | |||
| 130 | * @id_table: the ids serviced by this driver. | 130 | * @id_table: the ids serviced by this driver. |
| 131 | * @feature_table: an array of feature numbers supported by this driver. | 131 | * @feature_table: an array of feature numbers supported by this driver. |
| 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. | ||
| 134 | * @feature_table_size_legacy: number of entries in feature table legacy array. | ||
| 133 | * @probe: the function to call when a device is found. Returns 0 or -errno. | 135 | * @probe: the function to call when a device is found. Returns 0 or -errno. |
| 134 | * @remove: the function to call when a device is removed. | 136 | * @remove: the function to call when a device is removed. |
| 135 | * @config_changed: optional function to call when the device configuration | 137 | * @config_changed: optional function to call when the device configuration |
| @@ -140,6 +142,8 @@ struct virtio_driver { | |||
| 140 | const struct virtio_device_id *id_table; | 142 | const struct virtio_device_id *id_table; |
| 141 | const unsigned int *feature_table; | 143 | const unsigned int *feature_table; |
| 142 | unsigned int feature_table_size; | 144 | unsigned int feature_table_size; |
| 145 | const unsigned int *feature_table_legacy; | ||
| 146 | unsigned int feature_table_size_legacy; | ||
| 143 | int (*probe)(struct virtio_device *dev); | 147 | int (*probe)(struct virtio_device *dev); |
| 144 | void (*scan)(struct virtio_device *dev); | 148 | void (*scan)(struct virtio_device *dev); |
| 145 | void (*remove)(struct virtio_device *dev); | 149 | void (*remove)(struct virtio_device *dev); |
