INtime SDK Help
PciFindCapability
INtime SDK v7.1 > About INtime > Other system libraries > PCI Library > PciFindCapability

Locates the offset in PCI configuration space of a capability record for a PCI device.

BYTE PciFIndCapability(
    PCIDEV *pPciDevice, 
    BYTE byCapType
);

Parameters

pPciDevice
A pointer to a PCIDEV structure returned from a prior call to PciFIndDevice, PciFindClass or PciReadHeader.
byCapType
A PCI capability ID value, as defined by the PCI bus specifications. Suitable values include the following:
PCI_CAP_ID_PM Power management
PCI_CAP_ID_AGP Accelerated Graphics Port
PCI_CAP_ID_VPD Vital Product Data
PCI_CAP_ID_SLOTID Slot Identification
PCI_CAP_ID_MSI Message Signalled Interrupts
PCI_CAP_ID_CHSWP CompactPCI HotSwap
PCI_CAP_ID_PCIX PCI-X
PCI_CAP_ID_SHPC PCI Standard Hot-plug controller
PCI_CAP_ID_EXP PCI Express
PCI_CAP_ID_MSIX MSI-X

Return Values

A non-zero BYTE value representing the offset in the device header to the capability record.
Success.
0 (zero)
Failure.

Requirements

Versions Defined in Include Link to
INtime 3.1 intime/rt/include/pcibus.h pcibus.h pcibus.lib
   
See Also