summaryrefslogtreecommitdiffstats
path: root/include/linux/serial_core.h
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2015-03-01 11:05:46 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-07 03:55:07 +0100
commit73abaf87f01be6fa6da3c0aa9c138a1b6b281068 (patch)
tree165c9ca2fb5d8b583cbf5d83aaa26c486a6f4f83 /include/linux/serial_core.h
parent1e1257860fd10487795b782f1dbb5b5f2c203474 (diff)
downloadlinux-stable-73abaf87f01be6fa6da3c0aa9c138a1b6b281068.tar.gz
linux-stable-73abaf87f01be6fa6da3c0aa9c138a1b6b281068.tar.bz2
linux-stable-73abaf87f01be6fa6da3c0aa9c138a1b6b281068.zip
serial: earlycon: Refactor parse_options into serial core
Prepare to support console-defined matching; refactor the command line parameter string processing from parse_options() into a new core function, uart_parse_earlycon(), which decodes command line parameters of the form: earlycon=<name>,io|mmio|mmio32,<addr>,<options> console=<name>,io|mmio|mmio32,<addr>,<options> earlycon=<name>,0x<addr>,<options> console=<name>,0x<addr>,<options> Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/serial_core.h')
-rw-r--r--include/linux/serial_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index baf3e1d08416..cc5c506f07dd 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -354,6 +354,8 @@ early_param("earlycon", name ## _setup_earlycon);
struct uart_port *uart_get_console(struct uart_port *ports, int nr,
struct console *c);
+int uart_parse_earlycon(char *p, unsigned char *iotype, unsigned long *addr,
+ char **options);
void uart_parse_options(char *options, int *baud, int *parity, int *bits,
int *flow);
int uart_set_options(struct uart_port *port, struct console *co, int baud,