diff options
author | KONRAD Frederic <fred.konrad@greensocs.com> | 2013-04-24 10:21:17 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-24 11:50:20 -0500 |
commit | 5d448f9dac460d0adf7d7549a9c324f50f1dd1e2 (patch) | |
tree | 1db4008ec0cfc9c29193ecd21a6277d285a52433 /include/hw | |
parent | 611aa333b472c3fee5d4aed3b7e007621797e895 (diff) | |
download | qemu-5d448f9dac460d0adf7d7549a9c324f50f1dd1e2.tar.gz qemu-5d448f9dac460d0adf7d7549a9c324f50f1dd1e2.tar.bz2 qemu-5d448f9dac460d0adf7d7549a9c324f50f1dd1e2.zip |
virtio-bus: add new functions.
This add two functions:
* virtio_bus_set_vdev_config.
* virtio_bus_set_vdev_feature.
Needed by virtio-ccw.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Message-id: 1366791683-5350-2-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/virtio/virtio-bus.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio-bus.h b/include/hw/virtio/virtio-bus.h index 311e8c78bd..ec82238373 100644 --- a/include/hw/virtio/virtio-bus.h +++ b/include/hw/virtio/virtio-bus.h @@ -86,9 +86,14 @@ 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); +/* Set the features of the plugged device. */ +void virtio_bus_set_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); +/* Set config of the plugged device. */ +void virtio_bus_set_vdev_config(VirtioBusState *bus, uint8_t *config); #endif /* VIRTIO_BUS_H */ |