aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/bcm43xx/bcm43xx.h
diff options
context:
space:
mode:
authorMichael Buesch <mbuesch@freenet.de>2006-02-23 15:15:39 -0500
committerJohn W. Linville <linville@tuxdriver.com>2006-03-27 11:18:40 -0500
commitf398f02d12cdc372e16c5e86246b10acf7211abc (patch)
treee1f705974b5380e43e2308355d461197fa553468 /drivers/net/wireless/bcm43xx/bcm43xx.h
parent1d1a73ccdc618168f2a5c962aab250605c93e517 (diff)
[PATCH] bcm43xx: Move TX/RX related functions to its own file. Add basic RTS/CTS code.
Signed-off-by: Michael Buesch <mbuesch@freenet.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/bcm43xx/bcm43xx.h')
-rw-r--r--drivers/net/wireless/bcm43xx/bcm43xx.h23
1 files changed, 6 insertions, 17 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx.h b/drivers/net/wireless/bcm43xx/bcm43xx.h
index 848717513b5f..21c75cae14bf 100644
--- a/drivers/net/wireless/bcm43xx/bcm43xx.h
+++ b/drivers/net/wireless/bcm43xx/bcm43xx.h
@@ -314,23 +314,6 @@
314/* Initial default iw_mode */ 314/* Initial default iw_mode */
315#define BCM43xx_INITIAL_IWMODE IW_MODE_INFRA 315#define BCM43xx_INITIAL_IWMODE IW_MODE_INFRA
316 316
317/* Values/Masks for the device TX header */
318#define BCM43xx_TXHDRFLAG_EXPECTACK 0x0001
319#define BCM43xx_TXHDRFLAG_FIRSTFRAGMENT 0x0008
320#define BCM43xx_TXHDRFLAG_DESTPSMODE 0x0020
321#define BCM43xx_TXHDRFLAG_FALLBACKOFDM 0x0100
322#define BCM43xx_TXHDRFLAG_FRAMEBURST 0x0800
323
324#define BCM43xx_TXHDRCTL_OFDM 0x0001
325#define BCM43xx_TXHDRCTL_SHORT_PREAMBLE 0x0010
326#define BCM43xx_TXHDRCTL_ANTENNADIV_MASK 0x0030
327#define BCM43xx_TXHDRCTL_ANTENNADIV_SHIFT 8
328
329#define BCM43xx_TXHDR_WSEC_KEYINDEX_MASK 0x00F0
330#define BCM43xx_TXHDR_WSEC_KEYINDEX_SHIFT 4
331#define BCM43xx_TXHDR_WSEC_ALGO_MASK 0x0003
332#define BCM43xx_TXHDR_WSEC_ALGO_SHIFT 0
333
334/* Bus type PCI. */ 317/* Bus type PCI. */
335#define BCM43xx_BUSTYPE_PCI 0 318#define BCM43xx_BUSTYPE_PCI 0
336/* Bus type Silicone Backplane Bus. */ 319/* Bus type Silicone Backplane Bus. */
@@ -952,4 +935,10 @@ int bcm43xx_pci_write_config32(struct bcm43xx_private *bcm, int offset, u32 valu
952 __value; \ 935 __value; \
953 }) 936 })
954 937
938/** Helpers to print MAC addresses. */
939#define BCM43xx_MACFMT "%02x:%02x:%02x:%02x:%02x:%02x"
940#define BCM43xx_MACARG(x) ((u8*)(x))[0], ((u8*)(x))[1], \
941 ((u8*)(x))[2], ((u8*)(x))[3], \
942 ((u8*)(x))[4], ((u8*)(x))[5]
943
955#endif /* BCM43xx_H_ */ 944#endif /* BCM43xx_H_ */