From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Boris V. Guzhov" To: Subject: [ECOS] Bug in the pc_serial.h Date: Tue, 15 May 2001 00:59:00 -0000 Message-id: <014901c0dd12$c41c6940$7601a8c0@borg> X-SW-Source: 2001-05/msg00218.html In the devs/serial/i386/pc/current/src/pc_serial.h is incorrectly declared LCR_PE constant: #define LCR_PE 0x0C // Parity mode - even It should be declared: #define LCR_PE 0x18 // Parity mode - even The 16550 documentation extract: Line Control Register - LCR (read/write) LCR bits: 0,1 - word length select bits (see below) 2 - 0 = 1 stop bit, 1 = 1.5 or 2 (see note) 3 - 0 = no parity, 1 = parity (PEN) 4 - 0 = odd parity, 1 = even (EPS) 5 - 0 = parity disabled, 1 = enabled 6 - turn break off, 1 = force spacing break state 7 - 1 = baud rate divisor (DLAB); 0 = RBR, THR or IER -- Boris Guzhov, St.Petersburg, Russia