qemu/include/hw/char
Trent Piepho 478a573a7d i.MX: Support serial RS-232 break properly
Linux does not detect a break from this IMX serial driver as a magic
sysrq.  Nor does it note a break in the port error counts.

The former is because the Linux driver uses the BRCD bit in the USR2
register to trigger the RS-232 break handler in the kernel, which is
where sysrq hooks in.  The emulated UART was not setting this status
bit.

The latter is because the Linux driver expects, in addition to the BRK
bit, that the ERR bit is set when a break is read in the FIFO.  A break
should also count as a frame error, so add that bit too.

Cc: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Trent Piepho <tpiepho@impinj.com>
Message-id: 20180320013657.25038-1-tpiepho@impinj.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2018-03-23 18:26:45 +00:00
..
bcm2835_aux.h char: move CharBackend handling in char-fe unit 2017-06-02 11:33:53 +04:00
cadence_uart.h char: move CharBackend handling in char-fe unit 2017-06-02 11:33:53 +04:00
cmsdk-apb-uart.h hw/char/cmsdk-apb-uart.c: Implement CMSDK APB UART 2017-07-17 13:36:08 +01:00
digic-uart.h char: move CharBackend handling in char-fe unit 2017-06-02 11:33:53 +04:00
escc.h hw/char: remove legacy interface escc_init() 2018-02-16 12:14:26 +11:00
imx_serial.h i.MX: Support serial RS-232 break properly 2018-03-23 18:26:45 +00:00
lm32_juart.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
parallel.h hw/isa: Move parallel_hds_isa_init() to hw/char/parallel-isa.c 2018-03-12 16:12:47 +01:00
pl011.h char: rename CharDriverState Chardev 2017-01-27 18:07:59 +01:00
serial.h char: move CharBackend handling in char-fe unit 2017-06-02 11:33:53 +04:00
stm32f2xx_usart.h hw/char/stm32f2xx_usart: fix TXE/TC bit handling 2018-02-22 15:12:51 +00:00
xilinx_uartlite.h char: rename CharDriverState Chardev 2017-01-27 18:07:59 +01:00