]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/term/efi/serial.c: Support 1.5 stop bits.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 2 Jul 2012 09:30:04 +0000 (11:30 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 2 Jul 2012 09:30:04 +0000 (11:30 +0200)
ChangeLog
grub-core/term/efi/serial.c

index 93ad0ac1adaccabfcdf14c0d15a9c5114b8bea2f..5f73c880c1bf40399fbeb254da2f9e1136665db0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index da8c3ced7589271e10119dbf3e478162924c8b37..dc5f33b4084e662ac291e297c55f880815cfad28 100644 (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"));