D3 cold for storport miniport

Source: Internet
Author: User

Mark...

Http://msdn.microsoft.com/en-us/library/windows/hardware/hh920421 (V = vs.85). aspx

A miniport driver CILSStorportinitializepofxpowerTo register a storage device with the power management framework (pofx ).

Syntaxc ++
ULONG StorPortInitializePoFxPower(  _In_      PVOID HwDeviceExtension,  _In_opt_  PSTOR_ADDRESS Address,  _In_      PSTOR_POFX_DEVICE Device,  _Inout_   PBOOLEAN D3ColdEnabled);
Parameters
Hwdeviceextension[In]

A pointer to the hardware device extension for the host bus adapter (HBA ).

Address[IN, optional]

The address of a storage device unit. This parameter isNullWhen registering for a storage adapter.

Device[In]

A pointer toStor_pofx_device_v2Structure cast to a pointerStor_pofx_device.
This structure contains a component list with F-States for a storage device.

D3coldenabled[In, out]

A pointer toBooleanValue which the storport driver will set to indicate whether the D3 cold state is enabled for the storage device.

Return Value

TheStorportinitializepofxpowerRoutine returns one of these status codes:

Return code Description
Stor_status_invalid_parameter

EitherHwdeviceextensionOrDeviceIs null.

-Or-

AddressPoints to an invalid unit address structure.

-Or-

The storage device specifiedAddressIs not found.

-Or-

TheStor_pofx_deviceStructure pointed
ToDeviceIs formatted incorrectly or contains invalid data.

Stor_status_success

The storage device was successfully registered with pofx.

Stor_status_insufficient_resources

Sufficient resources are not available to register the storage device with pofx.

Stor_status_unsuccessful

The storage device was not successfully registered with pofx.

-Or-

The storage device is already registered with pofx.

 

Remarks

Adapter devices are always registered withNullValueAddress. Unit devices are registered by specifying a valid unit addressAddress.

IfStor_pofx_device_flag_enable_d3_coldFlag is set inFlagsMemberDevice, Storport will attempt to enable D3 cold support for the device component. The D3 cold enabled status is returned inBooleanValue
Pointed toD3coldenabled.

Requirements

Version

Available in starting with Windows 8.

Header

Storport. h
See also
Stor_pofx_device

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.