* grub-core/term/efi/serial.c: Support 1.5 stop bits.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-07-02 11:30:04 +02:00
parent 073b57bb8e
commit 4d569e12e3
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/term/efi/serial.c: Support 1.5 stop bits.
2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/ext2.c: Experimental support for 64-bit.

View file

@ -44,6 +44,7 @@ do_real_config (struct grub_serial_port *port)
};
const grub_efi_stop_bits_t stop_bits[] = {
[GRUB_SERIAL_STOP_BITS_1] = GRUB_EFI_SERIAL_1_STOP_BIT,
[GRUB_SERIAL_STOP_BITS_1_5] = GRUB_EFI_SERIAL_1_5_STOP_BITS,
[GRUB_SERIAL_STOP_BITS_2] = GRUB_EFI_SERIAL_2_STOP_BITS,
};
@ -111,6 +112,7 @@ serial_hw_configure (struct grub_serial_port *port,
N_("unsupported serial port parity"));
if (config->stop_bits != GRUB_SERIAL_STOP_BITS_1
&& config->stop_bits != GRUB_SERIAL_STOP_BITS_1_5
&& config->stop_bits != GRUB_SERIAL_STOP_BITS_2)
return grub_error (GRUB_ERR_BAD_ARGUMENT,
N_("unsupported serial port stop bits number"));