INtime SDK Help
PciSpaceStart, PciSpaceLength, PciSpaceFlags
INtime SDK v7.1 > About INtime > Other system libraries > PCI Library > PciSpaceStart, PciSpaceLength, PciSpaceFlags

Return the base address, length or flags (attributes) of a PCI device region.

DWORD PciSpaceStart(PCIDEV *dev, int index);
DWORD PciSpaceLength(PCIDEV *dev, int index);
DWORD PciSpaceFlags(PCIDEV *dev, int index);

Parameters

dev
A pointer to a PCIDEV structure as returned from a call to PciFIndDevice, PciFindClass or PciReadHeader.
index
The BAR index for a register space on the device.

Return Values

PciSpaceStart returns the physical address of the start of the register space indicated by the index parameter.

PciSpaceLength returns the length in bytes of the register space indicated by the index parameter.

PciSpaceFlags returns a set of flags describing the reigster space indicated by the index parameter. See the description of PCIDEV for details of the flags returned.

Remarks

The calls are currently implemented by macros, and there is no parameter checking.

For 64-bit BAR ranges, use PciGetExtendedAddressSpace.

Requirements

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