diff options
| author | Peter Hurley <peter@hurleysoftware.com> | 2015-03-01 11:05:46 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-06 21:55:07 -0500 |
| commit | 73abaf87f01be6fa6da3c0aa9c138a1b6b281068 (patch) | |
| tree | 165c9ca2fb5d8b583cbf5d83aaa26c486a6f4f83 /include/linux/serial_core.h | |
| parent | 1e1257860fd10487795b782f1dbb5b5f2c203474 (diff) | |
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.h | 2 |
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); | |||
| 354 | 354 | ||
| 355 | struct uart_port *uart_get_console(struct uart_port *ports, int nr, | 355 | struct uart_port *uart_get_console(struct uart_port *ports, int nr, |
| 356 | struct console *c); | 356 | struct console *c); |
| 357 | int uart_parse_earlycon(char *p, unsigned char *iotype, unsigned long *addr, | ||
| 358 | char **options); | ||
| 357 | void uart_parse_options(char *options, int *baud, int *parity, int *bits, | 359 | void uart_parse_options(char *options, int *baud, int *parity, int *bits, |
| 358 | int *flow); | 360 | int *flow); |
| 359 | int uart_set_options(struct uart_port *port, struct console *co, int baud, | 361 | int uart_set_options(struct uart_port *port, struct console *co, int baud, |
