aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio-serial.h
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2011-02-03 11:22:32 +0530
committerAmit Shah <amit.shah@redhat.com>2011-03-21 16:55:11 +0530
commit6b331efb733a0f913ddc0b7762a1307dec304061 (patch)
treeb029146a089ffdd7cb5c8241dd592172c4ce4354 /hw/virtio-serial.h
parente0efb993b817564ef84e462ac1fe35f89b57ad7b (diff)
downloadqemu-6b331efb733a0f913ddc0b7762a1307dec304061.zip
qemu-6b331efb733a0f913ddc0b7762a1307dec304061.tar.gz
qemu-6b331efb733a0f913ddc0b7762a1307dec304061.tar.bz2
virtio-serial: Use a struct to pass config information from proxy
Instead of using a single variable to pass to the virtio_serial_init function, use a struct so that expanding the number of variables to be passed on later is easier. Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'hw/virtio-serial.h')
-rw-r--r--hw/virtio-serial.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/virtio-serial.h b/hw/virtio-serial.h
index 8cb9fbe..5eb948e 100644
--- a/hw/virtio-serial.h
+++ b/hw/virtio-serial.h
@@ -45,6 +45,11 @@ struct virtio_console_control {
uint16_t value; /* Extra information for the key */
};
+struct virtio_serial_conf {
+ /* Max. number of ports we can have for a virtio-serial device */
+ uint32_t max_virtserial_ports;
+};
+
/* Some events for the internal messages (control packets) */
#define VIRTIO_CONSOLE_DEVICE_READY 0
#define VIRTIO_CONSOLE_PORT_ADD 1