summaryrefslogtreecommitdiff
path: root/qapi-schema.json
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-12-19 13:50:29 +0100
committerGerd Hoffmann <kraxel@redhat.com>2013-01-16 06:58:54 +0100
commitd59044ef74d577797d087bc6ffb156cec89ed39a (patch)
tree84146f7f96626c2337e9fb1a367ca8306a871d29 /qapi-schema.json
parentffbdbe59acc5f175d6c05a5d90f0b7c865fafd5b (diff)
downloadqemu-d59044ef74d577797d087bc6ffb156cec89ed39a.tar.gz
qemu-d59044ef74d577797d087bc6ffb156cec89ed39a.tar.bz2
qemu-d59044ef74d577797d087bc6ffb156cec89ed39a.zip
chardev: add serial chardev support to chardev-add (qmp)
Similar to file, except that no separate in/out files are supported because it's pointless for direct device access. Also the special tty ioctl hooks (pass through linespeed settings etc) are activated on Unix. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r--qapi-schema.json17
1 files changed, 17 insertions, 0 deletions
diff --git a/qapi-schema.json b/qapi-schema.json
index c70c11840a..bbbbd33d75 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -3032,6 +3032,22 @@
'out' : 'str' } }
##
+# @ChardevPort:
+#
+# Configuration info for device chardevs.
+#
+# @device: The name of the special file for the device,
+# i.e. /dev/ttyS0 on Unix or COM1: on Windows
+# @type: What kind of device this is.
+#
+# Since: 1.4
+##
+{ 'enum': 'ChardevPortKind', 'data': [ 'serial' ] }
+
+{ 'type': 'ChardevPort', 'data': { 'device' : 'str',
+ 'type' : 'ChardevPortKind'} }
+
+##
# @ChardevBackend:
#
# Configuration info for the new chardev backend.
@@ -3041,6 +3057,7 @@
{ 'type': 'ChardevDummy', 'data': { } }
{ 'union': 'ChardevBackend', 'data': { 'file' : 'ChardevFile',
+ 'port' : 'ChardevPort',
'null' : 'ChardevDummy' } }
##