diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-25 20:00:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-25 20:00:17 -0400 |
commit | 3f5785ec31adcb7cafa9135087297a38d9698cf8 (patch) | |
tree | b7d06f14e1aea0292a88c4bc0305ea602f6ebd33 /drivers/net/wireless/b43/b43.h | |
parent | 8c1c77ff9be27137fa7cbbf51efedef1a2ae915b (diff) | |
parent | 94265cf5f731c7df29fdfde262ca3e6d51e6828c (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (89 commits)
bonding: documentation and code cleanup for resend_igmp
bonding: prevent deadlock on slave store with alb mode (v3)
net: hold rtnl again in dump callbacks
Add Fujitsu 1000base-SX PCI ID to tg3
bnx2x: protect sequence increment with mutex
sch_sfq: fix peek() implementation
isdn: netjet - blacklist Digium TDM400P
via-velocity: don't annotate MAC registers as packed
xen: netfront: hold RTNL when updating features.
sctp: fix memory leak of the ASCONF queue when free asoc
net: make dev_disable_lro use physical device if passed a vlan dev (v2)
net: move is_vlan_dev into public header file (v2)
bug.h: Fix build with CONFIG_PRINTK disabled.
wireless: fix fatal kernel-doc error + warning in mac80211.h
wireless: fix cfg80211.h new kernel-doc warnings
iwlagn: dbg_fixed_rate only used when CONFIG_MAC80211_DEBUGFS enabled
dst: catch uninitialized metrics
be2net: hash key for rss-config cmd not set
bridge: initialize fake_rtable metrics
net: fix __dst_destroy_metrics_generic()
...
Fix up trivial conflicts in drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
Diffstat (limited to 'drivers/net/wireless/b43/b43.h')
-rw-r--r-- | drivers/net/wireless/b43/b43.h | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h index ebc93c1bb5e7..25a78cfb7d15 100644 --- a/drivers/net/wireless/b43/b43.h +++ b/drivers/net/wireless/b43/b43.h | |||
@@ -567,6 +567,8 @@ struct b43_dma { | |||
567 | struct b43_dmaring *tx_ring_mcast; /* Multicast */ | 567 | struct b43_dmaring *tx_ring_mcast; /* Multicast */ |
568 | 568 | ||
569 | struct b43_dmaring *rx_ring; | 569 | struct b43_dmaring *rx_ring; |
570 | |||
571 | u32 translation; /* Routing bits */ | ||
570 | }; | 572 | }; |
571 | 573 | ||
572 | struct b43_pio_txqueue; | 574 | struct b43_pio_txqueue; |
@@ -705,7 +707,7 @@ enum { | |||
705 | 707 | ||
706 | /* Data structure for one wireless device (802.11 core) */ | 708 | /* Data structure for one wireless device (802.11 core) */ |
707 | struct b43_wldev { | 709 | struct b43_wldev { |
708 | struct ssb_device *dev; | 710 | struct ssb_device *sdev; |
709 | struct b43_wl *wl; | 711 | struct b43_wl *wl; |
710 | 712 | ||
711 | /* The device initialization status. | 713 | /* The device initialization status. |
@@ -879,22 +881,34 @@ static inline enum ieee80211_band b43_current_band(struct b43_wl *wl) | |||
879 | 881 | ||
880 | static inline u16 b43_read16(struct b43_wldev *dev, u16 offset) | 882 | static inline u16 b43_read16(struct b43_wldev *dev, u16 offset) |
881 | { | 883 | { |
882 | return ssb_read16(dev->dev, offset); | 884 | return ssb_read16(dev->sdev, offset); |
883 | } | 885 | } |
884 | 886 | ||
885 | static inline void b43_write16(struct b43_wldev *dev, u16 offset, u16 value) | 887 | static inline void b43_write16(struct b43_wldev *dev, u16 offset, u16 value) |
886 | { | 888 | { |
887 | ssb_write16(dev->dev, offset, value); | 889 | ssb_write16(dev->sdev, offset, value); |
888 | } | 890 | } |
889 | 891 | ||
890 | static inline u32 b43_read32(struct b43_wldev *dev, u16 offset) | 892 | static inline u32 b43_read32(struct b43_wldev *dev, u16 offset) |
891 | { | 893 | { |
892 | return ssb_read32(dev->dev, offset); | 894 | return ssb_read32(dev->sdev, offset); |
893 | } | 895 | } |
894 | 896 | ||
895 | static inline void b43_write32(struct b43_wldev *dev, u16 offset, u32 value) | 897 | static inline void b43_write32(struct b43_wldev *dev, u16 offset, u32 value) |
896 | { | 898 | { |
897 | ssb_write32(dev->dev, offset, value); | 899 | ssb_write32(dev->sdev, offset, value); |
900 | } | ||
901 | |||
902 | static inline void b43_block_read(struct b43_wldev *dev, void *buffer, | ||
903 | size_t count, u16 offset, u8 reg_width) | ||
904 | { | ||
905 | ssb_block_read(dev->sdev, buffer, count, offset, reg_width); | ||
906 | } | ||
907 | |||
908 | static inline void b43_block_write(struct b43_wldev *dev, const void *buffer, | ||
909 | size_t count, u16 offset, u8 reg_width) | ||
910 | { | ||
911 | ssb_block_write(dev->sdev, buffer, count, offset, reg_width); | ||
898 | } | 912 | } |
899 | 913 | ||
900 | static inline bool b43_using_pio_transfers(struct b43_wldev *dev) | 914 | static inline bool b43_using_pio_transfers(struct b43_wldev *dev) |