aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/b43.h
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2007-12-26 08:41:30 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:09:17 -0500
commit03b29773b613f10d2f97dbf0983f1c4c58507967 (patch)
treece1ca3fd9a8ae572e20a629976152f4e1a6c4f7b /drivers/net/wireless/b43/b43.h
parent993e1c780b323736a2cdc24564f35e80ce8d3337 (diff)
b43: Remove PIO support
Remove b43 PIO support. DMA works well on all supported devices. There's no reason to use PIO. Additionally, new devices don't support PIO in hardware anymore. b43 PIO support is dead and unused code. After applying this patch please do git rm drivers/net/wireless/b43/pio.h git rm drivers/net/wireless/b43/pio.c to remove the main PIO support code. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/b43.h')
-rw-r--r--drivers/net/wireless/b43/b43.h45
1 files changed, 3 insertions, 42 deletions
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h
index bcaa60924381..104d0b2ba02e 100644
--- a/drivers/net/wireless/b43/b43.h
+++ b/drivers/net/wireless/b43/b43.h
@@ -68,11 +68,6 @@
68#define B43_MMIO_DMA64_BASE3 0x2C0 68#define B43_MMIO_DMA64_BASE3 0x2C0
69#define B43_MMIO_DMA64_BASE4 0x300 69#define B43_MMIO_DMA64_BASE4 0x300
70#define B43_MMIO_DMA64_BASE5 0x340 70#define B43_MMIO_DMA64_BASE5 0x340
71/* PIO */
72#define B43_MMIO_PIO1_BASE 0x300
73#define B43_MMIO_PIO2_BASE 0x310
74#define B43_MMIO_PIO3_BASE 0x320
75#define B43_MMIO_PIO4_BASE 0x330
76 71
77#define B43_MMIO_PHY_VER 0x3E0 72#define B43_MMIO_PHY_VER 0x3E0
78#define B43_MMIO_PHY_RADIO 0x3E2 73#define B43_MMIO_PHY_RADIO 0x3E2
@@ -579,14 +574,6 @@ struct b43_dma {
579 struct b43_dmaring *rx_ring3; /* only available on core.rev < 5 */ 574 struct b43_dmaring *rx_ring3; /* only available on core.rev < 5 */
580}; 575};
581 576
582/* Data structures for PIO transmission, per 80211 core. */
583struct b43_pio {
584 struct b43_pioqueue *queue0;
585 struct b43_pioqueue *queue1;
586 struct b43_pioqueue *queue2;
587 struct b43_pioqueue *queue3;
588};
589
590/* Context information for a noise calculation (Link Quality). */ 577/* Context information for a noise calculation (Link Quality). */
591struct b43_noise_calculation { 578struct b43_noise_calculation {
592 u8 channel_at_start; 579 u8 channel_at_start;
@@ -705,7 +692,6 @@ struct b43_wldev {
705 /* Saved init status for handling suspend. */ 692 /* Saved init status for handling suspend. */
706 int suspend_init_status; 693 int suspend_init_status;
707 694
708 bool __using_pio; /* Internal, use b43_using_pio(). */
709 bool bad_frames_preempt; /* Use "Bad Frames Preemption" (default off) */ 695 bool bad_frames_preempt; /* Use "Bad Frames Preemption" (default off) */
710 bool reg124_set_0x4; /* Some variable to keep track of IRQ stuff. */ 696 bool reg124_set_0x4; /* Some variable to keep track of IRQ stuff. */
711 bool short_preamble; /* TRUE, if short preamble is enabled. */ 697 bool short_preamble; /* TRUE, if short preamble is enabled. */
@@ -714,12 +700,9 @@ struct b43_wldev {
714 700
715 /* PHY/Radio device. */ 701 /* PHY/Radio device. */
716 struct b43_phy phy; 702 struct b43_phy phy;
717 union { 703
718 /* DMA engines. */ 704 /* DMA engines. */
719 struct b43_dma dma; 705 struct b43_dma dma;
720 /* PIO engines. */
721 struct b43_pio pio;
722 };
723 706
724 /* Various statistics about the physical device. */ 707 /* Various statistics about the physical device. */
725 struct b43_stats stats; 708 struct b43_stats stats;
@@ -774,28 +757,6 @@ static inline struct b43_wl *hw_to_b43_wl(struct ieee80211_hw *hw)
774 return hw->priv; 757 return hw->priv;
775} 758}
776 759
777/* Helper function, which returns a boolean.
778 * TRUE, if PIO is used; FALSE, if DMA is used.
779 */
780#if defined(CONFIG_B43_DMA) && defined(CONFIG_B43_PIO)
781static inline int b43_using_pio(struct b43_wldev *dev)
782{
783 return dev->__using_pio;
784}
785#elif defined(CONFIG_B43_DMA)
786static inline int b43_using_pio(struct b43_wldev *dev)
787{
788 return 0;
789}
790#elif defined(CONFIG_B43_PIO)
791static inline int b43_using_pio(struct b43_wldev *dev)
792{
793 return 1;
794}
795#else
796# error "Using neither DMA nor PIO? Confused..."
797#endif
798
799static inline struct b43_wldev *dev_to_b43_wldev(struct device *dev) 760static inline struct b43_wldev *dev_to_b43_wldev(struct device *dev)
800{ 761{
801 struct ssb_device *ssb_dev = dev_to_ssb_dev(dev); 762 struct ssb_device *ssb_dev = dev_to_ssb_dev(dev);