Jungo WinDriver  
Official Documentation

◆ WDC_PciReadCfgBySlot()

DWORD DLLCALLCONV WDC_PciReadCfgBySlot ( _In_ WD_PCI_SLOT pPciSlot,
_In_ DWORD  dwOffset,
_Outptr_ PVOID  pData,
_In_ DWORD  dwBytes 
)

Read/write a block of any length from the PCI configuration space.


Access PCI configuration space

Identify device by its location. Reads data from a specified offset in a PCI device's configuration space or a PCI Express device's extended configuration space. The device is identified by its location on the PCI bus.

Parameters
[in]pPciSlotPointer to a PCI device location information structure, which can be acquired by calling WDC_PciScanDevices()
[in]dwOffsetThe offset from the beginning of the PCI configuration space to read from.
[out]pDataPointer to a buffer to be filled with the data that is read from the PCI configuration space.
[in]dwBytesThe number of bytes to read.
Returns
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise