System power management and the Dynamic Reconfiguration framework pass the command DDI_SUSPEND to the detach(9E) driver entry point to request that the driver save the device hardware state. The driver may fail the suspend operation if outstanding operations cannot be completed soon or aborted, or if non-cancellable callbacks are outstanding, in which case the system will abort the suspend operation. Note that the driver instance may already have been power managed using DDI_PM_SUSPEND.
Set a suspended flag to block new operations.
Wait until outstanding operations have completed, or abort them if they can be restarted.
Block further operations from being initiated until the device is resumed (except for dump(9E) requests). Refer to sample code in Writing Device Drivers and the bst sample driver.
Cancel pending callouts such as timeout callbacks, and quiesce or destroy other driver threads.
Save any volatile hardware state in memory. This state includes the contents of device registers, and can also include downloaded firmware.
DDI_SUSPEND is always followed by DDI_RESUME. There may or may not be power interruption.