.\" This documentation was generated from the book titled "The Linux 2.4 Parallel Port Subsystem", which is part of the Linux kernel source. .\" .\" Documentation by: Tim Waugh (twaugh@redhat.com) .\" Documentation copyright: 1999-2000 Tim Waugh .\" This documentation comes with the following legal notice: .\" .\" Permission is granted to copy, distribute and/or modify this .\" document under the terms of the GNU Free Documentation License, .\" Version 1.1 or any later version published by the Free Software .\" Foundation; with no Invariant Sections, with no Front-Cover Texts, .\" and with no Back-Cover Texts. A copy of the license is included .\" in the section entitled "GNU Free Documentation License". .\" .\" For comments on the formatting of this manpage, please contact Michael Still .\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "PARPORT_DEVICE_COORDS" "9" "06 August 2003" "" "" .SH NAME parport_device_coords \- convert canonical device number .SH SYNOPSIS .sp \fB .sp int parport_device_coords (int \fIdevnum\fB, int * \fIparport\fB, int * \fImux\fB, int * \fIdaisy\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdevnum\fB\fR device number .TP \fB\fIparport\fB\fR pointer to storage for parallel port number .TP \fB\fImux\fB\fR pointer to storage for multiplexor port number .TP \fB\fIdaisy\fB\fR pointer to storage for daisy chain address .SH "DESCRIPTION" .PP This function converts a device number into its coordinates in terms of which parallel port in the system it is attached to, which multiplexor port it is attached to if there is a multiplexor on that port, and which daisy chain address it has if it is in a daisy chain. .PP The caller must allocate storage for \fIparport\fR, \fImux\fR, and \fIdaisy\fR. .PP If there is no device with the specified device number, -ENXIO is returned. Otherwise, the values pointed to by \fIparport\fR, \fImux\fR, and \fIdaisy\fR are set to the coordinates of the device, with -1 for coordinates with no value. .PP This function is not actually very useful, but this interface was suggested by IEEE 1284.3. .SH "ABOUT THIS DOCUMENT" .PP This documentation was generated with kernel version 2.6.0.