OALPCICfgRead (Compact 2013)
10/16/2014
This function reads the PCI configuration space located at the address specified by the pciLoc parameter.
Syntax
UINT32 OALPCICfgRead(
UINT32 busId,
OAL_PCI_LOCATION pciLoc,
UINT32 offset,
UINT32 size,
VOID *pData
);
Parameters
- busId
[in] Identifies the PCI bus controller if there are multiple PCI bus controllers on the system. Set this parameter to 0 to represent the first bus controller, set this value to 1 to represent the second bus controller, and so on.
- pciLoc
[in] Specifies an OAL_PCI_LOCATION structure.
- offset
[in] Specifies the address in which pData is stored.
- size
[in] Size of the address space based on the size of the pData parameter.
- pData
[out] Pointer to the data read from the device configuration space.
Return Value
Returns the number of bytes read from the device configuration space.
Remarks
OALPCICfgRead is hardware dependent and is typically implemented in the SOC library or it is hardware platform specific.
Requirements
Header |
oal_pci.h |
Library |
Developer Implemented |