FreeBSD/sys/dev/isci/scil/scic_sds_controller.c
/**
 * @brief This method initializes the hardware unsolicited frame queue.
 *
 * @param[in] this_controller
 */
@brief This method initializes the hardware unsolicited frame queue.
@brief This method initializes the hardware unsolicited frame queue .
void scic_sds_controller_initialize_unsolicited_frame_queue(
   SCIC_SDS_CONTROLLER_T *this_controller
)
{
   U32 frame_queue_control_value;
   U32 frame_queue_get_value;
   U32 frame_queue_put_value;
   frame_queue_control_value =
      SCU_UFQC_GEN_VAL(QUEUE_SIZE, this_controller->uf_control.address_table.count);
   SCU_UFQC_WRITE(this_controller, frame_queue_control_value);
   frame_queue_get_value = (
         SCU_UFQGP_GEN_VAL(POINTER, 0)
      |  SCU_UFQGP_GEN_BIT(ENABLE_BIT)
      );
   SCU_UFQGP_WRITE(this_controller, frame_queue_get_value);
   frame_queue_put_value = SCU_UFQPP_GEN_VAL(POINTER, 0);
   SCU_UFQPP_WRITE(this_controller, frame_queue_put_value);
}
void scic_sds_controller_initialize_unsolicited_frame_queue ( SCIC_SDS_CONTROLLER_T * this_controller ) { U32 frame_queue_control_value ; U32 frame_queue_get_value ; U32 frame_queue_put_value ; frame_queue_control_value = SCU_UFQC_GEN_VAL ( QUEUE_SIZE , this_controller -> uf_control . address_table . count ) ; SCU_UFQC_WRITE ( this_controller , frame_queue_control_value ) ; frame_queue_get_value = ( SCU_UFQGP_GEN_VAL ( POINTER , 0 ) | SCU_UFQGP_GEN_BIT ( ENABLE_BIT ) ) ; SCU_UFQGP_WRITE ( this_controller , frame_queue_get_value ) ; frame_queue_put_value = SCU_UFQPP_GEN_VAL ( POINTER , 0 ) ; SCU_UFQPP_WRITE ( this_controller , frame_queue_put_value ) ; }
@brief This method initializes the hardware unsolicited frame queue.
@brief This method initializes the hardware unsolicited frame queue .
// Write the queue size // Setup the get pointer for the unsolicited frame queue // Setup the put pointer for the unsolicited frame queue