ip22zilog.c (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) | ip22zilog.c (fd2b55f86b8b25afc5b6e7dff53dddb3fd0dd211) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Driver for Zilog serial chips found on SGI workstations and 4 * servers. This driver could actually be made more generic. 5 * 6 * This is based on the drivers/serial/sunzilog.c code as of 2.6.0-test7 and the 7 * old drivers/sgi/char/sgiserial.c code which itself is based of the original 8 * drivers/sbus/char/zs.c code. A lot of code has been simply moved over --- 234 unchanged lines hidden (view full) --- 243} 244 245#define Rx_BRK 0x0100 /* BREAK event software flag. */ 246#define Rx_SYS 0x0200 /* SysRq event software flag. */ 247 248static bool ip22zilog_receive_chars(struct uart_ip22zilog_port *up, 249 struct zilog_channel *channel) 250{ | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Driver for Zilog serial chips found on SGI workstations and 4 * servers. This driver could actually be made more generic. 5 * 6 * This is based on the drivers/serial/sunzilog.c code as of 2.6.0-test7 and the 7 * old drivers/sgi/char/sgiserial.c code which itself is based of the original 8 * drivers/sbus/char/zs.c code. A lot of code has been simply moved over --- 234 unchanged lines hidden (view full) --- 243} 244 245#define Rx_BRK 0x0100 /* BREAK event software flag. */ 246#define Rx_SYS 0x0200 /* SysRq event software flag. */ 247 248static bool ip22zilog_receive_chars(struct uart_ip22zilog_port *up, 249 struct zilog_channel *channel) 250{ |
251 unsigned char ch, flag; | |
252 unsigned int r1; | 251 unsigned int r1; |
252 u8 ch, flag; |
|
253 bool push = up->port.state != NULL; 254 255 for (;;) { 256 ch = readb(&channel->control); 257 ZSDELAY(); 258 if (!(ch & Rx_CH_AV)) 259 break; 260 --- 961 unchanged lines hidden --- | 253 bool push = up->port.state != NULL; 254 255 for (;;) { 256 ch = readb(&channel->control); 257 ZSDELAY(); 258 if (!(ch & Rx_CH_AV)) 259 break; 260 --- 961 unchanged lines hidden --- |