PARPORT_DEVICE_COORDS

Section: (9)
Updated: 06 August 2003
Index Return to Main Contents

 

NAME

parport_device_coords - convert canonical device number  

SYNOPSIS

int parport_device_coords (int devnum, int * parport, int * mux, int * daisy);  

ARGUMENTS

devnum
device number
parport
pointer to storage for parallel port number
mux
pointer to storage for multiplexor port number
daisy
pointer to storage for daisy chain address
 

DESCRIPTION

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.

The caller must allocate storage for parport, mux, and daisy.

If there is no device with the specified device number, -ENXIO is returned. Otherwise, the values pointed to by parport, mux, and daisy are set to the coordinates of the device, with -1 for coordinates with no value.

This function is not actually very useful, but this interface was suggested by IEEE 1284.3.  

ABOUT THIS DOCUMENT

This documentation was generated with kernel version 2.6.0.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
ABOUT THIS DOCUMENT

This document was created by man2html, using the manual pages.
Time: 08:41:27 GMT, April 09, 2004