amiserial.c (4f2c0a4acffbec01079c28f839422e64ddeff004) | amiserial.c (515be7baeddb04d786e3a7f4072791087c25bb04) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Serial driver for the amiga builtin port. 4 * 5 * This code was created by taking serial.c version 4.30 from kernel 6 * release 2.3.22, replacing all hardware related stuff with the 7 * corresponding amiga hardware actions, and removing all irrelevant 8 * code. As a consequence, it uses many of the constants and names --- 488 unchanged lines hidden (view full) --- 497 clear_bit(TTY_IO_ERROR, &tty->flags); 498 info->xmit.head = info->xmit.tail = 0; 499 500 /* 501 * and set the speed of the serial port 502 */ 503 change_speed(tty, info, NULL); 504 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Serial driver for the amiga builtin port. 4 * 5 * This code was created by taking serial.c version 4.30 from kernel 6 * release 2.3.22, replacing all hardware related stuff with the 7 * corresponding amiga hardware actions, and removing all irrelevant 8 * code. As a consequence, it uses many of the constants and names --- 488 unchanged lines hidden (view full) --- 497 clear_bit(TTY_IO_ERROR, &tty->flags); 498 info->xmit.head = info->xmit.tail = 0; 499 500 /* 501 * and set the speed of the serial port 502 */ 503 change_speed(tty, info, NULL); 504 |
505 tty_port_set_initialized(port, 1); | 505 tty_port_set_initialized(port, true); |
506 local_irq_restore(flags); 507 return 0; 508 509errout: 510 local_irq_restore(flags); 511 return retval; 512} 513 --- 37 unchanged lines hidden (view full) --- 551 mb(); 552 553 if (C_HUPCL(tty)) 554 info->MCR &= ~(SER_DTR|SER_RTS); 555 rtsdtr_ctrl(info->MCR); 556 557 set_bit(TTY_IO_ERROR, &tty->flags); 558 | 506 local_irq_restore(flags); 507 return 0; 508 509errout: 510 local_irq_restore(flags); 511 return retval; 512} 513 --- 37 unchanged lines hidden (view full) --- 551 mb(); 552 553 if (C_HUPCL(tty)) 554 info->MCR &= ~(SER_DTR|SER_RTS); 555 rtsdtr_ctrl(info->MCR); 556 557 set_bit(TTY_IO_ERROR, &tty->flags); 558 |
559 tty_port_set_initialized(&info->tport, 0); | 559 tty_port_set_initialized(&info->tport, false); |
560 local_irq_restore(flags); 561} 562 563 564/* 565 * This routine is called to set the UART divisor registers to match 566 * the specified baud rate for a serial port. 567 */ --- 1095 unchanged lines hidden --- | 560 local_irq_restore(flags); 561} 562 563 564/* 565 * This routine is called to set the UART divisor registers to match 566 * the specified baud rate for a serial port. 567 */ --- 1095 unchanged lines hidden --- |