linux/drivers/staging/rtl8821ae/rtl8821ae/btc.h
<<
>>
Prefs
   1
   2/******************************************************************************
   3 **
   4 ** Copyright(c) 2009-2010  Realtek Corporation.
   5 **
   6 ** This program is free software; you can redistribute it and/or modify it
   7 ** under the terms of version 2 of the GNU General Public License as
   8 ** published by the Free Software Foundation.
   9 **
  10 ** This program is distributed in the hope that it will be useful, but WITHOUT
  11 ** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 ** FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
  13 ** more details.
  14 **
  15 ** You should have received a copy of the GNU General Public License along with
  16 ** this program; if not, write to the Free Software Foundation, Inc.,
  17 ** 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
  18 **
  19 ** The full GNU General Public License is included in this distribution in the
  20 ** file called LICENSE.
  21 **
  22 ** Contact Information:
  23 ** wlanfae <wlanfae@realtek.com>
  24 ** Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
  25 ** Hsinchu 300, Taiwan.
  26 ** Larry Finger <Larry.Finger@lwfinger.net>
  27 **
  28 ******************************************************************************/
  29
  30#ifndef __RTL8821AE_BTC_H__
  31#define __RTL8821AE_BTC_H__
  32
  33#include "../wifi.h"
  34#include "hal_bt_coexist.h"
  35
  36struct bt_coexist_c2h_info {
  37        u8 no_parse_c2h;
  38        u8 has_c2h;
  39};
  40
  41struct btdm_8821ae {
  42        bool b_all_off;
  43        bool b_agc_table_en;
  44        bool b_adc_back_off_on;
  45        bool b2_ant_hid_en;
  46        bool b_low_penalty_rate_adaptive;
  47        bool b_rf_rx_lpf_shrink;
  48        bool b_reject_aggre_pkt;
  49        bool b_tra_tdma_on;
  50        u8 tra_tdma_nav;
  51        u8 tra_tdma_ant;
  52        bool b_tdma_on;
  53        u8 tdma_ant;
  54        u8 tdma_nav;
  55        u8 tdma_dac_swing;
  56        u8 fw_dac_swing_lvl;
  57        bool b_ps_tdma_on;
  58        u8 ps_tdma_byte[5];
  59        bool b_pta_on;
  60        u32 val_0x6c0;
  61        u32 val_0x6c8;
  62        u32 val_0x6cc;
  63        bool b_sw_dac_swing_on;
  64        u32 sw_dac_swing_lvl;
  65        u32 wlan_act_hi;
  66        u32 wlan_act_lo;
  67        u32 bt_retry_index;
  68        bool b_dec_bt_pwr;
  69        bool b_ignore_wlan_act;
  70};
  71
  72struct bt_coexist_8821ae {
  73        u32 high_priority_tx;
  74        u32 high_priority_rx;
  75        u32 low_priority_tx;
  76        u32 low_priority_rx;
  77        u8 c2h_bt_info;
  78        bool b_c2h_bt_info_req_sent;
  79        bool b_c2h_bt_inquiry_page;
  80        u32 bt_inq_page_start_time;
  81        u8 bt_retry_cnt;
  82        u8 c2h_bt_info_original;
  83        u8 bt_inquiry_page_cnt;
  84        struct btdm_8821ae btdm;
  85};
  86
  87#endif
  88