amiserial.c (5604a98e2f95d6221852960a3363588f40d78e22) | amiserial.c (807c8d81f4ec441241cafa3034c58df721fee869) |
---|---|
1/* 2 * Serial driver for the amiga builtin port. 3 * 4 * This code was created by taking serial.c version 4.30 from kernel 5 * release 2.3.22, replacing all hardware related stuff with the 6 * corresponding amiga hardware actions, and removing all irrelevant 7 * code. As a consequence, it uses many of the constants and names 8 * associated with the registers and bits of 16550 compatible UARTS - --- 1479 unchanged lines hidden (view full) --- 1488 struct serial_state *info = tty->driver_data; 1489 1490 if (serial_paranoia_check(info, tty->name, "rs_hangup")) 1491 return; 1492 1493 rs_flush_buffer(tty); 1494 shutdown(tty, info); 1495 info->tport.count = 0; | 1/* 2 * Serial driver for the amiga builtin port. 3 * 4 * This code was created by taking serial.c version 4.30 from kernel 5 * release 2.3.22, replacing all hardware related stuff with the 6 * corresponding amiga hardware actions, and removing all irrelevant 7 * code. As a consequence, it uses many of the constants and names 8 * associated with the registers and bits of 16550 compatible UARTS - --- 1479 unchanged lines hidden (view full) --- 1488 struct serial_state *info = tty->driver_data; 1489 1490 if (serial_paranoia_check(info, tty->name, "rs_hangup")) 1491 return; 1492 1493 rs_flush_buffer(tty); 1494 shutdown(tty, info); 1495 info->tport.count = 0; |
1496 info->tport.flags &= ~ASYNC_NORMAL_ACTIVE; | 1496 tty_port_set_active(&info->tport, 0); |
1497 info->tport.tty = NULL; 1498 wake_up_interruptible(&info->tport.open_wait); 1499} 1500 1501/* 1502 * This routine is called whenever a serial port is opened. It 1503 * enables interrupts for a serial port, linking in its async structure into 1504 * the IRQ chain. It also performs the serial-specific --- 360 unchanged lines hidden --- | 1497 info->tport.tty = NULL; 1498 wake_up_interruptible(&info->tport.open_wait); 1499} 1500 1501/* 1502 * This routine is called whenever a serial port is opened. It 1503 * enables interrupts for a serial port, linking in its async structure into 1504 * the IRQ chain. It also performs the serial-specific --- 360 unchanged lines hidden --- |