/* Get state of the modem control input lines  */
static u_int atmel_get_mctrl(struct uart_port *port)
/* Get state of the modem control input lines  */
static u_int atmel_get_mctrl(struct uart_port *port)
{
	unsigned int status, ret = 0;
	status = UART_GET_CSR(port);
	if (!(status & ATMEL_US_DCD))
		ret |= TIOCM_CD;
	if (!(status & ATMEL_US_CTS))
		ret |= TIOCM_CTS;
	if (!(status & ATMEL_US_DSR))
		ret |= TIOCM_DSR;
	if (!(status & ATMEL_US_RI))
		ret |= TIOCM_RI;
	return ret;
}