summaryrefslogtreecommitdiff
path: root/vl.h
diff options
context:
space:
mode:
Diffstat (limited to 'vl.h')
-rw-r--r--vl.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/vl.h b/vl.h
index 485ccc020c..1f1e9e4242 100644
--- a/vl.h
+++ b/vl.h
@@ -200,8 +200,6 @@ void qemu_chr_add_read_handler(CharDriverState *s,
IOReadHandler *fd_read, void *opaque);
void qemu_chr_add_event_handler(CharDriverState *s, IOEventHandler *chr_event);
-CharDriverState *serial_hd;
-
/* consoles */
typedef struct DisplayState DisplayState;
@@ -214,6 +212,12 @@ int is_active_console(TextConsole *s);
CharDriverState *text_console_init(DisplayState *ds);
void console_select(unsigned int index);
+/* serial ports */
+
+#define MAX_SERIAL_PORTS 4
+
+extern CharDriverState *serial_hds[MAX_SERIAL_PORTS];
+
/* network redirectors support */
#define MAX_NICS 8