synclink_gt.c (b300fb26c59a749bf49559932fa8a85eb916b5a7) synclink_gt.c (5d420399073770134d2b03e004b2c0201c7fa26f)
1// SPDX-License-Identifier: GPL-1.0+
2/*
3 * Device driver for Microgate SyncLink GT serial adapters.
4 *
5 * written by Paul Fulghum for Microgate Corporation
6 * paulkf@microgate.com
7 *
8 * Microgate and SyncLink are trademarks of Microgate Corporation

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

3133
3134 spin_lock_irqsave(&info->lock,flags);
3135 get_gtsignals(info);
3136 spin_unlock_irqrestore(&info->lock,flags);
3137
3138 return info->signals & SerialSignal_DCD;
3139}
3140
1// SPDX-License-Identifier: GPL-1.0+
2/*
3 * Device driver for Microgate SyncLink GT serial adapters.
4 *
5 * written by Paul Fulghum for Microgate Corporation
6 * paulkf@microgate.com
7 *
8 * Microgate and SyncLink are trademarks of Microgate Corporation

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

3133
3134 spin_lock_irqsave(&info->lock,flags);
3135 get_gtsignals(info);
3136 spin_unlock_irqrestore(&info->lock,flags);
3137
3138 return info->signals & SerialSignal_DCD;
3139}
3140
3141static void dtr_rts(struct tty_port *port, int on)
3141static void dtr_rts(struct tty_port *port, bool on)
3142{
3143 unsigned long flags;
3144 struct slgt_info *info = container_of(port, struct slgt_info, port);
3145
3146 spin_lock_irqsave(&info->lock,flags);
3147 if (on)
3148 info->signals |= SerialSignal_RTS | SerialSignal_DTR;
3149 else

--- 1907 unchanged lines hidden ---
3142{
3143 unsigned long flags;
3144 struct slgt_info *info = container_of(port, struct slgt_info, port);
3145
3146 spin_lock_irqsave(&info->lock,flags);
3147 if (on)
3148 info->signals |= SerialSignal_RTS | SerialSignal_DTR;
3149 else

--- 1907 unchanged lines hidden ---