diff options
author | Dmitry Tarnyagin <dmitry.tarnyagin@stericsson.com> | 2011-10-04 22:48:03 +0200 |
---|---|---|
committer | Philippe LANGLAIS <philippe.langlais@stericsson.com> | 2011-10-13 10:22:55 +0200 |
commit | 868040fa7b15aa1adf7af925f89dfa6c3b0b7a3c (patch) | |
tree | b3cfbfec2113e0e788a5270c44cce8507bd24a8b /drivers/staging/cw1200/queue.h | |
parent | 981db2f065cbba810c39290ac8906c2ae68f3b6b (diff) |
cw1200: queue dependency refactoring.
According to the driver design queue should know as less
as possible about other components. Last commits violate
this "rule" by transpatent arguments like tid. This patch
is fixing these violations.
No functional changes in this commit.
Change-Id: I078835dc0263ef71fa2d50a1d9bfae2c04bab440
Signed-off-by: Dmitry Tarnyagin <dmitry.tarnyagin@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33540
Reviewed-by: Bartosz MARKOWSKI <bartosz.markowski@tieto.com>
Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
Diffstat (limited to 'drivers/staging/cw1200/queue.h')
-rw-r--r-- | drivers/staging/cw1200/queue.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/drivers/staging/cw1200/queue.h b/drivers/staging/cw1200/queue.h index d1802c36f02..195d6acb6ec 100644 --- a/drivers/staging/cw1200/queue.h +++ b/drivers/staging/cw1200/queue.h @@ -18,7 +18,7 @@ /* extern */ struct wsm_tx; /* extern */ struct cw1200_common; /* extern */ struct ieee80211_tx_queue_stats; -/* extern */ struct tx_info; +/* extern */ struct cw1200_txpriv; /* forward */ struct cw1200_queue_stats; @@ -48,6 +48,12 @@ struct cw1200_queue_stats { wait_queue_head_t wait_link_id_empty; }; +struct cw1200_txpriv { + u8 link_id; + u8 raw_link_id; + u8 tid; +}; + int cw1200_queue_stats_init(struct cw1200_queue_stats *stats, size_t map_capacity); int cw1200_queue_init(struct cw1200_queue *queue, @@ -61,19 +67,19 @@ void cw1200_queue_deinit(struct cw1200_queue *queue); size_t cw1200_queue_get_num_queued(struct cw1200_queue *queue, u32 link_id_map); int cw1200_queue_put(struct cw1200_queue *queue, struct cw1200_common *cw1200, - struct sk_buff *skb, struct tx_info *txinfo, - u8 raw_link_id, u8 tid); + struct sk_buff *skb, struct cw1200_txpriv *txpriv); int cw1200_queue_get(struct cw1200_queue *queue, u32 link_id_map, struct wsm_tx **tx, struct ieee80211_tx_info **tx_info, - int *link_id); + const struct cw1200_txpriv **txpriv); int cw1200_queue_requeue(struct cw1200_queue *queue, u32 packetID); int cw1200_queue_requeue_all(struct cw1200_queue *queue); int cw1200_queue_remove(struct cw1200_queue *queue, struct cw1200_common *priv, u32 packetID); int cw1200_queue_get_skb(struct cw1200_queue *queue, u32 packetID, - struct sk_buff **skb, int *tid); + struct sk_buff **skb, + const struct cw1200_txpriv **txpriv); void cw1200_queue_lock(struct cw1200_queue *queue, struct cw1200_common *cw1200); void cw1200_queue_unlock(struct cw1200_queue *queue, |