FreeBSD/sys/dev/isci/scil/scif_sas_controller.c
/**
 * @brief This method releases resource for framework controller and associated
 *        objects.
 *
 * @param[in] fw_controller This parameter specifies the framework
 *            controller and associated objects whose resources are to be released.
 *
 * @return This method returns a value indicating if the operation succeeded.
 * @retval SCI_SUCCESS This value indicates that resource release succeeded.
 * @retval SCI_FAILURE This value indicates certain failure during the process
 *            of resource release.
 */
@brief This method releases resource for framework controller and associated
objects.

@param[in] fw_controller This parameter specifies the framework
controller and associated objects whose resources are to be released.

@return This method returns a value indicating if the operation succeeded.
@retval SCI_SUCCESS This value indicates that resource release succeeded.
@retval SCI_FAILURE This value indicates certain failure during the process
of resource release.
@brief This method releases resource for framework controller and associated objects . @param [ in ] fw_controller This parameter specifies the framework controller and associated objects whose resources are to be released . @return This method returns a value indicating if the operation succeeded . @retval SCI_SUCCESS This value indicates that resource release succeeded . @retval SCI_FAILURE This value indicates certain failure during the process of resource release .
SCI_STATUS scif_sas_controller_release_resource(
   SCIF_SAS_CONTROLLER_T * fw_controller
)
{
   U8 index;
   SCIF_SAS_DOMAIN_T * fw_domain;
   SCIF_LOG_TRACE((
      sci_base_object_get_logger(fw_controller),
      SCIF_LOG_OBJECT_CONTROLLER,
      "scif_sas_controller_release_resource(0x%x) enter\n",
      fw_controller
   ));
   for (index = 0; index < SCI_MAX_DOMAINS; index++)
   {
      fw_domain = &fw_controller->domains[index];
      scif_sas_domain_release_resource(fw_controller, fw_domain);
   }
   return SCI_SUCCESS;
}
SCI_STATUS scif_sas_controller_release_resource ( SCIF_SAS_CONTROLLER_T * fw_controller ) { U8 index ; SCIF_SAS_DOMAIN_T * fw_domain ; SCIF_LOG_TRACE ( ( sci_base_object_get_logger ( fw_controller ) , SCIF_LOG_OBJECT_CONTROLLER , " \n " , fw_controller ) ) ; for ( index = 0 ; index < SCI_MAX_DOMAINS ; index ++ ) { fw_domain = & fw_controller -> domains [ index ] ; scif_sas_domain_release_resource ( fw_controller , fw_domain ) ; } return SCI_SUCCESS ; }
@brief This method releases resource for framework controller and associated
        objects.
@brief This method releases resource for framework controller and associated objects .
//currently the only resource to be released is domain's timer.