FreeBSD/sys/dev/isci/scil/scic_sds_controller.c
/**
 * @brief This is the method provided to handle the completions for a
 *        normal MSIX message.
 *
 * @param[in] controller
 */
@brief This is the method provided to handle the completions for a
normal MSIX message.

@param[in] controller
@brief This is the method provided to handle the completions for a normal MSIX message . @param [ in ] controller
static
void scic_sds_controller_normal_vector_completion_handler(
   SCI_CONTROLLER_HANDLE_T controller
)
{
   SCIC_SDS_CONTROLLER_T *this_controller;
   this_controller = (SCIC_SDS_CONTROLLER_T *)controller;
   SCIC_LOG_TRACE((
      sci_base_object_get_logger(controller),
      SCIC_LOG_OBJECT_CONTROLLER,
      "scic_sds_controller_normal_vector_completion_handler(0x%d) enter\n",
      controller
   ));
   if (scic_sds_controller_completion_queue_has_entries(this_controller))
   {
      scic_sds_controller_process_completions(this_controller);
   }
   SMU_ISR_WRITE(this_controller, SMU_ISR_COMPLETION);
   SMU_IMR_WRITE(this_controller, 0xFF000000);
   SMU_IMR_WRITE(this_controller, 0x00000000);
}
static void scic_sds_controller_normal_vector_completion_handler ( SCI_CONTROLLER_HANDLE_T controller ) { SCIC_SDS_CONTROLLER_T * this_controller ; this_controller = ( SCIC_SDS_CONTROLLER_T * ) controller ; SCIC_LOG_TRACE ( ( sci_base_object_get_logger ( controller ) , SCIC_LOG_OBJECT_CONTROLLER , " \n " , controller ) ) ; if ( scic_sds_controller_completion_queue_has_entries ( this_controller ) ) { scic_sds_controller_process_completions ( this_controller ) ; } SMU_ISR_WRITE ( this_controller , SMU_ISR_COMPLETION ) ; SMU_IMR_WRITE ( this_controller , 0xFF000000 ) ; SMU_IMR_WRITE ( this_controller , 0x00000000 ) ; }
@brief This is the method provided to handle the completions for a
        normal MSIX message.
@brief This is the method provided to handle the completions for a normal MSIX message .
// Empty out the completion queue // Clear the interrupt and enable all interrupts again // Could we write the value of SMU_ISR_COMPLETION?