Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/libbb/speed_table.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 7  Line 7 
7   * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.   * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8   */   */
9    
 #include <termios.h>  
10  #include "libbb.h"  #include "libbb.h"
11    
12  struct speed_map {  struct speed_map {
# Line 52  static const struct speed_map speeds[] = Line 51  static const struct speed_map speeds[] =
51  #ifdef B460800  #ifdef B460800
52   {B460800, 460800/256 + 0x8000U},   {B460800, 460800/256 + 0x8000U},
53  #endif  #endif
54    #ifdef B921600
55     {B921600, 921600/256 + 0x8000U},
56    #endif
57  };  };
58    
59  enum { NUM_SPEEDS = ARRAY_SIZE(speeds) };  enum { NUM_SPEEDS = ARRAY_SIZE(speeds) };
# Line 94  int main(void) Line 96  int main(void)
96   unsigned long v;   unsigned long v;
97   speed_t s;   speed_t s;
98    
99   for (v = 0 ; v < 500000; v++) {   for (v = 0 ; v < 1000000; v++) {
100   s = tty_value_to_baud(v);   s = tty_value_to_baud(v);
101   if (s == (speed_t) -1) {   if (s == (speed_t) -1) {
102   continue;   continue;

Legend:
Removed from v.983  
changed lines
  Added in v.984