Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Aug 2011 07:53:05 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r224928 - user/adrian/if_ath_tx/sys/dev/ath
Message-ID:  <201108170753.p7H7r5dc093147@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Wed Aug 17 07:53:05 2011
New Revision: 224928
URL: http://svn.freebsd.org/changeset/base/224928

Log:
  In preparation for the aggregate list creation code, move some
  needed code/defines into public view.

Modified:
  user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c
  user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.h

Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c	Wed Aug 17 07:52:14 2011	(r224927)
+++ user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c	Wed Aug 17 07:53:05 2011	(r224928)
@@ -101,31 +101,10 @@ __FBSDID("$FreeBSD$");
 #include <dev/ath/if_ath_tx_ht.h>
 
 /*
- * some general macros
- */
-#define	INCR(_l, _sz)		(_l) ++; (_l) &= ((_sz) - 1)
-/*
- * return block-ack bitmap index given sequence and starting sequence
- */
-#define	ATH_BA_INDEX(_st, _seq)	(((_seq) - (_st)) & (IEEE80211_SEQ_RANGE - 1))
-
-/* extracting the seqno from buffer seqno */
-#define	SEQNO(_a)	((_a) >> IEEE80211_SEQ_SEQ_SHIFT)
-
-/*
- * Whether the current sequence number is within the
- * BAW.
- */
-#define	BAW_WITHIN(_start, _bawsz, _seqno)	\
-	     ((((_seqno) - (_start)) & 4095) < (_bawsz))
-
-/*
  * How many retries to perform in software
  */
 #define	SWMAX_RETRIES		10
 
-static struct ieee80211_tx_ampdu * ath_tx_get_tx_tid(struct ath_node *an,
-    int tid);
 static int ath_tx_ampdu_pending(struct ath_softc *sc, struct ath_node *an,
     int tid);
 static int ath_tx_ampdu_running(struct ath_softc *sc, struct ath_node *an,
@@ -1600,7 +1579,7 @@ ath_tx_action_frame_override_queue(struc
  * + fits inside the BAW;
  * + already has had a sequence number allocated.
  */
-static void
+void
 ath_tx_addto_baw(struct ath_softc *sc, struct ath_node *an,
     struct ath_tid *tid, struct ath_buf *bf)
 {
@@ -2255,7 +2234,7 @@ ath_tx_aggr_retry_unaggr(struct ath_soft
  * Fail is set to 1 if the entry is being freed via a call to
  * ath_tx_draintxq().
  */
-static void
+void
 ath_tx_aggr_comp(struct ath_softc *sc, struct ath_buf *bf, int fail)
 {
 	struct ieee80211_node *ni = bf->bf_node;
@@ -2502,7 +2481,7 @@ ath_txq_sched(struct ath_softc *sc, stru
 /*
  * Return net80211 TID struct pointer, or NULL for none
  */
-static struct ieee80211_tx_ampdu *
+struct ieee80211_tx_ampdu *
 ath_tx_get_tx_tid(struct ath_node *an, int tid)
 {
 	struct ieee80211_node *ni = &an->an_node;

Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.h
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.h	Wed Aug 17 07:52:14 2011	(r224927)
+++ user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.h	Wed Aug 17 07:53:05 2011	(r224928)
@@ -31,6 +31,25 @@
 #ifndef	__IF_ATH_TX_H__
 #define	__IF_ATH_TX_H__
 
+/*
+ * some general macros
+ */
+#define	INCR(_l, _sz)		(_l) ++; (_l) &= ((_sz) - 1)
+/*
+ * return block-ack bitmap index given sequence and starting sequence
+ */
+#define	ATH_BA_INDEX(_st, _seq)	(((_seq) - (_st)) & (IEEE80211_SEQ_RANGE - 1))
+
+/* extracting the seqno from buffer seqno */
+#define	SEQNO(_a)	((_a) >> IEEE80211_SEQ_SEQ_SHIFT)
+
+/*
+ * Whether the current sequence number is within the
+ * BAW.
+ */
+#define	BAW_WITHIN(_start, _bawsz, _seqno)	\
+	    ((((_seqno) - (_start)) & 4095) < (_bawsz))
+
 extern void ath_freetx(struct mbuf *m);
 extern void ath_tx_node_flush(struct ath_softc *sc, struct ath_node *an);
 extern void ath_txfrag_cleanup(struct ath_softc *sc, ath_bufhead *frags,
@@ -54,6 +73,12 @@ extern void ath_tx_tid_hw_queue_norm(str
 extern void ath_txq_sched(struct ath_softc *sc, struct ath_txq *txq);
 extern void ath_tx_normal_comp(struct ath_softc *sc, struct ath_buf *bf,
     int fail);
+extern void ath_tx_aggr_comp(struct ath_softc *sc, struct ath_buf *bf,
+    int fail);
+extern void ath_tx_addto_baw(struct ath_softc *sc, struct ath_node *an,
+    struct ath_tid *tid, struct ath_buf *bf);
+extern struct ieee80211_tx_ampdu * ath_tx_get_tx_tid(struct ath_node *an,
+    int tid);
 
 /* TX addba handling */
 extern	int ath_addba_request(struct ieee80211_node *ni,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108170753.p7H7r5dc093147>