'\" t .\" Title: uart_add_one_port .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: 16x50 UART Driver .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "UART_ADD_ONE_PORT" "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_add_one_port \- attach a driver\-defined port structure .SH "SYNOPSIS" .HP \w'int\ uart_add_one_port('u .BI "int uart_add_one_port(struct\ uart_driver\ *\ " "drv" ", struct\ uart_port\ *\ " "uport" ");" .SH "ARGUMENTS" .PP \fIdrv\fR .RS 4 pointer to the uart low level driver structure for this port .RE .PP \fIuport\fR .RS 4 uart port structure to use for this port\&. .RE .SH "DESCRIPTION" .PP This allows the driver to register its own uart_port structure with the core driver\&. The main purpose is to allow the low level uart drivers to expand uart_port, rather than having yet more levels of structures\&. .SH "COPYRIGHT" .br