software/drivers/sd8887/src/wlan/mlan/mlan_sdio.c
/**
 *  @brief This function enables the host interrupts mask
 *
 *  @param pmadapter A pointer to mlan_adapter structure
 *  @param mask    the interrupt mask
 *  @return        MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
 */
@brief This function enables the host interrupts mask
@param pmadapter A pointer to mlan_adapter structure
@param mask    the interrupt mask
@return        MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@brief This function enables the host interrupts mask @param pmadapter A pointer to mlan_adapter structure @param mask the interrupt mask @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
static mlan_status
wlan_sdio_enable_host_int_mask(pmlan_adapter pmadapter, t_u8 mask)
{
	pmlan_callbacks pcb = &pmadapter->callbacks;
	ENTER();
	if (MLAN_STATUS_SUCCESS != pcb->moal_write_reg(pmadapter->pmoal_handle,
						       HOST_INT_MASK_REG,
						       mask)) {
		PRINTM(MWARN, "Enable host interrupt failed\n");
		LEAVE();
		return MLAN_STATUS_FAILURE;
	}
	LEAVE();
	return MLAN_STATUS_SUCCESS;
}
static mlan_status wlan_sdio_enable_host_int_mask ( pmlan_adapter pmadapter , t_u8 mask ) { pmlan_callbacks pcb = & pmadapter -> callbacks ; ENTER ( ) ; if ( MLAN_STATUS_SUCCESS != pcb -> moal_write_reg ( pmadapter -> pmoal_handle , HOST_INT_MASK_REG , mask ) ) { PRINTM ( MWARN , " \n " ) ; LEAVE ( ) ; return MLAN_STATUS_FAILURE ; } LEAVE ( ) ; return MLAN_STATUS_SUCCESS ; }
@brief This function enables the host interrupts mask
  @param pmadapter A pointer to mlan_adapter structure
  @param mask    the interrupt mask
  @return        MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@brief This function enables the host interrupts mask @param pmadapter A pointer to mlan_adapter structure @param mask the interrupt mask @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
/* Simply write the mask to the register */