summaryrefslogtreecommitdiff
path: root/drivers/staging/cw1200/debug.h
diff options
context:
space:
mode:
authorAjitpal.Singh <ajitpal.singh@stericsson.com>2011-09-21 16:56:14 +0530
committerPhilippe LANGLAIS <philippe.langlais@stericsson.com>2011-10-13 10:26:09 +0200
commit1cd0b078e3beff5a4c5b6dfe134e38653f4f0483 (patch)
tree16b5cdef6eb238a797a77ce8c3b7c1f47817ecf4 /drivers/staging/cw1200/debug.h
parent744a76525819adfe1b1652d465664e5a380ce29c (diff)
cw1200: Add 2byte hole in TXreq for unaligned buf
Adds a 2 bytes hole in the WSM Transmit request when skb->data is aligned at 2 bytes.This will make the transmit request 4byte aligned. This optmisation is need for DMA. The firmware is informed about the hole by setting BIT7 in the WSM Transmit Request flags. ST-Ericsson ID: 357764 ST-Ericsson FOSS-OUT ID: NA Change-Id: Idbb60459ca645575c2afc74f2421b0fa86121cf0 Signed-off-by: Ajitpal.Singh <ajitpal.singh@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33668 Tested-by: Dmitry TARNYAGIN <dmitry.tarnyagin@stericsson.com> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
Diffstat (limited to 'drivers/staging/cw1200/debug.h')
-rw-r--r--drivers/staging/cw1200/debug.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/cw1200/debug.h b/drivers/staging/cw1200/debug.h
index 6f7d8acab00..aab0c061648 100644
--- a/drivers/staging/cw1200/debug.h
+++ b/drivers/staging/cw1200/debug.h
@@ -14,7 +14,7 @@ struct cw1200_debug_priv {
int tx_multi;
int tx_multi_frames;
int tx_cache_miss;
- int tx_copy;
+ int tx_align;
int tx_ttl;
};
@@ -53,9 +53,9 @@ static inline void cw1200_debug_tx_cache_miss(struct cw1200_common *priv)
++priv->debug->tx_cache_miss;
}
-static inline void cw1200_debug_tx_copy(struct cw1200_common *priv)
+static inline void cw1200_debug_tx_align(struct cw1200_common *priv)
{
- ++priv->debug->tx_copy;
+ ++priv->debug->tx_align;
}
static inline void cw1200_debug_tx_ttl(struct cw1200_common *priv)
@@ -99,7 +99,7 @@ static inline void cw1200_debug_tx_cache_miss(struct cw1200_common *priv)
{
}
-static inline void cw1200_debug_tx_copy(struct cw1200_common *priv)
+static inline void cw1200_debug_tx_align(struct cw1200_common *priv)
{
}