diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-08 22:30:36 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-08 22:30:36 +0000 |
commit | f8d179e33d71ddac580fb41f2b452099e7805d67 (patch) | |
tree | 1783e4c4c05981d722282fb9a82abd0d3b7f4d94 /vl.h | |
parent | 3f87bf69590c6b3aead85c4ebb8cc7c9c81ccda5 (diff) |
use host serial port
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1609 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.h')
-rw-r--r-- | vl.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -207,6 +207,10 @@ typedef struct CharDriverState { void (*chr_add_read_handler)(struct CharDriverState *s, IOCanRWHandler *fd_can_read, IOReadHandler *fd_read, void *opaque); + void (*chr_set_serial_parameters)(struct CharDriverState *s, + int speed, int parity, + int data_bits, int stop_bits); + void (*chr_set_serial_break)(struct CharDriverState *s, int enable); IOEventHandler *chr_event; void (*chr_send_event)(struct CharDriverState *chr, int event); void *opaque; @@ -219,7 +223,11 @@ void qemu_chr_add_read_handler(CharDriverState *s, IOCanRWHandler *fd_can_read, IOReadHandler *fd_read, void *opaque); void qemu_chr_add_event_handler(CharDriverState *s, IOEventHandler *chr_event); - +void qemu_chr_set_serial_parameters(CharDriverState *s, + int speed, int parity, + int data_bits, int stop_bits); +void qemu_chr_set_serial_break(CharDriverState *s, int enable); + /* consoles */ typedef struct DisplayState DisplayState; |