iwl-agn.h revision 58a39090a13cf296afc17ed8fd793a55340b63db
1a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg/****************************************************************************** 2a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * 3a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * This file is provided under a dual BSD/GPLv2 license. When using or 4a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * redistributing this file, you may do so under either license. 5a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * 6a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * GPL LICENSE SUMMARY 7a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * 8a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * Copyright(c) 2008 - 2010 Intel Corporation. All rights reserved. 9a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * 10a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * This program is free software; you can redistribute it and/or modify 11a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * it under the terms of version 2 of the GNU General Public License as 12a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * published by the Free Software Foundation. 13a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * 14a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * This program is distributed in the hope that it will be useful, but 15a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * WITHOUT ANY WARRANTY; without even the implied warranty of 16a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * General Public License for more details. 18a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * 19a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * You should have received a copy of the GNU General Public License 20a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * along with this program; if not, write to the Free Software 21a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, 22a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * USA 23a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * 24a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * The full GNU General Public License is included in this distribution 25a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * in the file called LICENSE.GPL. 26a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * 27a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * Contact Information: 28a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * Intel Linux Wireless <ilw@linux.intel.com> 29a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 30a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * 31a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * BSD LICENSE 32a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * 33a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * Copyright(c) 2005 - 2010 Intel Corporation. All rights reserved. 34a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * All rights reserved. 35a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * 36a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * Redistribution and use in source and binary forms, with or without 37a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * modification, are permitted provided that the following conditions 38a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * are met: 39a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * 40a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * * Redistributions of source code must retain the above copyright 41a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * notice, this list of conditions and the following disclaimer. 42a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * * Redistributions in binary form must reproduce the above copyright 43a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * notice, this list of conditions and the following disclaimer in 44a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * the documentation and/or other materials provided with the 45a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * distribution. 46a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * * Neither the name Intel Corporation nor the names of its 47a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * contributors may be used to endorse or promote products derived 48a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * from this software without specific prior written permission. 49a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * 50a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 51a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 52a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 53a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 54a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 55a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 56a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 57a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 58a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 59a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 60a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 61a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg *****************************************************************************/ 62a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg 63a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg#ifndef __iwl_agn_h__ 64a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg#define __iwl_agn_h__ 65a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg 66a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg#include "iwl-dev.h" 67a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg 68bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guy/* configuration for the _agn devices */ 69bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl4965_agn_cfg; 70bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl5300_agn_cfg; 71bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl5100_agn_cfg; 72bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl5350_agn_cfg; 73bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl5100_bgn_cfg; 74bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl5100_abg_cfg; 75bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl5150_agn_cfg; 76bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl5150_abg_cfg; 77bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl6000g2a_2agn_cfg; 78bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl6000g2a_2abg_cfg; 79bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl6000g2a_2bg_cfg; 80bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl6000g2b_bgn_cfg; 81bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl6000g2b_bg_cfg; 82bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl6000g2b_2agn_cfg; 83bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl6000g2b_2abg_cfg; 849f6e1bafac4f3c58c8a670496adcc4d313d3c7f7Shanyu Zhaoextern struct iwl_cfg iwl6000g2b_2bgn_cfg; 85bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl6000g2b_2bg_cfg; 86bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl6000i_2agn_cfg; 87bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl6000i_2abg_cfg; 88bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl6000i_2bg_cfg; 89bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl6000_3agn_cfg; 90bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl6050_2agn_cfg; 91bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl6050_2abg_cfg; 920326433995ad43b64ebabdd2390a5d11f33f025bShanyu Zhaoextern struct iwl_cfg iwl6050g2_bgn_cfg; 93bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl1000_bgn_cfg; 94bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guyextern struct iwl_cfg iwl1000_bg_cfg; 951de19eccb3fe634e939cb40f30fdfda93a67fe93Jay Sternbergextern struct iwl_cfg iwl100_bgn_cfg; 961de19eccb3fe634e939cb40f30fdfda93a67fe93Jay Sternbergextern struct iwl_cfg iwl100_bg_cfg; 9758a39090a13cf296afc17ed8fd793a55340b63dbWey-Yi Guyextern struct iwl_cfg iwl130_bgn_cfg; 9858a39090a13cf296afc17ed8fd793a55340b63dbWey-Yi Guyextern struct iwl_cfg iwl130_bg_cfg; 99bd93cbedfc4b280a0eeb6665ad310c3cc96cd669Wey-Yi Guy 100348ee7cd57831c47373dd157f138c558daaf129dWey-Yi Guyextern struct iwl_mod_params iwlagn_mod_params; 1017dc77dba6a8bde512996824643da5669d73cbcdcWey-Yi Guyextern struct iwl_hcmd_ops iwlagn_hcmd; 102b6e116e8bf7d749b0743c167bd47930c22c77a82Wey-Yi Guyextern struct iwl_hcmd_ops iwlagn_bt_hcmd; 1037dc77dba6a8bde512996824643da5669d73cbcdcWey-Yi Guyextern struct iwl_hcmd_utils_ops iwlagn_hcmd_utils; 104792bc3cbe06cddabd865acc3122ee0415f854a11Wey-Yi Guy 105a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Bergint iwl_reset_ict(struct iwl_priv *priv); 106a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Bergvoid iwl_disable_ict(struct iwl_priv *priv); 107a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Bergint iwl_alloc_isr_ict(struct iwl_priv *priv); 108a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Bergvoid iwl_free_isr_ict(struct iwl_priv *priv); 109a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Bergirqreturn_t iwl_isr_ict(int irq, void *data); 110872c8ddcbec06995c1c7caa3e41c921290a8b6dfWey-Yi Guybool iwl_good_ack_health(struct iwl_priv *priv, 111872c8ddcbec06995c1c7caa3e41c921290a8b6dfWey-Yi Guy struct iwl_rx_packet *pkt); 112a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg 113b305a08058f794c8a99c5ee87827b92d6b8c24aeWey-Yi Guy/* tx queue */ 114b305a08058f794c8a99c5ee87827b92d6b8c24aeWey-Yi Guyvoid iwlagn_set_wr_ptrs(struct iwl_priv *priv, 115b305a08058f794c8a99c5ee87827b92d6b8c24aeWey-Yi Guy int txq_id, u32 index); 116b305a08058f794c8a99c5ee87827b92d6b8c24aeWey-Yi Guyvoid iwlagn_tx_queue_set_status(struct iwl_priv *priv, 117b305a08058f794c8a99c5ee87827b92d6b8c24aeWey-Yi Guy struct iwl_tx_queue *txq, 118b305a08058f794c8a99c5ee87827b92d6b8c24aeWey-Yi Guy int tx_fifo_id, int scd_retry); 119b305a08058f794c8a99c5ee87827b92d6b8c24aeWey-Yi Guyvoid iwlagn_txq_update_byte_cnt_tbl(struct iwl_priv *priv, 120b305a08058f794c8a99c5ee87827b92d6b8c24aeWey-Yi Guy struct iwl_tx_queue *txq, 121b305a08058f794c8a99c5ee87827b92d6b8c24aeWey-Yi Guy u16 byte_cnt); 122b305a08058f794c8a99c5ee87827b92d6b8c24aeWey-Yi Guyvoid iwlagn_txq_inval_byte_cnt_tbl(struct iwl_priv *priv, 123b305a08058f794c8a99c5ee87827b92d6b8c24aeWey-Yi Guy struct iwl_tx_queue *txq); 124b305a08058f794c8a99c5ee87827b92d6b8c24aeWey-Yi Guyint iwlagn_txq_agg_enable(struct iwl_priv *priv, int txq_id, 125b305a08058f794c8a99c5ee87827b92d6b8c24aeWey-Yi Guy int tx_fifo, int sta_id, int tid, u16 ssn_idx); 126b305a08058f794c8a99c5ee87827b92d6b8c24aeWey-Yi Guyint iwlagn_txq_agg_disable(struct iwl_priv *priv, u16 txq_id, 127b305a08058f794c8a99c5ee87827b92d6b8c24aeWey-Yi Guy u16 ssn_idx, u8 tx_fifo); 128b305a08058f794c8a99c5ee87827b92d6b8c24aeWey-Yi Guyvoid iwlagn_txq_set_sched(struct iwl_priv *priv, u32 mask); 1291ff504e07c0fb64a1ceca17d60cb2d82dc134f05Johannes Bergvoid iwl_free_tfds_in_queue(struct iwl_priv *priv, 1301ff504e07c0fb64a1ceca17d60cb2d82dc134f05Johannes Berg int sta_id, int tid, int freed); 131b305a08058f794c8a99c5ee87827b92d6b8c24aeWey-Yi Guy 132741a626627e42812afd957f875c34c89be8a103eWey-Yi Guy/* uCode */ 133741a626627e42812afd957f875c34c89be8a103eWey-Yi Guyint iwlagn_load_ucode(struct iwl_priv *priv); 134741a626627e42812afd957f875c34c89be8a103eWey-Yi Guyvoid iwlagn_rx_calib_result(struct iwl_priv *priv, 135741a626627e42812afd957f875c34c89be8a103eWey-Yi Guy struct iwl_rx_mem_buffer *rxb); 136741a626627e42812afd957f875c34c89be8a103eWey-Yi Guyvoid iwlagn_rx_calib_complete(struct iwl_priv *priv, 137741a626627e42812afd957f875c34c89be8a103eWey-Yi Guy struct iwl_rx_mem_buffer *rxb); 138741a626627e42812afd957f875c34c89be8a103eWey-Yi Guyvoid iwlagn_init_alive_start(struct iwl_priv *priv); 139741a626627e42812afd957f875c34c89be8a103eWey-Yi Guyint iwlagn_alive_notify(struct iwl_priv *priv); 140db41dd27a079ec498fab9dc788094375ea0d1761Wey-Yi Guyint iwl_verify_ucode(struct iwl_priv *priv); 141f7322f8f05f5755252e96d772fdcf9ca4304dc69Wey-Yi Guyvoid iwlagn_send_bt_env(struct iwl_priv *priv, u8 action, u8 type); 142f7322f8f05f5755252e96d772fdcf9ca4304dc69Wey-Yi Guyvoid iwlagn_send_prio_tbl(struct iwl_priv *priv); 143741a626627e42812afd957f875c34c89be8a103eWey-Yi Guy 144e04ed0a5bb62520345c73587d7ebf51e426642eeWey-Yi Guy/* lib */ 14504569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guyvoid iwl_check_abort_status(struct iwl_priv *priv, 14604569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy u8 frame_count, u32 status); 147e04ed0a5bb62520345c73587d7ebf51e426642eeWey-Yi Guyvoid iwlagn_rx_handler_setup(struct iwl_priv *priv); 148e04ed0a5bb62520345c73587d7ebf51e426642eeWey-Yi Guyvoid iwlagn_setup_deferred_work(struct iwl_priv *priv); 149e04ed0a5bb62520345c73587d7ebf51e426642eeWey-Yi Guyint iwlagn_hw_valid_rtc_data_addr(u32 addr); 150e04ed0a5bb62520345c73587d7ebf51e426642eeWey-Yi Guyint iwlagn_send_tx_power(struct iwl_priv *priv); 151e04ed0a5bb62520345c73587d7ebf51e426642eeWey-Yi Guyvoid iwlagn_temperature(struct iwl_priv *priv); 152e04ed0a5bb62520345c73587d7ebf51e426642eeWey-Yi Guyu16 iwlagn_eeprom_calib_version(struct iwl_priv *priv); 153e04ed0a5bb62520345c73587d7ebf51e426642eeWey-Yi Guyconst u8 *iwlagn_eeprom_query_addr(const struct iwl_priv *priv, 154e04ed0a5bb62520345c73587d7ebf51e426642eeWey-Yi Guy size_t offset); 15574bcdb33e99f49ef5202dd2f8109945b4570edc2Wey-Yi Guyvoid iwlagn_rx_queue_reset(struct iwl_priv *priv, struct iwl_rx_queue *rxq); 15674bcdb33e99f49ef5202dd2f8109945b4570edc2Wey-Yi Guyint iwlagn_rx_init(struct iwl_priv *priv, struct iwl_rx_queue *rxq); 15774bcdb33e99f49ef5202dd2f8109945b4570edc2Wey-Yi Guyint iwlagn_hw_nic_init(struct iwl_priv *priv); 158716c74b00717ad9caedb4a46059fb64a3da99808Wey-Yi Guyint iwlagn_wait_tx_queue_empty(struct iwl_priv *priv); 159716c74b00717ad9caedb4a46059fb64a3da99808Wey-Yi Guyint iwlagn_txfifo_flush(struct iwl_priv *priv, u16 flush_control); 1606555063666fea1fc81a14396aca53ab021ccb4f2Wey-Yi Guyvoid iwlagn_dev_txfifo_flush(struct iwl_priv *priv, u16 flush_control); 16174bcdb33e99f49ef5202dd2f8109945b4570edc2Wey-Yi Guy 16254b81550dd674466fe7d01629d2aab015c545a1eWey-Yi Guy/* rx */ 16354b81550dd674466fe7d01629d2aab015c545a1eWey-Yi Guyvoid iwlagn_rx_queue_restock(struct iwl_priv *priv); 16454b81550dd674466fe7d01629d2aab015c545a1eWey-Yi Guyvoid iwlagn_rx_allocate(struct iwl_priv *priv, gfp_t priority); 16554b81550dd674466fe7d01629d2aab015c545a1eWey-Yi Guyvoid iwlagn_rx_replenish(struct iwl_priv *priv); 16654b81550dd674466fe7d01629d2aab015c545a1eWey-Yi Guyvoid iwlagn_rx_replenish_now(struct iwl_priv *priv); 16754b81550dd674466fe7d01629d2aab015c545a1eWey-Yi Guyvoid iwlagn_rx_queue_free(struct iwl_priv *priv, struct iwl_rx_queue *rxq); 16854b81550dd674466fe7d01629d2aab015c545a1eWey-Yi Guyint iwlagn_rxq_stop(struct iwl_priv *priv); 1698d801080dd8d28bf7d85cacba131f18b7653ee49Wey-Yi Guyint iwlagn_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band); 1708d801080dd8d28bf7d85cacba131f18b7653ee49Wey-Yi Guyvoid iwlagn_rx_reply_rx(struct iwl_priv *priv, 1718d801080dd8d28bf7d85cacba131f18b7653ee49Wey-Yi Guy struct iwl_rx_mem_buffer *rxb); 1728d801080dd8d28bf7d85cacba131f18b7653ee49Wey-Yi Guyvoid iwlagn_rx_reply_rx_phy(struct iwl_priv *priv, 1738d801080dd8d28bf7d85cacba131f18b7653ee49Wey-Yi Guy struct iwl_rx_mem_buffer *rxb); 17454b81550dd674466fe7d01629d2aab015c545a1eWey-Yi Guy 17574bcdb33e99f49ef5202dd2f8109945b4570edc2Wey-Yi Guy/* tx */ 1768d801080dd8d28bf7d85cacba131f18b7653ee49Wey-Yi Guyvoid iwlagn_hwrate_to_tx_control(struct iwl_priv *priv, u32 rate_n_flags, 1778d801080dd8d28bf7d85cacba131f18b7653ee49Wey-Yi Guy struct ieee80211_tx_info *info); 17874bcdb33e99f49ef5202dd2f8109945b4570edc2Wey-Yi Guyint iwlagn_tx_skb(struct iwl_priv *priv, struct sk_buff *skb); 179832f47e333c7d0db632b57e9f07956ae40dd481dJohannes Bergint iwlagn_tx_agg_start(struct iwl_priv *priv, struct ieee80211_vif *vif, 180619753ff57a2e15b58546b856536928d1a3daef9Johannes Berg struct ieee80211_sta *sta, u16 tid, u16 *ssn); 181832f47e333c7d0db632b57e9f07956ae40dd481dJohannes Bergint iwlagn_tx_agg_stop(struct iwl_priv *priv, struct ieee80211_vif *vif, 182619753ff57a2e15b58546b856536928d1a3daef9Johannes Berg struct ieee80211_sta *sta, u16 tid); 18374bcdb33e99f49ef5202dd2f8109945b4570edc2Wey-Yi Guyint iwlagn_txq_check_empty(struct iwl_priv *priv, 18474bcdb33e99f49ef5202dd2f8109945b4570edc2Wey-Yi Guy int sta_id, u8 tid, int txq_id); 18574bcdb33e99f49ef5202dd2f8109945b4570edc2Wey-Yi Guyvoid iwlagn_rx_reply_compressed_ba(struct iwl_priv *priv, 18674bcdb33e99f49ef5202dd2f8109945b4570edc2Wey-Yi Guy struct iwl_rx_mem_buffer *rxb); 18774bcdb33e99f49ef5202dd2f8109945b4570edc2Wey-Yi Guyint iwlagn_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index); 18874bcdb33e99f49ef5202dd2f8109945b4570edc2Wey-Yi Guyvoid iwlagn_hw_txq_ctx_free(struct iwl_priv *priv); 189470058e0ad82fcfaaffd57307d8bf8c094e8e9d7Zhu Yiint iwlagn_txq_ctx_alloc(struct iwl_priv *priv); 190470058e0ad82fcfaaffd57307d8bf8c094e8e9d7Zhu Yivoid iwlagn_txq_ctx_reset(struct iwl_priv *priv); 19174bcdb33e99f49ef5202dd2f8109945b4570edc2Wey-Yi Guyvoid iwlagn_txq_ctx_stop(struct iwl_priv *priv); 192e04ed0a5bb62520345c73587d7ebf51e426642eeWey-Yi Guy 19304569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guystatic inline u32 iwl_tx_status_to_mac80211(u32 status) 19404569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy{ 19504569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy status &= TX_STATUS_MSK; 19604569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy 19704569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy switch (status) { 19804569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy case TX_STATUS_SUCCESS: 19904569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy case TX_STATUS_DIRECT_DONE: 20004569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy return IEEE80211_TX_STAT_ACK; 20104569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy case TX_STATUS_FAIL_DEST_PS: 20204569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy return IEEE80211_TX_STAT_TX_FILTERED; 20304569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy default: 20404569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy return 0; 20504569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy } 20604569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy} 20704569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy 20804569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guystatic inline bool iwl_is_tx_success(u32 status) 20904569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy{ 21004569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy status &= TX_STATUS_MSK; 21104569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy return (status == TX_STATUS_SUCCESS) || 21204569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy (status == TX_STATUS_DIRECT_DONE); 21304569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy} 21404569cbe7653fe0057acc46afc07f2c2fd2508b3Wey-Yi Guy 215278fc73c0c6014bc2f55bce898bdeaa322bf4abaWey-Yi Guy/* rx */ 216278fc73c0c6014bc2f55bce898bdeaa322bf4abaWey-Yi Guyvoid iwl_rx_missed_beacon_notif(struct iwl_priv *priv, 217278fc73c0c6014bc2f55bce898bdeaa322bf4abaWey-Yi Guy struct iwl_rx_mem_buffer *rxb); 218278fc73c0c6014bc2f55bce898bdeaa322bf4abaWey-Yi Guybool iwl_good_plcp_health(struct iwl_priv *priv, 219278fc73c0c6014bc2f55bce898bdeaa322bf4abaWey-Yi Guy struct iwl_rx_packet *pkt); 220278fc73c0c6014bc2f55bce898bdeaa322bf4abaWey-Yi Guyvoid iwl_rx_statistics(struct iwl_priv *priv, 221278fc73c0c6014bc2f55bce898bdeaa322bf4abaWey-Yi Guy struct iwl_rx_mem_buffer *rxb); 222278fc73c0c6014bc2f55bce898bdeaa322bf4abaWey-Yi Guyvoid iwl_reply_statistics(struct iwl_priv *priv, 223278fc73c0c6014bc2f55bce898bdeaa322bf4abaWey-Yi Guy struct iwl_rx_mem_buffer *rxb); 224278fc73c0c6014bc2f55bce898bdeaa322bf4abaWey-Yi Guy 225b6e4c55aaee4fd40526a6816e60c68dd62e565c4Johannes Berg/* scan */ 2263eecce527c7434dfd16517ce08b49632c8a26717Johannes Bergint iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif); 227b6e4c55aaee4fd40526a6816e60c68dd62e565c4Johannes Berg 2281fa61b2e793dad51271c7ce39377daade51261d7Johannes Berg/* station mgmt */ 2291fa61b2e793dad51271c7ce39377daade51261d7Johannes Bergint iwlagn_manage_ibss_station(struct iwl_priv *priv, 2301fa61b2e793dad51271c7ce39377daade51261d7Johannes Berg struct ieee80211_vif *vif, bool add); 2311fa61b2e793dad51271c7ce39377daade51261d7Johannes Berg 2321808972f16adba592ceb10a47dee42ef8ee39ceeShanyu Zhao/* hcmd */ 233246ed355221076884d225f9d8a4c30a048be8162Johannes Bergint iwlagn_send_rxon_assoc(struct iwl_priv *priv, 234246ed355221076884d225f9d8a4c30a048be8162Johannes Berg struct iwl_rxon_context *ctx); 2351808972f16adba592ceb10a47dee42ef8ee39ceeShanyu Zhaoint iwlagn_send_tx_ant_config(struct iwl_priv *priv, u8 valid_tx_ant); 2361808972f16adba592ceb10a47dee42ef8ee39ceeShanyu Zhao 237b6e116e8bf7d749b0743c167bd47930c22c77a82Wey-Yi Guy/* bt coex */ 238b6e116e8bf7d749b0743c167bd47930c22c77a82Wey-Yi Guyvoid iwlagn_send_advance_bt_config(struct iwl_priv *priv); 239b6e116e8bf7d749b0743c167bd47930c22c77a82Wey-Yi Guyvoid iwlagn_bt_coex_profile_notif(struct iwl_priv *priv, 240b6e116e8bf7d749b0743c167bd47930c22c77a82Wey-Yi Guy struct iwl_rx_mem_buffer *rxb); 241b6e116e8bf7d749b0743c167bd47930c22c77a82Wey-Yi Guyvoid iwlagn_bt_rx_handler_setup(struct iwl_priv *priv); 242b6e116e8bf7d749b0743c167bd47930c22c77a82Wey-Yi Guyvoid iwlagn_bt_setup_deferred_work(struct iwl_priv *priv); 243b6e116e8bf7d749b0743c167bd47930c22c77a82Wey-Yi Guyvoid iwlagn_bt_cancel_deferred_work(struct iwl_priv *priv); 244b6e116e8bf7d749b0743c167bd47930c22c77a82Wey-Yi Guy 24595b49ed013c9a8856ce768d8d4a62acfc410f73dWey-Yi Guy#ifdef CONFIG_IWLWIFI_DEBUG 24695b49ed013c9a8856ce768d8d4a62acfc410f73dWey-Yi Guyconst char *iwl_get_agg_tx_fail_reason(u16 status); 24795b49ed013c9a8856ce768d8d4a62acfc410f73dWey-Yi Guy#else 24895b49ed013c9a8856ce768d8d4a62acfc410f73dWey-Yi Guystatic inline const char *iwl_get_agg_tx_fail_reason(u16 status) { return ""; } 24995b49ed013c9a8856ce768d8d4a62acfc410f73dWey-Yi Guy#endif 250a1175124f34a4b859b5064efb84a197e4f6794a6Johannes Berg#endif /* __iwl_agn_h__ */ 251