linux/drivers/net/wireless/ath/ath9k/mci.h

/*
 * Copyright (c) 2010-2011 Atheros Communications Inc.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#ifndef MCI_H
#define MCI_H

#include "ar9003_mci.h"

#define ATH_MCI_SCHED_BUF_SIZE
#define ATH_MCI_GPM_MAX_ENTRY
#define ATH_MCI_GPM_BUF_SIZE
#define ATH_MCI_DEF_BT_PERIOD
#define ATH_MCI_BDR_DUTY_CYCLE
#define ATH_MCI_MAX_DUTY_CYCLE

#define ATH_MCI_DEF_AGGR_LIMIT
#define ATH_MCI_MAX_ACL_PROFILE
#define ATH_MCI_MAX_SCO_PROFILE
#define ATH_MCI_MAX_PROFILE

#define ATH_MCI_INQUIRY_PRIO
#define ATH_MCI_HI_PRIO
#define ATH_MCI_NUM_BT_CHANNELS
#define ATH_MCI_CONCUR_TX_SWITCH

#define MCI_GPM_SET_CHANNEL_BIT(_p_gpm, _bt_chan)

#define MCI_GPM_CLR_CHANNEL_BIT(_p_gpm, _bt_chan)

#define INC_PROF(_mci, _info)

#define DEC_PROF(_mci, _info)

#define NUM_PROF(_mci)

struct ath_mci_profile_info {};

struct ath_mci_profile_status {};

struct ath_mci_profile {};

struct ath_mci_buf {};

struct ath_mci_coex {};

void ath_mci_flush_profile(struct ath_mci_profile *mci);
int ath_mci_setup(struct ath_softc *sc);
void ath_mci_cleanup(struct ath_softc *sc);
void ath_mci_intr(struct ath_softc *sc);
void ath9k_mci_update_rssi(struct ath_softc *sc);

#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
void ath_mci_enable(struct ath_softc *sc);
void ath9k_mci_update_wlan_channels(struct ath_softc *sc, bool allow_all);
void ath9k_mci_set_txpower(struct ath_softc *sc, bool setchannel,
			   bool concur_tx);
#else
static inline void ath_mci_enable(struct ath_softc *sc)
{
}
static inline void ath9k_mci_update_wlan_channels(struct ath_softc *sc,
						  bool allow_all)
{
}
static inline void ath9k_mci_set_txpower(struct ath_softc *sc, bool setchannel,
					 bool concur_tx)
{
}
#endif /* CONFIG_ATH9K_BTCOEX_SUPPORT */

#endif /* MCI_H*/