Bewerken

Delen via


SRBEX_DATA_POWER structure (srb.h)

The SRBEX_DATA_POWER structure contains the request data for an extended power SRB.

Note  The SCSI port driver and SCSI miniport driver models may be altered or unavailable in the future. Instead, we recommend using the Storport driver and Storport miniport driver models.
 

Syntax

typedef struct _SRBEX_DATA_POWER {
  SRBEXDATATYPE           Type;
  ULONG                   Length;
  UCHAR                   SrbPowerFlags;
  UCHAR                   Reserved[3];
  STOR_DEVICE_POWER_STATE DevicePowerState;
  STOR_POWER_ACTION       PowerAction;
} SRBEX_DATA_POWER, *PSRBEX_DATA_POWER;

Members

Type

Data type indicator for the bidirectional extended SRB data structure. Set to SrbExDataTypePower.

Length

Length of the data in this structure starting with the SrbPowerFlags member. Set to SRBEX_DATA_POWER_LENGTH.

SrbPowerFlags

Indicates that the power request is for the adapter if SRB_POWER_FLAGS_ADAPTER_REQUEST is set and that storage device address is reserved. Otherwise, SrbPowerFlags will be NULL, indicating that the request is for the storage device specified by an address at AddressOffset in the STORAGE_REQUEST_BLOCK structure.

Reserved[3]

This member is reserved. Set to 0.

DevicePowerState

An enumerator value of type STOR_DEVICE_POWER_STATE that specifies the requested power state of the device.

PowerAction

An enumerator value of type STOR_POWER_ACTION that specifies the type of system shutdown that is about to occur. This value is meaningful only if the device is moving into the D1, D2, or D3 power state as indicated by the DevicePowerState member.

Requirements

Requirement Value
Minimum supported client Available starting with Windows 8.
Header srb.h (include Storport.h, Srb.h, Minitape.h)

See also

STORAGE_REQUEST_BLOCK

STOR_DEVICE_POWER_STATE

STOR_POWER_ACTION