aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ssb/ssb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ssb/ssb.h')
-rw-r--r--include/linux/ssb/ssb.h32
1 files changed, 26 insertions, 6 deletions
diff --git a/include/linux/ssb/ssb.h b/include/linux/ssb/ssb.h
index 2b5c312c4960..cdd8a2fd4a69 100644
--- a/include/linux/ssb/ssb.h
+++ b/include/linux/ssb/ssb.h
@@ -78,13 +78,34 @@ struct ssb_sprom_r3 {
78 u32 ofdmgpo; /* G-PHY OFDM Power Offset */ 78 u32 ofdmgpo; /* G-PHY OFDM Power Offset */
79}; 79};
80 80
81struct ssb_sprom_r4 {
82 /* TODO */
83};
84
85struct ssb_sprom { 81struct ssb_sprom {
86 u8 revision; 82 u8 revision;
87 u8 crc; 83 u8 temp_fill[2 * sizeof(struct ssb_sprom_r1)];
84 u8 il0mac[6]; /* MAC address for 802.11b/g */
85 u8 et0mac[6]; /* MAC address for Ethernet */
86 u8 et1mac[6]; /* MAC address for 802.11a */
87 u8 et0phyaddr; /* MII address for enet0 */
88 u8 et1phyaddr; /* MII address for enet1 */
89 u8 country_code; /* Country Code */
90 u16 pa0b0;
91 u16 pa0b1;
92 u16 pa0b2;
93 u16 pa1b0;
94 u16 pa1b1;
95 u16 pa1b2;
96 u8 gpio0; /* GPIO pin 0 */
97 u8 gpio1; /* GPIO pin 1 */
98 u8 gpio2; /* GPIO pin 2 */
99 u8 gpio3; /* GPIO pin 3 */
100 u16 maxpwr_a; /* A-PHY Amplifier Max Power (in dBm Q5.2) */
101 u16 maxpwr_bg; /* B/G-PHY Amplifier Max Power (in dBm Q5.2) */
102 u8 itssi_a; /* Idle TSSI Target for A-PHY */
103 u8 itssi_bg; /* Idle TSSI Target for B/G-PHY */
104 u16 boardflags_lo; /* Boardflags (low 16 bits) */
105 u8 antenna_gain_a; /* A-PHY Antenna gain (in dBm Q5.2) */
106 u8 antenna_gain_bg; /* B/G-PHY Antenna gain (in dBm Q5.2) */
107
108 /* TODO - add any parameters needed from rev 2, 3, or 4 SPROMs */
88 /* The valid r# fields are selected by the "revision". 109 /* The valid r# fields are selected by the "revision".
89 * Revision 3 and lower inherit from lower revisions. 110 * Revision 3 and lower inherit from lower revisions.
90 */ 111 */
@@ -94,7 +115,6 @@ struct ssb_sprom {
94 struct ssb_sprom_r2 r2; 115 struct ssb_sprom_r2 r2;
95 struct ssb_sprom_r3 r3; 116 struct ssb_sprom_r3 r3;
96 }; 117 };
97 struct ssb_sprom_r4 r4;
98 }; 118 };
99}; 119};
100 120