OALPCIConfig (Windows CE 5.0)
This function provides simple PCI bus configuration. It configures the PCI bus device resources.
BOOL OALPCIConfig( UINT32 busId, UINT32 memBase, UINT32 memSize, UINT32 ioBase, UINT32 ioSize, UINT32 pciLocCount, OAL_PCI_LOCATION *aPciLoc);
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. - memBase
[in] Starting address for the PCI bus memory window. - memSize
[in] Size of the PCI bus memory window specified in the memBase parameter. - ioBase
[in] Starting address for the I/O window. - ioSize
[in] Size of the I/O window specified in the ioBase parameter. - pciLocCount
[in] Specifies the number of devices to configure in the location list. When pciLocCount is set to -1, all devices are configured. When you set a value greater than 1, devices on the position defined by aPciLoc are configured. - aPciLoc
[in] Pointer to an array of OAL_PCI_LOCATION structures.
Return Values
TRUE indicates success.
FALSE indicates failure.
Remarks
By default, this function configures all bridges and devices specified in the location list based on the pciLocCount and aPciLoc parameters.
In most cases, you should configure only the device used by KITL because configuration does not optimize resource use.
Note Current implementation does not check the memory and IO window size.
Requirements
OS Versions: Windows CE Version 5.0 and later
Header: Oal_pci.h
Link Library: Developer-defined
See Also
Send Feedback on this topic to the authors