mxser.c (b300fb26c59a749bf49559932fa8a85eb916b5a7) mxser.c (5d420399073770134d2b03e004b2c0201c7fa26f)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * mxser.c -- MOXA Smartio/Industio family multiport serial driver.
4 *
5 * Copyright (C) 1999-2006 Moxa Technologies (support@moxa.com).
6 * Copyright (C) 2006-2008 Jiri Slaby <jirislaby@gmail.com>
7 *
8 * This code is loosely based on the 1.8 moxa driver which is based on

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

460
461static bool mxser_carrier_raised(struct tty_port *port)
462{
463 struct mxser_port *mp = container_of(port, struct mxser_port, port);
464
465 return inb(mp->ioaddr + UART_MSR) & UART_MSR_DCD;
466}
467
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * mxser.c -- MOXA Smartio/Industio family multiport serial driver.
4 *
5 * Copyright (C) 1999-2006 Moxa Technologies (support@moxa.com).
6 * Copyright (C) 2006-2008 Jiri Slaby <jirislaby@gmail.com>
7 *
8 * This code is loosely based on the 1.8 moxa driver which is based on

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

460
461static bool mxser_carrier_raised(struct tty_port *port)
462{
463 struct mxser_port *mp = container_of(port, struct mxser_port, port);
464
465 return inb(mp->ioaddr + UART_MSR) & UART_MSR_DCD;
466}
467
468static void mxser_dtr_rts(struct tty_port *port, int on)
468static void mxser_dtr_rts(struct tty_port *port, bool on)
469{
470 struct mxser_port *mp = container_of(port, struct mxser_port, port);
471 unsigned long flags;
472 u8 mcr;
473
474 spin_lock_irqsave(&mp->slock, flags);
475 mcr = inb(mp->ioaddr + UART_MCR);
476 if (on)

--- 1463 unchanged lines hidden ---
469{
470 struct mxser_port *mp = container_of(port, struct mxser_port, port);
471 unsigned long flags;
472 u8 mcr;
473
474 spin_lock_irqsave(&mp->slock, flags);
475 mcr = inb(mp->ioaddr + UART_MCR);
476 if (on)

--- 1463 unchanged lines hidden ---