-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] bcm43xx: Partially fix PIO code. Add Kconfig option for PIO o…
…r DMA mode (or both). Signed-off-by: Michael Buesch <mbuesch@freenet.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
- Loading branch information
Michael Buesch
authored and
John W. Linville
committed
Mar 27, 2006
1 parent
5c57807
commit 77db31e
Showing
8 changed files
with
438 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
config BCM43XX | ||
tristate "Broadcom BCM43xx wireless support" | ||
depends on PCI && IEEE80211 && IEEE80211_SOFTMAC && NET_RADIO && EXPERIMENTAL | ||
select FW_LOADER | ||
---help--- | ||
This is an experimental driver for the Broadcom 43xx wireless chip, | ||
found in the Apple Airport Extreme and various other devices. | ||
|
||
config BCM43XX_DEBUG | ||
bool "Broadcom BCM43xx debugging (RECOMMENDED)" | ||
depends on BCM43XX | ||
default y | ||
---help--- | ||
Broadcom 43xx debugging messages. | ||
Say Y, because the driver is still very experimental and | ||
this will help you get it running. | ||
|
||
config BCM43XX_DMA | ||
bool | ||
config BCM43XX_PIO | ||
bool | ||
|
||
choice | ||
prompt "BCM43xx data transfer mode" | ||
depends on BCM43XX | ||
default BCM43XX_DMA_AND_PIO | ||
|
||
config BCM43XX_DMA_AND_PIO_MODE | ||
bool "DMA + PIO" | ||
select BCM43XX_DMA | ||
select BCM43XX_PIO | ||
---help--- | ||
Include both, Direct Memory Access (DMA) and Programmed I/O (PIO) | ||
data transfer modes. | ||
The actually used mode is selectable through the module | ||
parameter "pio". If the module parameter is pio=0, DMA is used. | ||
Otherwise PIO is used. DMA is default. | ||
|
||
If unsure, choose this option. | ||
|
||
config BCM43XX_DMA_MODE | ||
bool "DMA (Direct Memory Access) only" | ||
select BCM43XX_DMA | ||
---help--- | ||
Only include Direct Memory Access (DMA). | ||
This reduces the size of the driver module, by omitting the PIO code. | ||
|
||
config BCM43XX_PIO_MODE | ||
bool "PIO (Programmed I/O) only" | ||
select BCM43XX_PIO | ||
---help--- | ||
Only include Programmed I/O (PIO). | ||
This reduces the size of the driver module, by omitting the DMA code. | ||
Please note that PIO transfers are slow (compared to DMA). | ||
Only use PIO, if DMA does not work for you. | ||
|
||
endchoice |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
obj-$(CONFIG_BCM43XX) += bcm43xx.o | ||
bcm43xx-obj-$(CONFIG_BCM43XX_DEBUG) += bcm43xx_debugfs.o | ||
|
||
bcm43xx-objs := bcm43xx_main.o bcm43xx_dma.o \ | ||
bcm43xx-obj-$(CONFIG_BCM43XX_DMA) += bcm43xx_dma.o | ||
bcm43xx-obj-$(CONFIG_BCM43XX_PIO) += bcm43xx_pio.o | ||
|
||
bcm43xx-objs := bcm43xx_main.o bcm43xx_ilt.o \ | ||
bcm43xx_radio.o bcm43xx_phy.o \ | ||
bcm43xx_power.o bcm43xx_wx.o \ | ||
bcm43xx_pio.o bcm43xx_ilt.o \ | ||
bcm43xx_leds.o bcm43xx_ethtool.o \ | ||
$(bcm43xx-obj-y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.