htc.h (9b674a0207c9b75ddcdcdb07e46843fac8267507) htc.h (7d547eb4bb664c5a6b7c8790c2ecb0aec5d15385)
1/*
2 * Copyright (c) 2010 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 278 unchanged lines hidden (view full) ---

287struct ath9k_htc_tx_ctl {
288 u8 type; /* ATH9K_HTC_* */
289};
290
291#ifdef CONFIG_ATH9K_HTC_DEBUGFS
292
293#define TX_STAT_INC(c) (hif_dev->htc_handle->drv_priv->debug.tx_stats.c++)
294#define RX_STAT_INC(c) (hif_dev->htc_handle->drv_priv->debug.rx_stats.c++)
1/*
2 * Copyright (c) 2010 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 278 unchanged lines hidden (view full) ---

287struct ath9k_htc_tx_ctl {
288 u8 type; /* ATH9K_HTC_* */
289};
290
291#ifdef CONFIG_ATH9K_HTC_DEBUGFS
292
293#define TX_STAT_INC(c) (hif_dev->htc_handle->drv_priv->debug.tx_stats.c++)
294#define RX_STAT_INC(c) (hif_dev->htc_handle->drv_priv->debug.rx_stats.c++)
295#define CAB_STAT_INC priv->debug.tx_stats.cab_queued++
295
296#define TX_QSTAT_INC(q) (priv->debug.tx_stats.queue_stats[q]++)
297
298struct ath_tx_stats {
299 u32 buf_queued;
300 u32 buf_completed;
301 u32 skb_queued;
302 u32 skb_completed;
303 u32 skb_dropped;
296
297#define TX_QSTAT_INC(q) (priv->debug.tx_stats.queue_stats[q]++)
298
299struct ath_tx_stats {
300 u32 buf_queued;
301 u32 buf_completed;
302 u32 skb_queued;
303 u32 skb_completed;
304 u32 skb_dropped;
305 u32 cab_queued;
304 u32 queue_stats[WME_NUM_AC];
305};
306
307struct ath_rx_stats {
308 u32 skb_allocated;
309 u32 skb_completed;
310 u32 skb_dropped;
311};

--- 7 unchanged lines hidden (view full) ---

319 struct ath_rx_stats rx_stats;
320 u32 txrate;
321};
322
323#else
324
325#define TX_STAT_INC(c) do { } while (0)
326#define RX_STAT_INC(c) do { } while (0)
306 u32 queue_stats[WME_NUM_AC];
307};
308
309struct ath_rx_stats {
310 u32 skb_allocated;
311 u32 skb_completed;
312 u32 skb_dropped;
313};

--- 7 unchanged lines hidden (view full) ---

321 struct ath_rx_stats rx_stats;
322 u32 txrate;
323};
324
325#else
326
327#define TX_STAT_INC(c) do { } while (0)
328#define RX_STAT_INC(c) do { } while (0)
329#define CAB_STAT_INC do { } while (0)
327
328#define TX_QSTAT_INC(c) do { } while (0)
329
330#endif /* CONFIG_ATH9K_HTC_DEBUGFS */
331
332#define ATH_LED_PIN_DEF 1
333#define ATH_LED_PIN_9287 10
334#define ATH_LED_PIN_9271 15

--- 165 unchanged lines hidden (view full) ---

500void ath9k_htc_station_work(struct work_struct *work);
501void ath9k_htc_aggr_work(struct work_struct *work);
502void ath9k_htc_ani_work(struct work_struct *work);
503void ath9k_htc_start_ani(struct ath9k_htc_priv *priv);
504void ath9k_htc_stop_ani(struct ath9k_htc_priv *priv);
505
506int ath9k_tx_init(struct ath9k_htc_priv *priv);
507void ath9k_tx_tasklet(unsigned long data);
330
331#define TX_QSTAT_INC(c) do { } while (0)
332
333#endif /* CONFIG_ATH9K_HTC_DEBUGFS */
334
335#define ATH_LED_PIN_DEF 1
336#define ATH_LED_PIN_9287 10
337#define ATH_LED_PIN_9271 15

--- 165 unchanged lines hidden (view full) ---

503void ath9k_htc_station_work(struct work_struct *work);
504void ath9k_htc_aggr_work(struct work_struct *work);
505void ath9k_htc_ani_work(struct work_struct *work);
506void ath9k_htc_start_ani(struct ath9k_htc_priv *priv);
507void ath9k_htc_stop_ani(struct ath9k_htc_priv *priv);
508
509int ath9k_tx_init(struct ath9k_htc_priv *priv);
510void ath9k_tx_tasklet(unsigned long data);
508int ath9k_htc_tx_start(struct ath9k_htc_priv *priv, struct sk_buff *skb);
511int ath9k_htc_tx_start(struct ath9k_htc_priv *priv,
512 struct sk_buff *skb, bool is_cab);
509void ath9k_tx_cleanup(struct ath9k_htc_priv *priv);
510bool ath9k_htc_txq_setup(struct ath9k_htc_priv *priv, int subtype);
511int ath9k_htc_cabq_setup(struct ath9k_htc_priv *priv);
512int get_hw_qnum(u16 queue, int *hwq_map);
513int ath_htc_txq_update(struct ath9k_htc_priv *priv, int qnum,
514 struct ath9k_tx_queue_info *qinfo);
515
516int ath9k_rx_init(struct ath9k_htc_priv *priv);

--- 39 unchanged lines hidden ---
513void ath9k_tx_cleanup(struct ath9k_htc_priv *priv);
514bool ath9k_htc_txq_setup(struct ath9k_htc_priv *priv, int subtype);
515int ath9k_htc_cabq_setup(struct ath9k_htc_priv *priv);
516int get_hw_qnum(u16 queue, int *hwq_map);
517int ath_htc_txq_update(struct ath9k_htc_priv *priv, int qnum,
518 struct ath9k_tx_queue_info *qinfo);
519
520int ath9k_rx_init(struct ath9k_htc_priv *priv);

--- 39 unchanged lines hidden ---