diff options
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmsmac/aiutils.h')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/aiutils.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.h b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.h index f84c6f781692..d9f04a683bdb 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.h +++ b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.h | |||
@@ -113,10 +113,6 @@ | |||
113 | #define XTAL 0x1 /* primary crystal oscillator (2050) */ | 113 | #define XTAL 0x1 /* primary crystal oscillator (2050) */ |
114 | #define PLL 0x2 /* main chip pll */ | 114 | #define PLL 0x2 /* main chip pll */ |
115 | 115 | ||
116 | /* clkctl clk mode */ | ||
117 | #define CLK_FAST 0 /* force fast (pll) clock */ | ||
118 | #define CLK_DYNAMIC 2 /* enable dynamic clock control */ | ||
119 | |||
120 | /* GPIO usage priorities */ | 116 | /* GPIO usage priorities */ |
121 | #define GPIO_DRV_PRIORITY 0 /* Driver */ | 117 | #define GPIO_DRV_PRIORITY 0 /* Driver */ |
122 | #define GPIO_APP_PRIORITY 1 /* Application */ | 118 | #define GPIO_APP_PRIORITY 1 /* Application */ |
@@ -172,9 +168,7 @@ struct si_info { | |||
172 | struct si_pub pub; /* back plane public state (must be first) */ | 168 | struct si_pub pub; /* back plane public state (must be first) */ |
173 | struct bcma_bus *icbus; /* handle to soc interconnect bus */ | 169 | struct bcma_bus *icbus; /* handle to soc interconnect bus */ |
174 | struct pci_dev *pcibus; /* handle to pci bus */ | 170 | struct pci_dev *pcibus; /* handle to pci bus */ |
175 | struct pcicore_info *pch; /* PCI/E core handle */ | ||
176 | struct bcma_device *buscore; | 171 | struct bcma_device *buscore; |
177 | struct list_head var_list; /* list of srom variables */ | ||
178 | 172 | ||
179 | u32 chipst; /* chip status */ | 173 | u32 chipst; /* chip status */ |
180 | }; | 174 | }; |
@@ -197,38 +191,20 @@ extern u32 ai_core_cflags(struct bcma_device *core, u32 mask, u32 val); | |||
197 | extern struct si_pub *ai_attach(struct bcma_bus *pbus); | 191 | extern struct si_pub *ai_attach(struct bcma_bus *pbus); |
198 | extern void ai_detach(struct si_pub *sih); | 192 | extern void ai_detach(struct si_pub *sih); |
199 | extern uint ai_cc_reg(struct si_pub *sih, uint regoff, u32 mask, u32 val); | 193 | extern uint ai_cc_reg(struct si_pub *sih, uint regoff, u32 mask, u32 val); |
200 | extern void ai_pci_setup(struct si_pub *sih, uint coremask); | ||
201 | extern void ai_clkctl_init(struct si_pub *sih); | 194 | extern void ai_clkctl_init(struct si_pub *sih); |
202 | extern u16 ai_clkctl_fast_pwrup_delay(struct si_pub *sih); | 195 | extern u16 ai_clkctl_fast_pwrup_delay(struct si_pub *sih); |
203 | extern bool ai_clkctl_cc(struct si_pub *sih, uint mode); | 196 | extern bool ai_clkctl_cc(struct si_pub *sih, uint mode); |
204 | extern int ai_clkctl_xtal(struct si_pub *sih, uint what, bool on); | ||
205 | extern bool ai_deviceremoved(struct si_pub *sih); | 197 | extern bool ai_deviceremoved(struct si_pub *sih); |
206 | extern u32 ai_gpiocontrol(struct si_pub *sih, u32 mask, u32 val, | ||
207 | u8 priority); | ||
208 | |||
209 | /* OTP status */ | ||
210 | extern bool ai_is_otp_disabled(struct si_pub *sih); | ||
211 | |||
212 | /* SPROM availability */ | ||
213 | extern bool ai_is_sprom_available(struct si_pub *sih); | ||
214 | 198 | ||
215 | extern void ai_pci_sleep(struct si_pub *sih); | ||
216 | extern void ai_pci_down(struct si_pub *sih); | 199 | extern void ai_pci_down(struct si_pub *sih); |
217 | extern void ai_pci_up(struct si_pub *sih); | 200 | extern void ai_pci_up(struct si_pub *sih); |
218 | extern int ai_pci_fixcfg(struct si_pub *sih); | ||
219 | 201 | ||
220 | extern void ai_chipcontrl_epa4331(struct si_pub *sih, bool on); | ||
221 | /* Enable Ex-PA for 4313 */ | 202 | /* Enable Ex-PA for 4313 */ |
222 | extern void ai_epa_4313war(struct si_pub *sih); | 203 | extern void ai_epa_4313war(struct si_pub *sih); |
223 | 204 | ||
224 | extern uint ai_get_buscoretype(struct si_pub *sih); | 205 | extern uint ai_get_buscoretype(struct si_pub *sih); |
225 | extern uint ai_get_buscorerev(struct si_pub *sih); | 206 | extern uint ai_get_buscorerev(struct si_pub *sih); |
226 | 207 | ||
227 | static inline int ai_get_ccrev(struct si_pub *sih) | ||
228 | { | ||
229 | return sih->ccrev; | ||
230 | } | ||
231 | |||
232 | static inline u32 ai_get_cccaps(struct si_pub *sih) | 208 | static inline u32 ai_get_cccaps(struct si_pub *sih) |
233 | { | 209 | { |
234 | return sih->cccaps; | 210 | return sih->cccaps; |