software/drivers/sd8887/src/bluetooth/bt/bt_main.c
/**
 *  @brief This function handles the interrupt. it will change PS
 *  state if applicable. it will wake up main_thread to handle
 *  the interrupt event as well.
 *
 *  @param m_dev   A pointer to m_dev structure
 *  @return        N/A
 */
@brief This function handles the interrupt. it will change PS
state if applicable. it will wake up main_thread to handle
the interrupt event as well.

@param m_dev   A pointer to m_dev structure
@return        N/A
@brief This function handles the interrupt . it will change PS state if applicable . it will wake up main_thread to handle the interrupt event as well . @param m_dev A pointer to m_dev structure @return N / A
void
bt_interrupt(struct m_dev *m_dev)
{
	bt_private *priv = (bt_private *)m_dev->driver_data;
	ENTER();
	if (!priv || !priv->adapter) {
		LEAVE();
		return;
	}
	PRINTM(INTR, "*\n");
	priv->adapter->ps_state = PS_AWAKE;
	if (priv->adapter->hs_state == HS_ACTIVATED) {
		PRINTM(CMD, "BT: %s: HS DEACTIVATED in ISR!\n", m_dev->name);
		priv->adapter->hs_state = HS_DEACTIVATED;
	}
	priv->adapter->WakeupTries = 0;
	priv->adapter->IntCounter++;
	wake_up_interruptible(&priv->MainThread.waitQ);
	LEAVE();
}
void bt_interrupt ( struct m_dev * m_dev ) { bt_private * priv = ( bt_private * ) m_dev -> driver_data ; ENTER ( ) ; if ( ! priv || ! priv -> adapter ) { LEAVE ( ) ; return ; } PRINTM ( INTR , " \n " ) ; priv -> adapter -> ps_state = PS_AWAKE ; if ( priv -> adapter -> hs_state == HS_ACTIVATED ) { PRINTM ( CMD , " \n " , m_dev -> name ) ; priv -> adapter -> hs_state = HS_DEACTIVATED ; } priv -> adapter -> WakeupTries = 0 ; priv -> adapter -> IntCounter ++ ; wake_up_interruptible ( & priv -> MainThread . waitQ ) ; LEAVE ( ) ; }
@brief This function handles the interrupt.
@brief This function handles the interrupt .