synclink_gt.c (5d420399073770134d2b03e004b2c0201c7fa26f) synclink_gt.c (5701cb8bf50e1c723553344b3f731b308da8ea21)
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, bool on)
3141static void dtr_rts(struct tty_port *port, bool active)
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);
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)
3147 if (active)
3148 info->signals |= SerialSignal_RTS | SerialSignal_DTR;
3149 else
3150 info->signals &= ~(SerialSignal_RTS | SerialSignal_DTR);
3151 set_gtsignals(info);
3152 spin_unlock_irqrestore(&info->lock,flags);
3153}
3154
3155

--- 1901 unchanged lines hidden ---
3148 info->signals |= SerialSignal_RTS | SerialSignal_DTR;
3149 else
3150 info->signals &= ~(SerialSignal_RTS | SerialSignal_DTR);
3151 set_gtsignals(info);
3152 spin_unlock_irqrestore(&info->lock,flags);
3153}
3154
3155

--- 1901 unchanged lines hidden ---