aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2006-08-16 12:05:16 -0400
committerJohn W. Linville <linville@tuxdriver.com>2006-08-29 17:06:29 -0400
commit80b60fa8488e98ceaecb8f976abe79df50988037 (patch)
treeaf64ba4e3589c8b98cb9673bb3aabdffb44c7c3e /drivers/net/wireless
parent9c974fb1a44dc8d09c16caa4dd174b0403ba585c (diff)
[PATCH] bcm43xx: optimization of DMA bitfields
Convert the bitfields in the bcm43xx DMA code to properly aligned u8 booleans. These flags are accessed in the DMA hotpath, so it's a good idea to waste a few bytes of memory for the sake of speed by not requiring masking (and probably shifting) of the bitfields. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-Off-By: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/bcm43xx/bcm43xx_dma.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_dma.h b/drivers/net/wireless/bcm43xx/bcm43xx_dma.h
index 258a2f9bd7a6..e04bcaddd1d0 100644
--- a/drivers/net/wireless/bcm43xx/bcm43xx_dma.h
+++ b/drivers/net/wireless/bcm43xx/bcm43xx_dma.h
@@ -235,9 +235,12 @@ struct bcm43xx_dmaring {
235 u16 mmio_base; 235 u16 mmio_base;
236 /* DMA controller index number (0-5). */ 236 /* DMA controller index number (0-5). */
237 int index; 237 int index;
238 u8 tx:1, /* TRUE, if this is a TX ring. */ 238 /* Boolean. Is this a TX ring? */
239 dma64:1, /* TRUE, if 64-bit DMA is enabled (FALSE if 32bit). */ 239 u8 tx;
240 suspended:1; /* TRUE, if transfers are suspended on this ring. */ 240 /* Boolean. 64bit DMA if true, 32bit DMA otherwise. */
241 u8 dma64;
242 /* Boolean. Are transfers suspended on this ring? */
243 u8 suspended;
241 struct bcm43xx_private *bcm; 244 struct bcm43xx_private *bcm;
242#ifdef CONFIG_BCM43XX_DEBUG 245#ifdef CONFIG_BCM43XX_DEBUG
243 /* Maximum number of used slots. */ 246 /* Maximum number of used slots. */