software/drivers/sd8887/src/wlan/mlan/mlan_sdio.c
/**
 *  @brief This function probes the driver
 *
 *  @param pmadapter  A pointer to mlan_adapter structure
 *  @return           MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
 */
@brief This function probes the driver
@param pmadapter  A pointer to mlan_adapter structure
@return           MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@brief This function probes the driver @param pmadapter A pointer to mlan_adapter structure @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
mlan_status
wlan_sdio_probe(pmlan_adapter pmadapter)
{
	mlan_status ret = MLAN_STATUS_SUCCESS;
	t_u32 sdio_ireg = 0;
	pmlan_callbacks pcb = &pmadapter->callbacks;
	ENTER();
	pcb->moal_read_reg(pmadapter->pmoal_handle,
			   HOST_INT_STATUS_REG, &sdio_ireg);
	ret = wlan_disable_host_int(pmadapter);
	if (ret != MLAN_STATUS_SUCCESS) {
		LEAVE();
		return MLAN_STATUS_FAILURE;
	}
	ret = wlan_sdio_init_ioport(pmadapter);
	LEAVE();
	return ret;
}
mlan_status wlan_sdio_probe ( pmlan_adapter pmadapter ) { mlan_status ret = MLAN_STATUS_SUCCESS ; t_u32 sdio_ireg = 0 ; pmlan_callbacks pcb = & pmadapter -> callbacks ; ENTER ( ) ; pcb -> moal_read_reg ( pmadapter -> pmoal_handle , HOST_INT_STATUS_REG , & sdio_ireg ) ; ret = wlan_disable_host_int ( pmadapter ) ; if ( ret != MLAN_STATUS_SUCCESS ) { LEAVE ( ) ; return MLAN_STATUS_FAILURE ; } ret = wlan_sdio_init_ioport ( pmadapter ) ; LEAVE ( ) ; return ret ; }
@brief This function probes the driver
  @param pmadapter  A pointer to mlan_adapter structure
  @return           MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@brief This function probes the driver @param pmadapter A pointer to mlan_adapter structure @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
/*
	 * Read the HOST_INT_STATUS_REG for ACK the first interrupt got
	 * from the bootloader. If we don't do this we get a interrupt
	 * as soon as we register the irq.
	 */ /* Disable host interrupt mask register for SDIO */ /* Get SDIO ioport */