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.
This commit is contained in:
parent
fe3d844bb1
commit
b000586d02
@ -65,6 +65,39 @@ static const struct speed_map speeds[] = {
|
|||||||
#ifdef B460800
|
#ifdef B460800
|
||||||
{B460800, 460800/256 + 0x8000U},
|
{B460800, 460800/256 + 0x8000U},
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef B500000
|
||||||
|
{B500000, 500000/256 + 0x8000U},
|
||||||
|
#endif
|
||||||
|
#ifdef B576000
|
||||||
|
{B576000, 576000/256 + 0x8000U},
|
||||||
|
#endif
|
||||||
|
#ifdef B921600
|
||||||
|
{B921600, 921600/256 + 0x8000U},
|
||||||
|
#endif
|
||||||
|
#ifdef B1000000
|
||||||
|
{B1000000, 1000000/256 + 0x8000U},
|
||||||
|
#endif
|
||||||
|
#ifdef B1152000
|
||||||
|
{B1152000, 1152000/256 + 0x8000U},
|
||||||
|
#endif
|
||||||
|
#ifdef B1500000
|
||||||
|
{B1500000, 1500000/256 + 0x8000U},
|
||||||
|
#endif
|
||||||
|
#ifdef B2000000
|
||||||
|
{B2000000, 2000000/256 + 0x8000U},
|
||||||
|
#endif
|
||||||
|
#ifdef B2500000
|
||||||
|
{B2500000, 2500000/256 + 0x8000U},
|
||||||
|
#endif
|
||||||
|
#ifdef B3000000
|
||||||
|
{B3000000, 3000000/256 + 0x8000U},
|
||||||
|
#endif
|
||||||
|
#ifdef B3500000
|
||||||
|
{B3500000, 3500000/256 + 0x8000U},
|
||||||
|
#endif
|
||||||
|
#ifdef B4000000
|
||||||
|
{B4000000, 4000000/256 + 0x8000U},
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
enum { NUM_SPEEDS = (sizeof(speeds) / sizeof(struct speed_map)) };
|
enum { NUM_SPEEDS = (sizeof(speeds) / sizeof(struct speed_map)) };
|
||||||
|
Loading…
Reference in New Issue
Block a user