次の方法で共有


OALPCIConfig (Compact 2013)

10/16/2014

This function provides simple PCI bus configuration. It configures the PCI bus device resources.

Syntax

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.

Return Value

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

Header

oal_pci.h

Library

Developer Implemented

See Also

Reference

PCI Functions