次の方法で共有


OALPCICfgWrite (Compact 2013)

10/16/2014

This function writes to the PCI configuration space at the location specified by pciLoc.

Syntax

UINT32 OALPCICfgWrite(
  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.
  • offset
    [in] Specifies the address in which pData is to be stored.
  • size
    [in] Size of the address space based on the size of the pData parameter.
  • pData
    [in] Pointer to the data to write to the device configuration space.

Return Value

Returns the number of bytes written to the device configuration space.

Remarks

OALPCICfgWrite is hardware dependent and, in most cases, it is implemented in the SOC library or it is hardware platform-specific.

Requirements

Header

oal_pci.h

Library

Developer Implemented

See Also

Reference

PCI Functions