mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 16:49:23 +00:00
* grub-core/term/serial.c: Add option for enabling/disabling
RTS/CTS flow control.
This commit is contained in:
1 parent
2dc1eb6cbf
commit
9f8acdaa5d
8 files changed
+48
-17
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user