FreeBSD/sys/dev/isci/scil/scif_sas_request.c
/**
 * @brief This method constructs the SCIF_SAS_REQUEST object.
 *
 * @param[in] fw_request This parameter specifies the request object to
 *            be constructed.
 * @param[in] fw_device This parameter specifies the remote device object
 *            to which this request is destined.
 * @param[in] logger This parameter specifies the logger associated with
 *            this base request object.
 * @param[in] state_table This parameter specifies the table of state
 *            definitions to be utilized for the request state machine.
 *
 * @return none
 */
@brief This method constructs the SCIF_SAS_REQUEST object.
@param[in] fw_request This parameter specifies the request object to
be constructed.
@param[in] fw_device This parameter specifies the remote device object
to which this request is destined.
@param[in] logger This parameter specifies the logger associated with
this base request object.
@param[in] state_table This parameter specifies the table of state
definitions to be utilized for the request state machine.

@return none
@brief This method constructs the SCIF_SAS_REQUEST object . @param [ in ] fw_request This parameter specifies the request object to be constructed . @param [ in ] fw_device This parameter specifies the remote device object to which this request is destined . @param [ in ] logger This parameter specifies the logger associated with this base request object . @param [ in ] state_table This parameter specifies the table of state definitions to be utilized for the request state machine . @return none
void scif_sas_request_construct(
   SCIF_SAS_REQUEST_T       * fw_request,
   SCIF_SAS_REMOTE_DEVICE_T * fw_device,
   SCI_BASE_LOGGER_T        * logger,
   SCI_BASE_STATE_T         * state_table
)
{
   sci_base_request_construct(&fw_request->parent, logger, state_table);
   SCIF_LOG_TRACE((
      sci_base_object_get_logger(fw_request),
      SCIF_LOG_OBJECT_TASK_MANAGEMENT,
      "scif_sas_request_construct(0x%x, 0x%x, 0x%x, 0x%x) enter\n",
      fw_request, fw_device, logger, state_table
   ));
   fw_request->device                    = fw_device;
   fw_request->is_internal               = FALSE;
   fw_request->lun                       = 0;
   fw_request->terminate_requestor       = NULL;
   fw_request->protocol_complete_handler = NULL;
   fw_request->is_high_priority          = FALSE;
   fw_request->is_waiting_for_abort_task_set = FALSE;
   sci_fast_list_element_init(fw_request, &fw_request->list_element);
}
void scif_sas_request_construct ( SCIF_SAS_REQUEST_T * fw_request , SCIF_SAS_REMOTE_DEVICE_T * fw_device , SCI_BASE_LOGGER_T * logger , SCI_BASE_STATE_T * state_table ) { sci_base_request_construct ( & fw_request -> parent , logger , state_table ) ; SCIF_LOG_TRACE ( ( sci_base_object_get_logger ( fw_request ) , SCIF_LOG_OBJECT_TASK_MANAGEMENT , " \n " , fw_request , fw_device , logger , state_table ) ) ; fw_request -> device = fw_device ; fw_request -> is_internal = FALSE ; fw_request -> lun = 0 ; fw_request -> terminate_requestor = NULL ; fw_request -> protocol_complete_handler = NULL ; fw_request -> is_high_priority = FALSE ; fw_request -> is_waiting_for_abort_task_set = FALSE ; sci_fast_list_element_init ( fw_request , & fw_request -> list_element ) ; }
@brief This method constructs the SCIF_SAS_REQUEST object.
@brief This method constructs the SCIF_SAS_REQUEST object .