ehv_bytechan.c (aa1262b3876ec5249ff464618a7dcd46b3ca54e2) ehv_bytechan.c (6aad04f21374633bd8cecf25024553d1e11a9522)
1/* ePAPR hypervisor byte channel device driver
2 *
3 * Copyright 2009-2011 Freescale Semiconductor, Inc.
4 *
5 * Author: Timur Tabi <timur@freescale.com>
6 *
7 * This file is licensed under the terms of the GNU General Public License
8 * version 2. This program is licensed "as is" without any warranty of any

--- 458 unchanged lines hidden (view full) ---

467 * byte channel transmit interupt handler
468 *
469 * This ISR is called whenever space becomes available for transmitting
470 * characters on a byte channel.
471 */
472static irqreturn_t ehv_bc_tty_tx_isr(int irq, void *data)
473{
474 struct ehv_bc_data *bc = data;
1/* ePAPR hypervisor byte channel device driver
2 *
3 * Copyright 2009-2011 Freescale Semiconductor, Inc.
4 *
5 * Author: Timur Tabi <timur@freescale.com>
6 *
7 * This file is licensed under the terms of the GNU General Public License
8 * version 2. This program is licensed "as is" without any warranty of any

--- 458 unchanged lines hidden (view full) ---

467 * byte channel transmit interupt handler
468 *
469 * This ISR is called whenever space becomes available for transmitting
470 * characters on a byte channel.
471 */
472static irqreturn_t ehv_bc_tty_tx_isr(int irq, void *data)
473{
474 struct ehv_bc_data *bc = data;
475 struct tty_struct *ttys = tty_port_tty_get(&bc->port);
476
477 ehv_bc_tx_dequeue(bc);
475
476 ehv_bc_tx_dequeue(bc);
478 if (ttys) {
479 tty_wakeup(ttys);
480 tty_kref_put(ttys);
481 }
477 tty_port_tty_wakeup(&bc->port);
482
483 return IRQ_HANDLED;
484}
485
486/*
487 * This function is called when the tty layer has data for us send. We store
488 * the data first in a circular buffer, and then dequeue as much of that data
489 * as possible.

--- 387 unchanged lines hidden ---
478
479 return IRQ_HANDLED;
480}
481
482/*
483 * This function is called when the tty layer has data for us send. We store
484 * the data first in a circular buffer, and then dequeue as much of that data
485 * as possible.

--- 387 unchanged lines hidden ---