diff options
author | Michael Buesch <mb@bu3sch.de> | 2007-12-22 15:51:30 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:09:14 -0500 |
commit | e861b98d5e1be769ca6483b6df97149b956ea834 (patch) | |
tree | 88754e03eddc9a7b1441421125a776c5cbd597d1 /include/linux/ssb/ssb.h | |
parent | 66c6b139f77e8568f03611422967bfaa4c4a3bbd (diff) |
ssb: Fix extraction of values from SPROM
This fixes extraction of some values from the SPROM.
It mainly fixes extraction of antenna related values, which
is needed for another b43 fix sent later.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/ssb/ssb.h')
-rw-r--r-- | include/linux/ssb/ssb.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/include/linux/ssb/ssb.h b/include/linux/ssb/ssb.h index a21ab29ff363..0eaa98424f0a 100644 --- a/include/linux/ssb/ssb.h +++ b/include/linux/ssb/ssb.h | |||
@@ -22,7 +22,12 @@ struct ssb_sprom { | |||
22 | u8 et1mac[6]; /* MAC address for 802.11a */ | 22 | u8 et1mac[6]; /* MAC address for 802.11a */ |
23 | u8 et0phyaddr; /* MII address for enet0 */ | 23 | u8 et0phyaddr; /* MII address for enet0 */ |
24 | u8 et1phyaddr; /* MII address for enet1 */ | 24 | u8 et1phyaddr; /* MII address for enet1 */ |
25 | u8 et0mdcport; /* MDIO for enet0 */ | ||
26 | u8 et1mdcport; /* MDIO for enet1 */ | ||
27 | u8 board_rev; /* Board revision number from SPROM. */ | ||
25 | u8 country_code; /* Country Code */ | 28 | u8 country_code; /* Country Code */ |
29 | u8 ant_available_a; /* A-PHY antenna available bits (up to 4) */ | ||
30 | u8 ant_available_bg; /* B/G-PHY antenna available bits (up to 4) */ | ||
26 | u16 pa0b0; | 31 | u16 pa0b0; |
27 | u16 pa0b1; | 32 | u16 pa0b1; |
28 | u16 pa0b2; | 33 | u16 pa0b2; |
@@ -38,8 +43,18 @@ struct ssb_sprom { | |||
38 | u8 itssi_a; /* Idle TSSI Target for A-PHY */ | 43 | u8 itssi_a; /* Idle TSSI Target for A-PHY */ |
39 | u8 itssi_bg; /* Idle TSSI Target for B/G-PHY */ | 44 | u8 itssi_bg; /* Idle TSSI Target for B/G-PHY */ |
40 | u16 boardflags_lo; /* Boardflags (low 16 bits) */ | 45 | u16 boardflags_lo; /* Boardflags (low 16 bits) */ |
41 | u8 antenna_gain_a; /* A-PHY Antenna gain (in dBm Q5.2) */ | 46 | |
42 | u8 antenna_gain_bg; /* B/G-PHY Antenna gain (in dBm Q5.2) */ | 47 | /* Antenna gain values for up to 4 antennas |
48 | * on each band. Values in dBm/4 (Q5.2). Negative gain means the | ||
49 | * loss in the connectors is bigger than the gain. */ | ||
50 | struct { | ||
51 | struct { | ||
52 | s8 a0, a1, a2, a3; | ||
53 | } ghz24; /* 2.4GHz band */ | ||
54 | struct { | ||
55 | s8 a0, a1, a2, a3; | ||
56 | } ghz5; /* 5GHz band */ | ||
57 | } antenna_gain; | ||
43 | 58 | ||
44 | /* TODO - add any parameters needed from rev 2, 3, or 4 SPROMs */ | 59 | /* TODO - add any parameters needed from rev 2, 3, or 4 SPROMs */ |
45 | }; | 60 | }; |