FreeBSD/sys/dev/isci/scil/scic_sds_controller.c
/**
 * @brief This method initializes the task context data for the controller.
 *
 * @param[in] this_controller
 *
 * @return none
 */
@brief This method initializes the task context data for the controller.

@return none
@brief This method initializes the task context data for the controller . @return none
void scic_sds_controller_assign_task_entries(
   SCIC_SDS_CONTROLLER_T *this_controller
)
{
   U32 task_assignment;
   task_assignment = SMU_TCA_READ(this_controller, 0);
   task_assignment =
      (
          task_assignment
        | (SMU_TCA_GEN_VAL(STARTING, 0))
        | (SMU_TCA_GEN_VAL(ENDING,  this_controller->task_context_entries - 1))
        | (SMU_TCA_GEN_BIT(RANGE_CHECK_ENABLE))
      );
   SMU_TCA_WRITE(this_controller, 0, task_assignment);
}
void scic_sds_controller_assign_task_entries ( SCIC_SDS_CONTROLLER_T * this_controller ) { U32 task_assignment ; task_assignment = SMU_TCA_READ ( this_controller , 0 ) ; task_assignment = ( task_assignment | ( SMU_TCA_GEN_VAL ( STARTING , 0 ) ) | ( SMU_TCA_GEN_VAL ( ENDING , this_controller -> task_context_entries - 1 ) ) | ( SMU_TCA_GEN_BIT ( RANGE_CHECK_ENABLE ) ) ) ; SMU_TCA_WRITE ( this_controller , 0 , task_assignment ) ; }
@brief This method initializes the task context data for the controller.
@brief This method initializes the task context data for the controller .
// Assign all the TCs to function 0 // TODO: Do we actually need to read this register to write it back?