Freigeben über


NdisWritePciSlotInformation (Compact 2013)

3/26/2014

This function writes a specified number of bytes to the PCI configuration space for an NIC on the PCI bus.

Syntax

ULONG NdisWritePciSlotInformation(
  NDIS_HANDLE NdisAdapterHandle,
  ULONG SlotNumber,
  ULONG Offset,
  PVOID Buffer,
  ULONG Length
);

Parameters

  • NdisAdapterHandle
    [in] Specifies the MiniportAdapterHandle passed in to the MiniportInitialize function and to most other MiniportXXX functions.
  • SlotNumber
    [in] Reserved. NDIS ignores this parameter.
  • Offset
    [in] Specifies the byte offset within the PCI configuration space at which to begin transferring the caller-supplied configuration information.
  • Buffer
    [in] Pointer to a caller-allocated buffer containing the PCI configuration information to be written.
  • Length
    [in] Specifies the size, in bytes, of the buffer at Buffer and, therefore, how many bytes of PCI configuration information to write.

Return Value

Returns how many bytes of caller-supplied data it wrote.

Remarks

This function writes PCI configuration information for an NIC. Normally, drivers call NdisMQueryAdapterResources to find out what resources have been assigned to the adapter.

The caller is responsible for releasing the memory at Buffer when this function returns control.

Requirements

Header

ndis.h

See Also

Reference

NDIS 5.x Legacy Functions
NdisFreeMemory
NdisMMapIoSpace
NdisMQueryAdapterResources
NdisMRegisterInterrupt
NdisMRegisterIoPortRange
NdisMSetAttributes
NdisMSetAttributesEx
NdisReadPciSlotInformation