diff options
Diffstat (limited to 'drivers/net/wireless/bcm43xx/bcm43xx.h')
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx.h b/drivers/net/wireless/bcm43xx/bcm43xx.h index f8483c179e4c..10e07e865426 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx.h +++ b/drivers/net/wireless/bcm43xx/bcm43xx.h | |||
@@ -658,12 +658,6 @@ struct bcm43xx_pio { | |||
658 | 658 | ||
659 | #define BCM43xx_MAX_80211_CORES 2 | 659 | #define BCM43xx_MAX_80211_CORES 2 |
660 | 660 | ||
661 | #ifdef CONFIG_BCM947XX | ||
662 | #define core_offset(bcm) (bcm)->current_core_offset | ||
663 | #else | ||
664 | #define core_offset(bcm) 0 | ||
665 | #endif | ||
666 | |||
667 | /* Generic information about a core. */ | 661 | /* Generic information about a core. */ |
668 | struct bcm43xx_coreinfo { | 662 | struct bcm43xx_coreinfo { |
669 | u8 available:1, | 663 | u8 available:1, |
@@ -789,10 +783,6 @@ struct bcm43xx_private { | |||
789 | 783 | ||
790 | /* The currently active core. */ | 784 | /* The currently active core. */ |
791 | struct bcm43xx_coreinfo *current_core; | 785 | struct bcm43xx_coreinfo *current_core; |
792 | #ifdef CONFIG_BCM947XX | ||
793 | /** current core memory offset */ | ||
794 | u32 current_core_offset; | ||
795 | #endif | ||
796 | struct bcm43xx_coreinfo *active_80211_core; | 786 | struct bcm43xx_coreinfo *active_80211_core; |
797 | /* coreinfo structs for all possible cores follow. | 787 | /* coreinfo structs for all possible cores follow. |
798 | * Note that a core might not exist. | 788 | * Note that a core might not exist. |
@@ -943,25 +933,25 @@ struct bcm43xx_lopair * bcm43xx_get_lopair(struct bcm43xx_phyinfo *phy, | |||
943 | static inline | 933 | static inline |
944 | u16 bcm43xx_read16(struct bcm43xx_private *bcm, u16 offset) | 934 | u16 bcm43xx_read16(struct bcm43xx_private *bcm, u16 offset) |
945 | { | 935 | { |
946 | return ioread16(bcm->mmio_addr + core_offset(bcm) + offset); | 936 | return ioread16(bcm->mmio_addr + offset); |
947 | } | 937 | } |
948 | 938 | ||
949 | static inline | 939 | static inline |
950 | void bcm43xx_write16(struct bcm43xx_private *bcm, u16 offset, u16 value) | 940 | void bcm43xx_write16(struct bcm43xx_private *bcm, u16 offset, u16 value) |
951 | { | 941 | { |
952 | iowrite16(value, bcm->mmio_addr + core_offset(bcm) + offset); | 942 | iowrite16(value, bcm->mmio_addr + offset); |
953 | } | 943 | } |
954 | 944 | ||
955 | static inline | 945 | static inline |
956 | u32 bcm43xx_read32(struct bcm43xx_private *bcm, u16 offset) | 946 | u32 bcm43xx_read32(struct bcm43xx_private *bcm, u16 offset) |
957 | { | 947 | { |
958 | return ioread32(bcm->mmio_addr + core_offset(bcm) + offset); | 948 | return ioread32(bcm->mmio_addr + offset); |
959 | } | 949 | } |
960 | 950 | ||
961 | static inline | 951 | static inline |
962 | void bcm43xx_write32(struct bcm43xx_private *bcm, u16 offset, u32 value) | 952 | void bcm43xx_write32(struct bcm43xx_private *bcm, u16 offset, u32 value) |
963 | { | 953 | { |
964 | iowrite32(value, bcm->mmio_addr + core_offset(bcm) + offset); | 954 | iowrite32(value, bcm->mmio_addr + offset); |
965 | } | 955 | } |
966 | 956 | ||
967 | static inline | 957 | static inline |