ULONG
ScsiPortSetBusDataByOffset(
IN PVOID DeviceExtension,
IN ULONG BusDataType,
IN ULONG SystemIoBusNumber,
IN ULONG SlotNumber,
IN PVOID Buffer,
IN ULONG Offset,
IN ULONG Length
);
ScsiPortSetBusDataByOffset sets bus-configuration data for an adapter on a dynamically configurable I/O bus with a published, standard interface.
When PCIConfiguration is specified as the BusDataType, this
parameter must be specified as a PCI_SLOT_NUMBER-type value.
When PCIConfiguration is specified, the buffer contains some or all of
the PCI_COMMON_CONFIG information for the given SlotNumber. The
specified Offset and Length determine how much information is
supplied.
ScsiPortSetBusDataByOffset returns the number of bytes of data successfully set for the given SlotNumber. If the given BusDataType is not valid for the current platform or if the supplied information is invalid, ScsiPortSetBusDataByOffset returns zero.
Miniport drivers of HBAs on a PCI bus seldom call ScsiPortSetBusDataByOffset unless unusual circumstances or the nature of a particular driver’s HBA requires such a call. For example, a miniport driver might call ScsiPortSetBusDataByOffset to clear a bit in the PCI status register if its HBA signals a target abort during initialization or to set device-specific configuration data for the HBA.
ScsiPortSetBusDataByOffset can be called only from the miniport’s HwScsiFindAdapter routine.
HalSetBusDataByOffset, HwScsiFindAdapter, PCI_COMMON_CONFIG, PCI_SLOT_NUMBER, PORT_CONFIGURATION_INFORMATION, ScsiPortGetBusData