static void uart00_break_ctl(struct uart_port *port, int break_state) { unsigned int mcr; mcr = UART_GET_MCR(port); if (break_state == -1) mcr |= UART_MCR_BR_MSK; else mcr &= ~UART_MCR_BR_MSK; UART_PUT_MCR(port, mcr); }
static void uart00_break_ctl(struct uart_port *port, int break_state) { unsigned long flags; unsigned int mcr; spin_lock_irqsave(&port->lock, flags); mcr = UART_GET_MCR(port); if (break_state == -1) mcr |= UART_MCR_BR_MSK; else mcr &= ~UART_MCR_BR_MSK; UART_PUT_MCR(port, mcr); spin_unlock_irqrestore(&port->lock, flags); }
static void uart00_shutdown(struct uart_port *port) { /* * disable all interrupts, disable the port */ UART_PUT_IEC(port, 0xff); /* disable break condition and fifos */ UART_PUT_MCR(port, UART_GET_MCR(port) &~UART_MCR_BR_MSK); /* * Free the interrupt */ free_irq(port->irq, port); }
static void ks8695uart_set_mctrl(struct uart_port *port, u_int mctrl) { unsigned int mcr; mcr = UART_GET_MCR(port); if (mctrl & TIOCM_RTS) mcr |= URMC_URRTS; else mcr &= ~URMC_URRTS; if (mctrl & TIOCM_DTR) mcr |= URMC_URDTR; else mcr &= ~URMC_URDTR; UART_PUT_MCR(port, mcr); }
static void ambauart_set_mctrl(struct uart_port *port, u_int mctrl) { unsigned int mcr; mcr = UART_GET_MCR(port); if (mctrl & TIOCM_RTS) mcr |= KS8695_UART_MODEMC_RTS; else mcr &= ~KS8695_UART_MODEMC_RTS; if (mctrl & TIOCM_DTR) mcr |= KS8695_UART_MODEMC_DTR; else mcr &= ~KS8695_UART_MODEMC_DTR; UART_PUT_MCR(port, mcr); }