]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Add a 1.5 stop bits value.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 8 Jun 2012 17:32:57 +0000 (19:32 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 8 Jun 2012 17:32:57 +0000 (19:32 +0200)
* grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
* include/grub/serial.h (grub_serial_stop_bits_t): Add
GRUB_SERIAL_STOP_BITS_1_5.

ChangeLog
grub-core/term/serial.c
include/grub/serial.h

index 720b81b49da709dcf544980038510c2a3ac9366b..80e79296733375b5461d21bc8ef3cf70107d5e49 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Add a 1.5 stop bits value.
+
+       * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
+       * include/grub/serial.h (grub_serial_stop_bits_t): Add
+       GRUB_SERIAL_STOP_BITS_1_5.
+
 2012-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/commands/wildcard.c (wildcard_expand): Set default return
index 7083fef572b15148309df9183c9ed4349f1e09cf..e1469e57ae813b14e96f1405dd8045e1dde6c9e3 100644 (file)
@@ -217,6 +217,8 @@ grub_cmd_serial (grub_extcmd_context_t ctxt, int argc, char **args)
        config.stop_bits = GRUB_SERIAL_STOP_BITS_1;
       else if (! grub_strcmp (state[5].arg, "2"))
        config.stop_bits = GRUB_SERIAL_STOP_BITS_2;
+      else if (! grub_strcmp (state[5].arg, "1.5"))
+       config.stop_bits = GRUB_SERIAL_STOP_BITS_1_5;
       else
        return grub_error (GRUB_ERR_BAD_ARGUMENT,
                           N_("unsupported serial port stop bits number"));
index 065dabbc2e0e76443d11cc367db77589ab991345..d68a255ebc8091e7610550f19d0525c1c676c4c5 100644 (file)
@@ -54,6 +54,7 @@ typedef enum
 typedef enum
   {
     GRUB_SERIAL_STOP_BITS_1,
+    GRUB_SERIAL_STOP_BITS_1_5,
     GRUB_SERIAL_STOP_BITS_2,
   } grub_serial_stop_bits_t;