Skip to contentSkip to conversation

b43: Optimize PIO scratchbuffer usage

PATCH New Michael Buesch 1 participant 1 message Oct 9, 2009 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 b43: Optimize PIO scratchbuffer usage

This optimizes the PIO scratchbuffer usage.

---

drivers/net/wireless/b43/b43.h +3 -13
Index: wireless-testing/drivers/net/wireless/b43/b43.h
===================================================================
@@ -749,12 +749,6 @@ struct b43_wldev {
 #endif
 };
 
-/*
- * Include goes here to avoid a dependency problem.
- * A better fix would be to integrate xmit.h into b43.h.
- */
-#include "xmit.h"
-
 /* Data structure for the WLAN parts (802.11 cores) of the b43 chip. */
 struct b43_wl {
 	/* Pointer to the active wireless device on this chip */
@@ -830,13 +824,9 @@ struct b43_wl {
 	struct b43_leds leds;
 
 #ifdef CONFIG_B43_PIO
-	/*
-	 * RX/TX header/tail buffers used by the frame transmit functions.
-	 */
-	struct b43_rxhdr_fw4 rxhdr;
-	struct b43_txhdr txhdr;
-	u8 rx_tail[4];
-	u8 tx_tail[4];
+	/* Kmalloc'ed scratch space for PIO TX/RX. Protected by wl->mutex. */
+	u8 pio_scratchspace[110] __attribute__((__aligned__(8)));
+	u8 pio_tailspace[4] __attribute__((__aligned__(8)));
 #endif /* CONFIG_B43_PIO */
 };
 
drivers/net/wireless/b43/pio.c +45 -31

174 lines not on this page · raw message

drivers/net/wireless/b43/xmit.c +1 -1
Index: wireless-testing/drivers/net/wireless/b43/xmit.c
===================================================================
@@ -27,7 +27,7 @@
 
 */
 
-#include "b43.h"
+#include "xmit.h"
 #include "phy_common.h"
 #include "dma.h"
 #include "pio.h"
Signature · 1 line
Greetings, Michael.