--- zzzz-none-000/linux-2.6.28.10/include/linux/serial_core.h 2009-05-02 18:54:43.000000000 +0000 +++ fusiv-7390-686/linux-2.6.28.10/include/linux/serial_core.h 2016-02-10 17:16:55.000000000 +0000 @@ -20,27 +20,7 @@ #ifndef LINUX_SERIAL_CORE_H #define LINUX_SERIAL_CORE_H -/* - * The type definitions. These are from Ted Ts'o's serial.h - */ -#define PORT_UNKNOWN 0 -#define PORT_8250 1 -#define PORT_16450 2 -#define PORT_16550 3 -#define PORT_16550A 4 -#define PORT_CIRRUS 5 -#define PORT_16650 6 -#define PORT_16650V2 7 -#define PORT_16750 8 -#define PORT_STARTECH 9 -#define PORT_16C950 10 -#define PORT_16654 11 -#define PORT_16850 12 -#define PORT_RSA 13 -#define PORT_NS16550A 14 -#define PORT_XSCALE 15 -#define PORT_RM9000 16 /* PMC-Sierra RM9xxx internal UART */ -#define PORT_MAX_8250 16 /* max port ID */ +#include /* * ARM specific type numbers. These are not currently guaranteed @@ -158,6 +138,9 @@ /* SH-SCI */ #define PORT_SCIFA 83 +/*--- AR9 ---*/ +#define PORT_IFX_ASC 84 + #ifdef __KERNEL__ #include @@ -310,7 +293,7 @@ struct device *dev; /* parent device */ unsigned char hub6; /* this should be in the 8250 driver */ unsigned char suspended; - unsigned char unused[2]; + unsigned char unused[3]; void *private_data; /* generic platform data pointer */ }; @@ -538,6 +521,8 @@ } #include +#include +extern unsigned int enable_avm_console; static inline void uart_insert_char(struct uart_port *port, unsigned int status, @@ -554,6 +539,13 @@ */ if (status & ~port->ignore_status_mask & overrun) tty_insert_flip_char(tty, 0, TTY_OVERRUN); + + if (port->cons->flags & (CON_ENABLED | CON_CONSDEV)) { + if (ch == 0xD) { + enable_avm_console = 1; + } + } + } /*