From 6b331efb733a0f913ddc0b7762a1307dec304061 Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Thu, 3 Feb 2011 11:22:32 +0530 Subject: 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 --- hw/virtio-serial.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hw/virtio-serial.h') 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 -- cgit v1.1