.\" 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 "OCP_FIND_DEVICE" "9" "09 October 2005" "" "" .SH NAME ocp_find_device \- Find a device by function & index .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp struct ocp_device * ocp_find_device (unsigned int \fIvendor\fB, unsigned int \fIfunction\fB, int \fIindex\fB); \fR .SH "ARGUMENTS" .TP \fB\fIvendor\fB\fR vendor ID of the device (or OCP_ANY_ID) .TP \fB\fIfunction\fB\fR function code of the device (or OCP_ANY_ID) .TP \fB\fIindex\fB\fR -- undescribed -- .SH "DESCRIPTION" .PP This function allows a lookup of a given function by it's index, it's typically used to find the MAL or ZMII associated with an EMAC or similar horrors. You can pass vendor, though you usually want OCP_ANY_ID there...