/* ic3_get_mctrl - get control line info @port: port to operate on  */
static unsigned int ic3_get_mctrl(struct uart_port *the_port)
/* ic3_get_mctrl - get control line info @port: port to operate on  */
static unsigned int ic3_get_mctrl(struct uart_port *the_port)
{
	struct ioc3_port *port = get_ioc3_port(the_port);
	uint32_t shadow;
	unsigned int ret = 0;
	if (!port)
		return 0;
	shadow = readl(&port->ip_serial_regs->shadow);
	if (shadow & SHADOW_DCD)
		ret |= TIOCM_CD;
	if (shadow & SHADOW_DR)
		ret |= TIOCM_DSR;
	if (shadow & SHADOW_CTS)
		ret |= TIOCM_CTS;
	return ret;
}