aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio-bus.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/virtio-bus.h')
-rw-r--r--hw/virtio-bus.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/virtio-bus.h b/hw/virtio-bus.h
index f3788970b2..7584a0e6ae 100644
--- a/hw/virtio-bus.h
+++ b/hw/virtio-bus.h
@@ -83,5 +83,12 @@ void virtio_bus_destroy_device(VirtioBusState *bus);
uint16_t virtio_bus_get_vdev_id(VirtioBusState *bus);
/* Get the config_len field of the plugged device. */
size_t virtio_bus_get_vdev_config_len(VirtioBusState *bus);
+/* Get the features of the plugged device. */
+uint32_t virtio_bus_get_vdev_features(VirtioBusState *bus,
+ uint32_t requested_features);
+/* Get bad features of the plugged device. */
+uint32_t virtio_bus_get_vdev_bad_features(VirtioBusState *bus);
+/* Get config of the plugged device. */
+void virtio_bus_get_vdev_config(VirtioBusState *bus, uint8_t *config);
#endif /* VIRTIO_BUS_H */