Obtains and decodes extended BAR address space information from a PCI device.
The PCIDEV structure should be fully initialized, as returned from a call to PciFindDevice, PciFindClass or PciReadHeader.
BOOLEAN PciGetExtendedAddressSpace( PCIDEV *pPciDevice, PCISPACE *space, LPDWORD pdwCount);
pPciDevice
pSpace
pdwCount
Use this call before calling PciReadHeader, as follows:
PciGetExtendedAddressSpace sample |
Copy Code |
---|---|
PCIDEV pci; // read the header info for device @ PCI 2:0.0 pci.wBusNum = 2; // Read the device header information PciReadHeader(&pci); |
TRUE, if the device exists. Otherwise FALSE.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 6.3 | intime/rt/include/pcibus.h | pcibus.h | pcibus.lib |