'\" t .\" Title: parport_negotiate .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Parallel Port Devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "PARPORT_NEGOTIATE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Parallel Port Devices" .\" ----------------------------------------------------------------- .\" * 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" parport_negotiate \- negotiate an IEEE 1284 mode .SH "SYNOPSIS" .HP \w'int\ parport_negotiate('u .BI "int parport_negotiate(struct\ parport\ *\ " "port" ", int\ " "mode" ");" .SH "ARGUMENTS" .PP \fIport\fR .RS 4 port to use .RE .PP \fImode\fR .RS 4 mode to negotiate to .RE .SH "DESCRIPTION" .PP Use this to negotiate to a particular IEEE 1284 transfer mode\&. The \fImode\fR parameter should be one of the constants in parport\&.h starting \fBIEEE1284_MODE_xxx\fR\&. .PP The return value is 0 if the peripheral has accepted the negotiation to the mode specified, \-1 if the peripheral is not IEEE 1284 compliant (or not present), or 1 if the peripheral has rejected the negotiation\&. .SH "COPYRIGHT" .br