1PCI_FIND_CAPABILITY(9) Hardware Interfaces PCI_FIND_CAPABILITY(9)
2
3
4
6 pci_find_capability - query for devices' capabilities
7
9 int pci_find_capability(struct pci_dev * dev, int cap);
10
12 dev
13 PCI device to query
14
15 cap
16 capability code
17
19 Tell if a device supports a given PCI capability. Returns the address
20 of the requested capability structure within the device's PCI
21 configuration space or 0 in case the device does not support it.
22 Possible values for cap:
23
24 PCI_CAP_ID_PM Power Management PCI_CAP_ID_AGP Accelerated Graphics Port
25 PCI_CAP_ID_VPD Vital Product Data PCI_CAP_ID_SLOTID Slot Identification
26 PCI_CAP_ID_MSI Message Signalled Interrupts PCI_CAP_ID_CHSWP CompactPCI
27 HotSwap PCI_CAP_ID_PCIX PCI-X PCI_CAP_ID_EXP PCI Express
28
30Kernel Hackers Manual 2.6. November 2011 PCI_FIND_CAPABILITY(9)