* grub-core/term/serial.c: Add option for enabling/disabling

RTS/CTS flow control.
This commit is contained in:
Vladimir Serbinenko committed 2013-11-08 18:20:20 +01:00
1 parent 2dc1eb6cbf
commit 9f8acdaa5d
8 files changed
+48 -17

No files matched your search

+4
View File
@@ -68,6 +68,7 @@ struct grub_serial_config
grub_serial_parity_t parity;
grub_serial_stop_bits_t stop_bits;
grub_uint64_t base_clock;
int rtscts;
};
struct grub_serial_port
@@ -159,8 +160,11 @@ grub_serial_config_defaults (struct grub_serial_port *port)
{
#ifdef GRUB_MACHINE_MIPS_LOONGSON
.speed = 115200,
/* On Loongson machines serial port has only 3 wires. */
.rtscts = 0,
#else
.speed = 9600,
.rtscts = 1,
#endif
.word_len = 8,
.parity = GRUB_SERIAL_PARITY_NONE,