diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-06-17 22:41:28 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-06-17 22:41:28 +0000 |
commit | b000586d0214491c2b81683c144bdc2bf923612b (patch) | |
tree | 292441834d79ca604c43d97fb045c497d6a583b2 /libbb | |
parent | fe3d844bb15841ee759ce911bbc46db007a95e09 (diff) | |
download | busybox-w32-b000586d0214491c2b81683c144bdc2bf923612b.tar.gz busybox-w32-b000586d0214491c2b81683c144bdc2bf923612b.tar.bz2 busybox-w32-b000586d0214491c2b81683c144bdc2bf923612b.zip |
danf writes: stty doesn't support baud rates > 460800 bps, the attached patch adds support for all baud rates supported by Linux 2.6.16 on x86.
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/speed_table.c | 37 |
1 files changed, 35 insertions, 2 deletions
diff --git a/libbb/speed_table.c b/libbb/speed_table.c index 4075562db..b4d576b4c 100644 --- a/libbb/speed_table.c +++ b/libbb/speed_table.c | |||
@@ -43,12 +43,12 @@ static const struct speed_map speeds[] = { | |||
43 | {B2400, 2400}, | 43 | {B2400, 2400}, |
44 | {B4800, 4800}, | 44 | {B4800, 4800}, |
45 | {B9600, 9600}, | 45 | {B9600, 9600}, |
46 | #ifdef B19200 | 46 | #ifdef B19200 |
47 | {B19200, 19200}, | 47 | {B19200, 19200}, |
48 | #elif defined(EXTA) | 48 | #elif defined(EXTA) |
49 | {EXTA, 19200}, | 49 | {EXTA, 19200}, |
50 | #endif | 50 | #endif |
51 | #ifdef B38400 | 51 | #ifdef B38400 |
52 | {B38400, 38400/256 + 0x8000U}, | 52 | {B38400, 38400/256 + 0x8000U}, |
53 | #elif defined(EXTB) | 53 | #elif defined(EXTB) |
54 | {EXTB, 38400/256 + 0x8000U}, | 54 | {EXTB, 38400/256 + 0x8000U}, |
@@ -65,6 +65,39 @@ static const struct speed_map speeds[] = { | |||
65 | #ifdef B460800 | 65 | #ifdef B460800 |
66 | {B460800, 460800/256 + 0x8000U}, | 66 | {B460800, 460800/256 + 0x8000U}, |
67 | #endif | 67 | #endif |
68 | #ifdef B500000 | ||
69 | {B500000, 500000/256 + 0x8000U}, | ||
70 | #endif | ||
71 | #ifdef B576000 | ||
72 | {B576000, 576000/256 + 0x8000U}, | ||
73 | #endif | ||
74 | #ifdef B921600 | ||
75 | {B921600, 921600/256 + 0x8000U}, | ||
76 | #endif | ||
77 | #ifdef B1000000 | ||
78 | {B1000000, 1000000/256 + 0x8000U}, | ||
79 | #endif | ||
80 | #ifdef B1152000 | ||
81 | {B1152000, 1152000/256 + 0x8000U}, | ||
82 | #endif | ||
83 | #ifdef B1500000 | ||
84 | {B1500000, 1500000/256 + 0x8000U}, | ||
85 | #endif | ||
86 | #ifdef B2000000 | ||
87 | {B2000000, 2000000/256 + 0x8000U}, | ||
88 | #endif | ||
89 | #ifdef B2500000 | ||
90 | {B2500000, 2500000/256 + 0x8000U}, | ||
91 | #endif | ||
92 | #ifdef B3000000 | ||
93 | {B3000000, 3000000/256 + 0x8000U}, | ||
94 | #endif | ||
95 | #ifdef B3500000 | ||
96 | {B3500000, 3500000/256 + 0x8000U}, | ||
97 | #endif | ||
98 | #ifdef B4000000 | ||
99 | {B4000000, 4000000/256 + 0x8000U}, | ||
100 | #endif | ||
68 | }; | 101 | }; |
69 | 102 | ||
70 | enum { NUM_SPEEDS = (sizeof(speeds) / sizeof(struct speed_map)) }; | 103 | enum { NUM_SPEEDS = (sizeof(speeds) / sizeof(struct speed_map)) }; |