diff options
author | John W. Linville <linville@tuxdriver.com> | 2006-01-23 16:59:58 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-03-27 11:18:23 -0500 |
commit | f222313a61a5e134de80767b35c672b91e78383c (patch) | |
tree | c3a8dca8a021bd88f58112e70ce52cfb28e99ff1 /drivers/net/wireless/bcm43xx/bcm43xx_phy.h | |
parent | 5d5d7727a8cde78f798ecf04bac8031eff536f9d (diff) |
[PATCH] wireless: import bcm43xx sources
Import the bcm43xx driver from the upstream sources here:
ftp://ftp.berlios.de/pub/bcm43xx/snapshots/bcm43xx/bcm43xx-20060123.tar.bz2
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/bcm43xx/bcm43xx_phy.h')
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx_phy.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_phy.h b/drivers/net/wireless/bcm43xx/bcm43xx_phy.h new file mode 100644 index 000000000000..1f321ef42be8 --- /dev/null +++ b/drivers/net/wireless/bcm43xx/bcm43xx_phy.h | |||
@@ -0,0 +1,74 @@ | |||
1 | /* | ||
2 | |||
3 | Broadcom BCM43xx wireless driver | ||
4 | |||
5 | Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, | ||
6 | Stefano Brivio <st3@riseup.net> | ||
7 | Michael Buesch <mbuesch@freenet.de> | ||
8 | Danny van Dyk <kugelfang@gentoo.org> | ||
9 | Andreas Jaggi <andreas.jaggi@waterwave.ch> | ||
10 | |||
11 | Some parts of the code in this file are derived from the ipw2200 | ||
12 | driver Copyright(c) 2003 - 2004 Intel Corporation. | ||
13 | |||
14 | This program is free software; you can redistribute it and/or modify | ||
15 | it under the terms of the GNU General Public License as published by | ||
16 | the Free Software Foundation; either version 2 of the License, or | ||
17 | (at your option) any later version. | ||
18 | |||
19 | This program is distributed in the hope that it will be useful, | ||
20 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
22 | GNU General Public License for more details. | ||
23 | |||
24 | You should have received a copy of the GNU General Public License | ||
25 | along with this program; see the file COPYING. If not, write to | ||
26 | the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor, | ||
27 | Boston, MA 02110-1301, USA. | ||
28 | |||
29 | */ | ||
30 | |||
31 | #ifndef BCM43xx_PHY_H_ | ||
32 | #define BCM43xx_PHY_H_ | ||
33 | |||
34 | #include <linux/types.h> | ||
35 | |||
36 | struct bcm43xx_private; | ||
37 | |||
38 | void bcm43xx_raw_phy_lock(struct bcm43xx_private *bcm); | ||
39 | #define bcm43xx_phy_lock(bcm, flags) \ | ||
40 | do { \ | ||
41 | local_irq_save(flags); \ | ||
42 | bcm43xx_raw_phy_lock(bcm); \ | ||
43 | } while (0) | ||
44 | void bcm43xx_raw_phy_unlock(struct bcm43xx_private *bcm); | ||
45 | #define bcm43xx_phy_unlock(bcm, flags) \ | ||
46 | do { \ | ||
47 | bcm43xx_raw_phy_unlock(bcm); \ | ||
48 | local_irq_restore(flags); \ | ||
49 | } while (0) | ||
50 | |||
51 | u16 bcm43xx_phy_read(struct bcm43xx_private *bcm, u16 offset); | ||
52 | void bcm43xx_phy_write(struct bcm43xx_private *bcm, u16 offset, u16 val); | ||
53 | |||
54 | int bcm43xx_phy_init_tssi2dbm_table(struct bcm43xx_private *bcm); | ||
55 | int bcm43xx_phy_init(struct bcm43xx_private *bcm); | ||
56 | |||
57 | void bcm43xx_phy_set_antenna_diversity(struct bcm43xx_private *bcm); | ||
58 | void bcm43xx_phy_calibrate(struct bcm43xx_private *bcm); | ||
59 | int bcm43xx_phy_connect(struct bcm43xx_private *bcm, int connect); | ||
60 | |||
61 | void bcm43xx_phy_lo_b_measure(struct bcm43xx_private *bcm); | ||
62 | void bcm43xx_phy_lo_g_measure(struct bcm43xx_private *bcm); | ||
63 | void bcm43xx_phy_xmitpower(struct bcm43xx_private *bcm); | ||
64 | |||
65 | /* Adjust the LocalOscillator to the saved values. | ||
66 | * "fixed" is only set to 1 once in initialization. Set to 0 otherwise. | ||
67 | */ | ||
68 | void bcm43xx_phy_lo_adjust(struct bcm43xx_private *bcm, int fixed); | ||
69 | void bcm43xx_phy_lo_mark_all_unused(struct bcm43xx_private *bcm); | ||
70 | |||
71 | void bcm43xx_phy_set_baseband_attenuation(struct bcm43xx_private *bcm, | ||
72 | u16 baseband_attenuation); | ||
73 | |||
74 | #endif /* BCM43xx_PHY_H_ */ | ||