projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0cc767
)
include/hw/virtio: add kerneldoc for virtio_init
author
Alex Bennée
<alex.bennee@linaro.org>
Mon, 10 Jul 2023 15:35:07 +0000
(16:35 +0100)
committer
Michael S. Tsirkin
<mst@redhat.com>
Mon, 10 Jul 2023 22:59:32 +0000
(18:59 -0400)
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <
20230710153522
.
3469097
-6-alex.bennee@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/hw/virtio/virtio.h
patch
|
blob
|
history
diff --git
a/include/hw/virtio/virtio.h
b/include/hw/virtio/virtio.h
index 0671989383646f4469605cd548e954ec9434bdef..631490bda427afa65f774a0fe2cc5e3e3f0dfe57 100644
(file)
--- a/
include/hw/virtio/virtio.h
+++ b/
include/hw/virtio/virtio.h
@@
-219,6
+219,12
@@
struct VirtioDeviceClass {
void virtio_instance_init_common(Object *proxy_obj, void *data,
size_t vdev_size, const char *vdev_name);
+/**
+ * virtio_init() - initialise the common VirtIODevice structure
+ * @vdev: pointer to VirtIODevice
+ * @device_id: the VirtIO device ID (see virtio_ids.h)
+ * @config_size: size of the config space
+ */
void virtio_init(VirtIODevice *vdev, uint16_t device_id, size_t config_size);
void virtio_cleanup(VirtIODevice *vdev);