summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/8250/8250.h
diff options
context:
space:
mode:
authorPeter Hurley2015-06-27 15:19:00 +0200
committerGreg Kroah-Hartman2015-07-24 02:43:01 +0200
commitb6830f6df8914faae9561bb245860c21af9b9e9b (patch)
tree038105f013e5738347010f3ea81a7ba7291e52a8 /drivers/tty/serial/8250/8250.h
parenttty: serial: imx.c: Reset UART before activating interrupts (diff)
downloadkernel-qcow2-linux-b6830f6df8914faae9561bb245860c21af9b9e9b.tar.gz
kernel-qcow2-linux-b6830f6df8914faae9561bb245860c21af9b9e9b.tar.xz
kernel-qcow2-linux-b6830f6df8914faae9561bb245860c21af9b9e9b.zip
serial: 8250: Split base port operations from universal driver
Refactor base port operations into new file; 8250_port.c. Legacy irq handling, RSA port support, port storage for universal driver, driver definition, module parameters and linkage remain in 8250_core.c The source file split and resulting modules is diagrammed below: 8250_core.c ====> 8250_core.c __ \ \ \ +-- 8250.ko (alias 8250_core) \ 8250_pnp.c __/ (universal driver) \ => 8250_port.c __ \ +-- 8250_base.ko 8250_dma.c __/ (port operations) Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/8250/8250.h')
-rw-r--r--drivers/tty/serial/8250/8250.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/tty/serial/8250/8250.h b/drivers/tty/serial/8250/8250.h
index c43f74c53cd9..dd233108ec07 100644
--- a/drivers/tty/serial/8250/8250.h
+++ b/drivers/tty/serial/8250/8250.h
@@ -211,3 +211,14 @@ static inline int ns16550a_goto_highspeed(struct uart_8250_port *up)
}
return 1;
}
+
+static inline int serial_index(struct uart_port *port)
+{
+ return port->minor - 64;
+}
+
+#if 0
+#define DEBUG_INTR(fmt...) printk(fmt)
+#else
+#define DEBUG_INTR(fmt...) do { } while (0)
+#endif