linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hal_btc.h

/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright(c) 2009-2012  Realtek Corporation.*/

#ifndef __RTL8723E_HAL_BTC_H__
#define __RTL8723E_HAL_BTC_H__

#include "../wifi.h"
#include "btc.h"
#include "hal_bt_coexist.h"

#define BT_TXRX_CNT_THRES_1
#define BT_TXRX_CNT_THRES_2
#define BT_TXRX_CNT_THRES_3
/* < 1200 */
#define BT_TXRX_CNT_LEVEL_0
/* >= 1200 && < 1400 */
#define BT_TXRX_CNT_LEVEL_1
/* >= 1400 */
#define BT_TXRX_CNT_LEVEL_2
#define BT_TXRX_CNT_LEVEL_3

#define BT_COEX_DISABLE
#define BT_Q_PKT_OFF
#define BT_Q_PKT_ON

#define BT_TX_PWR_OFF
#define BT_TX_PWR_ON

/* TDMA mode definition */
#define TDMA_2ANT
#define TDMA_1ANT
#define TDMA_NAV_OFF
#define TDMA_NAV_ON
#define TDMA_DAC_SWING_OFF
#define TDMA_DAC_SWING_ON

/* PTA mode related definition */
#define BT_PTA_MODE_OFF
#define BT_PTA_MODE_ON

/* Penalty Tx Rate Adaptive */
#define BT_TX_RATE_ADAPTIVE_NORMAL
#define BT_TX_RATE_ADAPTIVE_LOW_PENALTY

/* RF Corner */
#define BT_RF_RX_LPF_CORNER_RESUME
#define BT_RF_RX_LPF_CORNER_SHRINK

#define C2H_EVT_HOST_CLOSE
#define C2H_EVT_FW_CLOSE

enum bt_traffic_mode {};

enum bt_traffic_mode_profile {};

/*
enum hci_ext_bt_operation {
	HCI_BT_OP_NONE = 0x0,
	HCI_BT_OP_INQUIRE_START	= 0x1,
	HCI_BT_OP_INQUIRE_FINISH = 0x2,
	HCI_BT_OP_PAGING_START = 0x3,
	HCI_BT_OP_PAGING_SUCCESS = 0x4,
	HCI_BT_OP_PAGING_UNSUCCESS = 0x5,
	HCI_BT_OP_PAIRING_START = 0x6,
	HCI_BT_OP_PAIRING_FINISH = 0x7,
	HCI_BT_OP_BT_DEV_ENABLE = 0x8,
	HCI_BT_OP_BT_DEV_DISABLE = 0x9,
	HCI_BT_OP_MAX,
};
*/

enum bt_spec {};

struct c2h_evt_hdr {};

enum bt_state {};

enum rtl8723e_c2h_evt_v0 {};

void rtl8723e_dm_bt_fw_coex_all_off_8723a(struct ieee80211_hw *hw);
void rtl8723e_dm_bt_sw_coex_all_off_8723a(struct ieee80211_hw *hw);
void rtl8723e_dm_bt_hw_coex_all_off_8723a(struct ieee80211_hw *hw);
void rtl8723e_dm_bt_coexist_8723(struct ieee80211_hw *hw);
void rtl8723e_dm_bt_set_bt_dm(struct ieee80211_hw *hw,
			      struct btdm_8723 *p_btdm);
void rtl_8723e_c2h_command_handle(struct ieee80211_hw *hw);
void rtl_8723e_bt_wifi_media_status_notify(struct ieee80211_hw *hw,
					bool mstatus);
void rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps(
				struct ieee80211_hw *hw);

#endif