findPCICapability
Search configuration space for a PCI capability register.
Declaration
virtual UInt32 findPCICapability(
UInt8 capabilityID,
UInt8 *offset = 0 );Parameters
- capabilityID:
An 8-bit PCI capability ID.
- offset:
An optional pointer to return the offset into config space where the capability was found.
Return Value
The 32-bit value of the capability register if one was found, zero otherwise.
Overview
This method searches the device's config space for a PCI capability register matching the passed capability ID, if the device supports PCI capabilities. To search for PCI Express extended capabilities or for multiple capablities with the same ID, use the extendedFindPCICapability() method.
See Also
Miscellaneous
configRead16configRead32configRead8configWrite16configWrite32configWrite8enablePCIPowerManagementextendedConfigRead16extendedConfigRead32extendedConfigRead8extendedConfigWrite16extendedConfigWrite32extendedConfigWrite8extendedFindPCICapabilitygetBusNumbergetDeviceMemoryWithRegistergetDeviceNumbergetFunctionNumberhasPCIPowerManagementioDeviceMemoryioRead16ioRead32ioRead8ioWrite16ioWrite32ioWrite8mapDeviceMemoryWithRegistersetBusMasterEnablesetConfigBitssetIOEnablesetMemoryEnable