FreeBSD/sys/dev/isci/scil/scic_sds_stp_remote_device.c
/**
 * This method will handle the event for a sata device that is in
 * the idle state. We pick up suspension events to handle specifically
 * to this state. We resume the RNC right away.
 *
 * @param [in] device The device received event.
 * @param [in] event_code The event code.
 *
 * @return SCI_STATUS
 */
This method will handle the event for a sata device that is in
the idle state. We pick up suspension events to handle specifically
to this state. We resume the RNC right away.

@param [in] device The device received event.
@param [in] event_code The event code.


This method will handle the event for a sata device that is in the idle state . We pick up suspension events to handle specifically to this state . We resume the RNC right away . @param [ in ] device The device received event . @param [ in ] event_code The event code .
static
SCI_STATUS scic_sds_stp_remote_device_ready_idle_substate_event_handler(
   SCIC_SDS_REMOTE_DEVICE_T * this_device,
   U32                        event_code
)
{
   SCI_STATUS status;
   status = scic_sds_remote_device_general_event_handler(this_device, event_code);
   if (status == SCI_SUCCESS)
   {
      if ((scu_get_event_type(event_code) == SCU_EVENT_TYPE_RNC_SUSPEND_TX
          || scu_get_event_type(event_code) == SCU_EVENT_TYPE_RNC_SUSPEND_TX_RX)
          && (this_device->rnc->destination_state != SCIC_SDS_REMOTE_NODE_DESTINATION_STATE_READY))
      {
         status = scic_sds_remote_node_context_resume(
                  this_device->rnc, NULL, NULL);
      }
   }
   return status;
}
static SCI_STATUS scic_sds_stp_remote_device_ready_idle_substate_event_handler ( SCIC_SDS_REMOTE_DEVICE_T * this_device , U32 event_code ) { SCI_STATUS status ; status = scic_sds_remote_device_general_event_handler ( this_device , event_code ) ; if ( status == SCI_SUCCESS ) { if ( ( scu_get_event_type ( event_code ) == SCU_EVENT_TYPE_RNC_SUSPEND_TX || scu_get_event_type ( event_code ) == SCU_EVENT_TYPE_RNC_SUSPEND_TX_RX ) && ( this_device -> rnc -> destination_state != SCIC_SDS_REMOTE_NODE_DESTINATION_STATE_READY ) ) { status = scic_sds_remote_node_context_resume ( this_device -> rnc , NULL , NULL ) ; } } return status ; }
This method will handle the event for a sata device that is in
 the idle state.
This method will handle the event for a sata device that is in the idle state .