'\" t .\" Title: uart_parse_earlycon .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: 16x50 UART Driver .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "UART_PARSE_EARLYCON" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "16x50 UART Driver" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" uart_parse_earlycon \- Parse earlycon options .SH "SYNOPSIS" .HP \w'int\ uart_parse_earlycon('u .BI "int uart_parse_earlycon(char\ *\ " "p" ", unsigned\ char\ *\ " "iotype" ", unsigned\ long\ *\ " "addr" ", char\ **\ " "options" ");" .SH "ARGUMENTS" .PP \fIp\fR .RS 4 ptr to 2nd field (ie\&., just beyond \*(Aq,\*(Aq) .RE .PP \fIiotype\fR .RS 4 ptr for decoded iotype (out) .RE .PP \fIaddr\fR .RS 4 ptr for decoded mapbase/iobase (out) .RE .PP \fIoptions\fR .RS 4 ptr for field; NULL if not present (out) .RE .SH "DESCRIPTION" .PP Decodes earlycon kernel command line parameters of the form earlycon=,io|mmio|mmio16|mmio32|mmio32be|mmio32native,, console=,io|mmio|mmio16|mmio32|mmio32be|mmio32native,, .PP The optional form earlycon=,0x, console=,0x, is also accepted; the returned \fIiotype\fR will be UPIO_MEM\&. .PP Returns 0 on success or \-EINVAL on failure .SH "COPYRIGHT" .br