.\" 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 "PCI_FIND_CAPABILITY" "" "06 October 2005" "" "" .SH NAME pci_find_capability \- query for devices' capabilities .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int pci_find_capability (struct pci_dev * \fIdev\fB, int \fIcap\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdev\fB\fR PCI device to query .TP \fB\fIcap\fB\fR capability code .SH "DESCRIPTION" .PP Tell if a device supports a given PCI capability. Returns the address of the requested capability structure within the device's PCI configuration space or 0 in case the device does not support it. Possible values for \fIcap\fR: .PP PCI_CAP_ID_PM Power Management .PP PCI_CAP_ID_AGP Accelerated Graphics Port .PP PCI_CAP_ID_VPD Vital Product Data .PP PCI_CAP_ID_SLOTID Slot Identification .PP PCI_CAP_ID_MSI Message Signalled Interrupts .PP PCI_CAP_ID_CHSWP CompactPCI HotSwap .PP PCI_CAP_ID_PCIX PCI-X