···33 --------------------445566- $Id: driver,v 1.10 2002/07/22 15:27:30 rmk Exp $77-88-96This document is meant as a brief overview of some aspects of the new serial107driver. It is not complete, any questions you have should be directed to118<rmk@arm.linux.org.uk>1291313-The reference implementation is contained within serial_amba.c.1010+The reference implementation is contained within amba_pl011.c.141115121613···2730The serial core provides a few helper functions. This includes identifing2831the correct port structure (via uart_get_console) and decoding command line2932arguments (uart_parse_options).3333+3434+There is also a helper function (uart_write_console) which performs a3535+character by character write, translating newlines to CRLF sequences.3636+Driver writers are recommended to use this function rather than implementing3737+their own version.303831393240Locking···8886 - TIOCM_DTR DTR signal.8987 - TIOCM_OUT1 OUT1 signal.9088 - TIOCM_OUT2 OUT2 signal.8989+ - TIOCM_LOOP Set the port into loopback mode.9190 If the appropriate bit is set, the signal should be driven9291 active. If the bit is clear, the signal should be driven9392 inactive.···144141 enable_ms(port)145142 Enable the modem status interrupts.146143144144+ This method may be called multiple times. Modem status145145+ interrupts should be disabled when the shutdown method is146146+ called.147147+147148 Locking: port->lock taken.148149 Interrupts: locally disabled.149150 This call must not sleep···167160 state. Enable the port for reception. It should not activate168161 RTS nor DTR; this will be done via a separate call to set_mctrl.169162163163+ This method will only be called when the port is initially opened.164164+170165 Locking: port_sem taken.171166 Interrupts: globally disabled.172167···177168 effect, and free any interrupt resources. It should not disable178169 RTS nor DTR; this will have already been done via a separate179170 call to set_mctrl.171171+172172+ Drivers must not access port->info once this call has completed.173173+174174+ This method will only be called when there are no more users of175175+ this port.180176181177 Locking: port_sem taken.182178 Interrupts: caller dependent.