FreeBSD/sys/dev/isci/scil/scif_sas_remote_device_ready_substates.c
/**
 * @brief This method implements the actions taken when entering the
 *        READY OPERATIONAL substate.  This includes setting the state
 *        handler methods and issuing a scif_cb_remote_device_ready()
 *        notification to the user.
 *
 * @param[in]  object This parameter specifies the base object for which
 *             the state transition is occurring.  This is cast into a
 *             SCIF_SAS_REMOTE_DEVICE object in the method implementation.
 *
 * @return none
 */
@brief This method implements the actions taken when entering the
READY OPERATIONAL substate.  This includes setting the state
handler methods and issuing a scif_cb_remote_device_ready()
notification to the user.

@param[in]  object This parameter specifies the base object for which
the state transition is occurring.  This is cast into a
SCIF_SAS_REMOTE_DEVICE object in the method implementation.

@return none
@brief This method implements the actions taken when entering the READY OPERATIONAL substate . This includes setting the state handler methods and issuing a scif_cb_remote_device_ready () notification to the user . @param [ in ] object This parameter specifies the base object for which the state transition is occurring . This is cast into a SCIF_SAS_REMOTE_DEVICE object in the method implementation . @return none
static
void scif_sas_remote_device_ready_operational_substate_enter(
   SCI_BASE_OBJECT_T *object
)
{
   SCIF_SAS_REMOTE_DEVICE_T * fw_device = (SCIF_SAS_REMOTE_DEVICE_T *)object;
   SET_STATE_HANDLER(
      fw_device,
      scif_sas_remote_device_ready_substate_handler_table,
      SCIF_SAS_REMOTE_DEVICE_READY_SUBSTATE_OPERATIONAL
   );
   SCIF_LOG_INFO((
      sci_base_object_get_logger(fw_device),
      SCIF_LOG_OBJECT_REMOTE_DEVICE | SCIF_LOG_OBJECT_REMOTE_DEVICE_CONFIG,
      "Domain:0x%x Device:0x%x device ready\n",
      fw_device->domain, fw_device
   ));
   scif_cb_remote_device_ready(
      fw_device->domain->controller, fw_device->domain, fw_device
   );
}
static void scif_sas_remote_device_ready_operational_substate_enter ( SCI_BASE_OBJECT_T * object ) { SCIF_SAS_REMOTE_DEVICE_T * fw_device = ( SCIF_SAS_REMOTE_DEVICE_T * ) object ; SET_STATE_HANDLER ( fw_device , scif_sas_remote_device_ready_substate_handler_table , SCIF_SAS_REMOTE_DEVICE_READY_SUBSTATE_OPERATIONAL ) ; SCIF_LOG_INFO ( ( sci_base_object_get_logger ( fw_device ) , SCIF_LOG_OBJECT_REMOTE_DEVICE | SCIF_LOG_OBJECT_REMOTE_DEVICE_CONFIG , " \n " , fw_device -> domain , fw_device ) ) ; scif_cb_remote_device_ready ( fw_device -> domain -> controller , fw_device -> domain , fw_device ) ; }
@brief This method implements the actions taken when entering the
        READY OPERATIONAL substate.
@brief This method implements the actions taken when entering the READY OPERATIONAL substate .
// Notify the user that the device has become ready.