]> Git Repo - qemu.git/blobdiff - hw/char/sclpconsole.c
ide: bdrv_attach_dev() for empty CD-ROM
[qemu.git] / hw / char / sclpconsole.c
index 27a60343d89fb16ef5d2252065ac236332451d62..d0265dfa7ad94d2b142106a385dbe95c36a4e1a2 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "hw/s390x/sclp.h"
 #include "hw/s390x/event-facility.h"
-#include "sysemu/char.h"
+#include "chardev/char-fe.h"
 
 typedef struct ASCIIConsoleData {
     EventBufferHeader ebh;
@@ -163,7 +163,7 @@ static ssize_t write_console_data(SCLPEvent *event, const uint8_t *buf,
 {
     SCLPConsole *scon = SCLP_CONSOLE(event);
 
-    if (!qemu_chr_fe_get_driver(&scon->chr)) {
+    if (!qemu_chr_fe_backend_connected(&scon->chr)) {
         /* If there's no backend, we can just say we consumed all data. */
         return len;
     }
@@ -228,7 +228,7 @@ static int console_init(SCLPEvent *event)
     }
     console_available = true;
     qemu_chr_fe_set_handlers(&scon->chr, chr_can_read,
-                             chr_read, NULL, scon, NULL);
+                             chr_read, NULL, NULL, scon, NULL, true);
 
     return 0;
 }
This page took 0.023678 seconds and 4 git commands to generate.