static unsigned int bfin_serial_get_mctrl(struct uart_port *port) { struct bfin_serial_port *uart = (struct bfin_serial_port *)port; if (uart->cts_pin < 0) return TIOCM_CTS | TIOCM_DSR | TIOCM_CAR; /* CTS PIN is negative assertive. */ if (UART_GET_CTS(uart)) return TIOCM_CTS | TIOCM_DSR | TIOCM_CAR; else return TIOCM_DSR | TIOCM_CAR; }
static unsigned int bfin_serial_get_mctrl(struct uart_port *port) { #ifdef CONFIG_SERIAL_BFIN_CTSRTS struct bfin_serial_port *uart = (struct bfin_serial_port *)port; if (uart->cts_pin < 0) return TIOCM_CTS | TIOCM_DSR | TIOCM_CAR; if (UART_GET_CTS(uart)) return TIOCM_DSR | TIOCM_CAR; else #endif return TIOCM_CTS | TIOCM_DSR | TIOCM_CAR; }