diff options
Diffstat (limited to 'drivers/net/wireless/b43/b43.h')
-rw-r--r-- | drivers/net/wireless/b43/b43.h | 45 |
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. */ | ||
583 | struct 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). */ |
591 | struct b43_noise_calculation { | 578 | struct 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) | ||
781 | static inline int b43_using_pio(struct b43_wldev *dev) | ||
782 | { | ||
783 | return dev->__using_pio; | ||
784 | } | ||
785 | #elif defined(CONFIG_B43_DMA) | ||
786 | static inline int b43_using_pio(struct b43_wldev *dev) | ||
787 | { | ||
788 | return 0; | ||
789 | } | ||
790 | #elif defined(CONFIG_B43_PIO) | ||
791 | static 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 | |||
799 | static inline struct b43_wldev *dev_to_b43_wldev(struct device *dev) | 760 | static 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); |