SysPciGetConfigEntry (FUN)

FUNCTION SysPciGetConfigEntry : RTS_IEC_RESULT

<description>Get one PCI config entry. This function allows to read the configuration data of a PCI card. The data is stored in a structure of type PCI_INFO and filled into the PCI bus. By means of the bus, device and function number SysPciGetConfigEntry identifies the associated bus entry and returns a pointer to it. </description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result>

InOut:

Scope

Name

Type

Comment

Return

SysPciGetConfigEntry

RTS_IEC_RESULT

Input

usBus

WORD

<param name=”usBus” type=”IN”>PCI bus number (index)</param>

usDevice

WORD

<param name=”usDevice” type=”IN”>PCI device number (index)</param>

usFunction

WORD

<param name=”usFunction” type=”IN”>PCI function number (index)</param>

pPciInfo

POINTER TO PCI_INFO

<param name=”pPciInfo” type=”OUT”>Pointer to structure PCI_INFO containing information on the PCI card</param>