aboutsummaryrefslogtreecommitdiff
path: root/vl.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-08-24 21:13:40 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-08-24 21:13:40 +0000
commit8d11df9e5aa58497e27e3481cca119809c76afc6 (patch)
tree0e323c75b10f8deee83950b708cb42cb989ca6e2 /vl.h
parent05d5818c5c9a5f90d7bc069ed1e8c9d8d77381d0 (diff)
multiple serial port support - terminal init fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1048 c046a42c-6fe2-441c-8c8c-71466251a162
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