#2897 closed enhancement (fixed)

Update termios.h to match the latest FREEBSD definitions

Reported by: Kevin Kirspel Owned by: Needs Funding
Priority: normal Milestone: 5.1
Component: score Version: 5
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

The FREEBSD struct termios separates out the input and output baud rates into individual speed_t variables. It also supports more flag options. The big benefit is that the rtems-libbsd tty code can be ported cleanly without the need to fixup the input and output baud rates. This should be a transparent change unless someone was manipulating the baud rates directly through the c_cflags (not using the cfgetispeed, cfgetospeed, cfsetispeed, cfsetospeed functions).

Change History (19)

Changed on Feb 1, 2017 at 9:29:10 PM by Kevin Kirspel

RTEMS test log for attached patches

comment:1 Changed on Feb 1, 2017 at 9:52:39 PM by Kevin Kirspel

Ignore the patches and test log. I accidently configured on the wrong tree. I'll post new patches soon.

comment:2 Changed on Feb 2, 2017 at 11:00:00 PM by Kevin Kirspel

I have made the modifications to termios. There were a bunch of files to change in the BSPs to use the new baud rate fields. I think I updated all the necessary BSPs. I only tested the xilinx_zynq_a9_qemu BSP. I am attaching the patch file and testsuite log.

Changed on Feb 2, 2017 at 11:01:55 PM by Kevin Kirspel

Testsuite Updates

Changed on Feb 2, 2017 at 11:03:23 PM by Kevin Kirspel

Attachment: log_xilinx_zynq_a9_qemu.log added

Testsuite Log

comment:3 Changed on Feb 15, 2017 at 2:20:42 PM by Sebastian Huber

Milestone: 4.12Indefinite
Owner: set to Needs Funding
Status: newassigned

comment:4 Changed on Mar 22, 2017 at 10:57:26 AM by Kevin Kirspel <kevin-kirspel@…>

Resolution: fixed
Status: assignedclosed

In 1c6926c1/rtems:

termios: Synchronize with latest FreeBSD headers

Adding modified FreeBSD headers to synchronize RTEMS termios with
FreeBSD. Modify termios to support dedicated input and output baud for
termios structure. Updated BSPs to use dedicated input and output baud
in termios structure. Updated tools to use dedicated input and output
baud in termios structure. Updated termios testsuites to use dedicated
input and output baud in termios structure.

Close #2897.

comment:5 Changed on Mar 22, 2017 at 10:59:48 AM by Sebastian Huber

Milestone: Indefinite4.12

comment:6 Changed on Mar 27, 2017 at 8:31:35 AM by Sebastian Huber <sebastian.huber@…>

In 94a4865/rtems:

termios: Avoid invalid memory access

Update #2897.

comment:7 Changed on Mar 27, 2017 at 1:39:05 PM by Sebastian Huber <sebastian.huber@…>

In 5f382713/rtems:

cpukit: Fix Makefile.am and update preinstall.am

Update #2897.

comment:8 Changed on Apr 3, 2017 at 12:08:49 PM by Sebastian Huber <sebastian.huber@…>

In 1301468/rtems:

bsps: Fix baud settings

Update #2897.

comment:9 Changed on Apr 10, 2017 at 2:40:08 PM by Kevin Kirspel <kevin-kirspel@…>

In d2390ce4/rtems:

Updating default termios initialization for dedicated input/output baud rates

updates #2897.

comment:10 Changed on May 11, 2017 at 7:31:02 AM by Sebastian Huber

Milestone: 4.124.12.0

comment:11 Changed on Nov 9, 2017 at 6:27:14 AM by Sebastian Huber

Milestone: 4.12.05.1

Milestone renamed

Note: See TracTickets for help on using tickets.