table of contents
UART_PARSE_EARLYCON(9) | 16x50 UART Driver | UART_PARSE_EARLYCON(9) |
NAME¶
uart_parse_earlycon - Parse earlycon options
SYNOPSIS¶
int uart_parse_earlycon(char * p, unsigned char * iotype, unsigned long * addr, char ** options);
ARGUMENTS¶
p
iotype
addr
options
DESCRIPTION¶
Decodes earlycon kernel command line parameters of the form earlycon=<name>,io|mmio|mmio16|mmio32|mmio32be|mmio32native,<addr>,<options> console=<name>,io|mmio|mmio16|mmio32|mmio32be|mmio32native,<addr>,<options>
The optional form earlycon=<name>,0x<addr>,<options> console=<name>,0x<addr>,<options> is also accepted; the returned iotype will be UPIO_MEM.
Returns 0 on success or -EINVAL on failure
COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |