OALPCIGetMBAR (Compact 2013)
10/16/2014
This function is a helper function used by the KITL to read the memory-based address register (MBAR) in a PCI bus configuration register.
Syntax
UINT32 OALPCIGetMBAR(
UINT32 busId,
OAL_PCI_LOCATION pciLoc,
UINT32 index
);
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.
- index
[in] Specifies the index for the MBAR to read. Valid values include 0, 1, and 2.
Return Value
Returns the value read from the MBAR.
Requirements
Header |
oal_pci.h |
Library |
Developer Implemented |