phy_lcn.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. /*
  2. Broadcom B43 wireless driver
  3. IEEE 802.11n LCN-PHY support
  4. Copyright (c) 2011 Rafał Miłecki <zajec5@gmail.com>
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; see the file COPYING. If not, write to
  15. the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
  16. Boston, MA 02110-1301, USA.
  17. This file incorporates work covered by the following copyright and
  18. permission notice:
  19. Copyright (c) 2010 Broadcom Corporation
  20. Permission to use, copy, modify, and/or distribute this software for any
  21. purpose with or without fee is hereby granted, provided that the above
  22. copyright notice and this permission notice appear in all copies.
  23. */
  24. #include <linux/slab.h>
  25. #include "b43.h"
  26. #include "phy_lcn.h"
  27. #include "tables_phy_lcn.h"
  28. #include "main.h"
  29. /**************************************************
  30. * Radio 2064.
  31. **************************************************/
  32. /* wlc_lcnphy_radio_2064_channel_tune_4313 */
  33. static void b43_radio_2064_channel_setup(struct b43_wldev *dev)
  34. {
  35. u16 save[2];
  36. b43_radio_set(dev, 0x09d, 0x4);
  37. b43_radio_write(dev, 0x09e, 0xf);
  38. /* Channel specific values in theory, in practice always the same */
  39. b43_radio_write(dev, 0x02a, 0xb);
  40. b43_radio_maskset(dev, 0x030, ~0x3, 0xa);
  41. b43_radio_maskset(dev, 0x091, ~0x3, 0);
  42. b43_radio_maskset(dev, 0x038, ~0xf, 0x7);
  43. b43_radio_maskset(dev, 0x030, ~0xc, 0x8);
  44. b43_radio_maskset(dev, 0x05e, ~0xf, 0x8);
  45. b43_radio_maskset(dev, 0x05e, ~0xf0, 0x80);
  46. b43_radio_write(dev, 0x06c, 0x80);
  47. save[0] = b43_radio_read(dev, 0x044);
  48. save[1] = b43_radio_read(dev, 0x12b);
  49. b43_radio_set(dev, 0x044, 0x7);
  50. b43_radio_set(dev, 0x12b, 0xe);
  51. /* TODO */
  52. b43_radio_write(dev, 0x040, 0xfb);
  53. b43_radio_write(dev, 0x041, 0x9a);
  54. b43_radio_write(dev, 0x042, 0xa3);
  55. b43_radio_write(dev, 0x043, 0x0c);
  56. /* TODO */
  57. b43_radio_set(dev, 0x044, 0x0c);
  58. udelay(1);
  59. b43_radio_write(dev, 0x044, save[0]);
  60. b43_radio_write(dev, 0x12b, save[1]);
  61. if (dev->phy.rev == 1) {
  62. /* brcmsmac uses outdated 0x3 for 0x038 */
  63. b43_radio_write(dev, 0x038, 0x0);
  64. b43_radio_write(dev, 0x091, 0x7);
  65. }
  66. }
  67. /* wlc_radio_2064_init */
  68. static void b43_radio_2064_init(struct b43_wldev *dev)
  69. {
  70. if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) {
  71. b43_radio_write(dev, 0x09c, 0x0020);
  72. b43_radio_write(dev, 0x105, 0x0008);
  73. } else {
  74. /* TODO */
  75. }
  76. b43_radio_write(dev, 0x032, 0x0062);
  77. b43_radio_write(dev, 0x033, 0x0019);
  78. b43_radio_write(dev, 0x090, 0x0010);
  79. b43_radio_write(dev, 0x010, 0x0000);
  80. if (dev->phy.rev == 1) {
  81. b43_radio_write(dev, 0x060, 0x007f);
  82. b43_radio_write(dev, 0x061, 0x0072);
  83. b43_radio_write(dev, 0x062, 0x007f);
  84. }
  85. b43_radio_write(dev, 0x01d, 0x0002);
  86. b43_radio_write(dev, 0x01e, 0x0006);
  87. b43_phy_write(dev, 0x4ea, 0x4688);
  88. b43_phy_maskset(dev, 0x4eb, ~0x7, 0x2);
  89. b43_phy_mask(dev, 0x4eb, ~0x01c0);
  90. b43_phy_maskset(dev, 0x46a, 0xff00, 0x19);
  91. b43_lcntab_write(dev, B43_LCNTAB16(0x00, 0x55), 0);
  92. b43_radio_mask(dev, 0x05b, (u16) ~0xff02);
  93. b43_radio_set(dev, 0x004, 0x40);
  94. b43_radio_set(dev, 0x120, 0x10);
  95. b43_radio_set(dev, 0x078, 0x80);
  96. b43_radio_set(dev, 0x129, 0x2);
  97. b43_radio_set(dev, 0x057, 0x1);
  98. b43_radio_set(dev, 0x05b, 0x2);
  99. /* TODO: wait for some bit to be set */
  100. b43_radio_read(dev, 0x05c);
  101. b43_radio_mask(dev, 0x05b, (u16) ~0xff02);
  102. b43_radio_mask(dev, 0x057, (u16) ~0xff01);
  103. b43_phy_write(dev, 0x933, 0x2d6b);
  104. b43_phy_write(dev, 0x934, 0x2d6b);
  105. b43_phy_write(dev, 0x935, 0x2d6b);
  106. b43_phy_write(dev, 0x936, 0x2d6b);
  107. b43_phy_write(dev, 0x937, 0x016b);
  108. b43_radio_mask(dev, 0x057, (u16) ~0xff02);
  109. b43_radio_write(dev, 0x0c2, 0x006f);
  110. }
  111. /**************************************************
  112. * Various PHY ops
  113. **************************************************/
  114. /* wlc_lcnphy_toggle_afe_pwdn */
  115. static void b43_phy_lcn_afe_set_unset(struct b43_wldev *dev)
  116. {
  117. u16 afe_ctl2 = b43_phy_read(dev, B43_PHY_LCN_AFE_CTL2);
  118. u16 afe_ctl1 = b43_phy_read(dev, B43_PHY_LCN_AFE_CTL1);
  119. b43_phy_write(dev, B43_PHY_LCN_AFE_CTL2, afe_ctl2 | 0x1);
  120. b43_phy_write(dev, B43_PHY_LCN_AFE_CTL1, afe_ctl1 | 0x1);
  121. b43_phy_write(dev, B43_PHY_LCN_AFE_CTL2, afe_ctl2 & ~0x1);
  122. b43_phy_write(dev, B43_PHY_LCN_AFE_CTL1, afe_ctl1 & ~0x1);
  123. b43_phy_write(dev, B43_PHY_LCN_AFE_CTL2, afe_ctl2);
  124. b43_phy_write(dev, B43_PHY_LCN_AFE_CTL1, afe_ctl1);
  125. }
  126. /* wlc_lcnphy_clear_tx_power_offsets */
  127. static void b43_phy_lcn_clear_tx_power_offsets(struct b43_wldev *dev)
  128. {
  129. u8 i;
  130. if (1) { /* FIXME */
  131. b43_phy_write(dev, B43_PHY_LCN_TABLE_ADDR, (0x7 << 10) | 0x340);
  132. for (i = 0; i < 30; i++) {
  133. b43_phy_write(dev, B43_PHY_LCN_TABLE_DATAHI, 0);
  134. b43_phy_write(dev, B43_PHY_LCN_TABLE_DATALO, 0);
  135. }
  136. }
  137. b43_phy_write(dev, B43_PHY_LCN_TABLE_ADDR, (0x7 << 10) | 0x80);
  138. for (i = 0; i < 64; i++) {
  139. b43_phy_write(dev, B43_PHY_LCN_TABLE_DATAHI, 0);
  140. b43_phy_write(dev, B43_PHY_LCN_TABLE_DATALO, 0);
  141. }
  142. }
  143. /* wlc_lcnphy_rev0_baseband_init */
  144. static void b43_phy_lcn_rev0_baseband_init(struct b43_wldev *dev)
  145. {
  146. b43_radio_write(dev, 0x11c, 0);
  147. b43_phy_write(dev, 0x43b, 0);
  148. b43_phy_write(dev, 0x43c, 0);
  149. b43_phy_write(dev, 0x44c, 0);
  150. b43_phy_write(dev, 0x4e6, 0);
  151. b43_phy_write(dev, 0x4f9, 0);
  152. b43_phy_write(dev, 0x4b0, 0);
  153. b43_phy_write(dev, 0x938, 0);
  154. b43_phy_write(dev, 0x4b0, 0);
  155. b43_phy_write(dev, 0x44e, 0);
  156. b43_phy_set(dev, 0x567, 0x03);
  157. b43_phy_set(dev, 0x44a, 0x44);
  158. b43_phy_write(dev, 0x44a, 0x80);
  159. if (!(dev->dev->bus_sprom->boardflags_lo & B43_BFL_FEM))
  160. ; /* TODO */
  161. b43_phy_maskset(dev, 0x634, ~0xff, 0xc);
  162. if (dev->dev->bus_sprom->boardflags_lo & B43_BFL_FEM) {
  163. b43_phy_maskset(dev, 0x634, ~0xff, 0xa);
  164. b43_phy_write(dev, 0x910, 0x1);
  165. }
  166. b43_phy_write(dev, 0x910, 0x1);
  167. b43_phy_maskset(dev, 0x448, ~0x300, 0x100);
  168. b43_phy_maskset(dev, 0x608, ~0xff, 0x17);
  169. b43_phy_maskset(dev, 0x604, ~0x7ff, 0x3ea);
  170. }
  171. /* wlc_lcnphy_bu_tweaks */
  172. static void b43_phy_lcn_bu_tweaks(struct b43_wldev *dev)
  173. {
  174. b43_phy_set(dev, 0x805, 0x1);
  175. b43_phy_maskset(dev, 0x42f, ~0x7, 0x3);
  176. b43_phy_maskset(dev, 0x030, ~0x7, 0x3);
  177. b43_phy_write(dev, 0x414, 0x1e10);
  178. b43_phy_write(dev, 0x415, 0x0640);
  179. b43_phy_maskset(dev, 0x4df, (u16) ~0xff00, 0xf700);
  180. b43_phy_set(dev, 0x44a, 0x44);
  181. b43_phy_write(dev, 0x44a, 0x80);
  182. b43_phy_maskset(dev, 0x434, ~0xff, 0xfd);
  183. b43_phy_maskset(dev, 0x420, ~0xff, 0x10);
  184. if (dev->dev->bus_sprom->board_rev >= 0x1204)
  185. b43_radio_set(dev, 0x09b, 0xf0);
  186. b43_phy_write(dev, 0x7d6, 0x0902);
  187. /* TODO: more ops */
  188. if (dev->phy.rev == 1) {
  189. /* TODO: more ops */
  190. b43_phy_lcn_clear_tx_power_offsets(dev);
  191. }
  192. }
  193. /* wlc_lcnphy_vbat_temp_sense_setup */
  194. static void b43_phy_lcn_sense_setup(struct b43_wldev *dev)
  195. {
  196. u8 i;
  197. u16 save_radio_regs[6][2] = {
  198. { 0x007, 0 }, { 0x0ff, 0 }, { 0x11f, 0 }, { 0x005, 0 },
  199. { 0x025, 0 }, { 0x112, 0 },
  200. };
  201. u16 save_phy_regs[14][2] = {
  202. { 0x503, 0 }, { 0x4a4, 0 }, { 0x4d0, 0 }, { 0x4d9, 0 },
  203. { 0x4da, 0 }, { 0x4a6, 0 }, { 0x938, 0 }, { 0x939, 0 },
  204. { 0x4d8, 0 }, { 0x4d0, 0 }, { 0x4d7, 0 }, { 0x4a5, 0 },
  205. { 0x40d, 0 }, { 0x4a2, 0 },
  206. };
  207. u16 save_radio_4a4;
  208. for (i = 0; i < 6; i++)
  209. save_radio_regs[i][1] = b43_radio_read(dev,
  210. save_radio_regs[i][0]);
  211. for (i = 0; i < 14; i++)
  212. save_phy_regs[i][1] = b43_phy_read(dev, save_phy_regs[i][0]);
  213. save_radio_4a4 = b43_radio_read(dev, 0x4a4);
  214. /* TODO: config sth */
  215. for (i = 0; i < 6; i++)
  216. b43_radio_write(dev, save_radio_regs[i][0],
  217. save_radio_regs[i][1]);
  218. for (i = 0; i < 14; i++)
  219. b43_phy_write(dev, save_phy_regs[i][0], save_phy_regs[i][1]);
  220. b43_radio_write(dev, 0x4a4, save_radio_4a4);
  221. }
  222. /**************************************************
  223. * Channel switching ops.
  224. **************************************************/
  225. /* wlc_lcnphy_set_chanspec_tweaks */
  226. static void b43_phy_lcn_set_channel_tweaks(struct b43_wldev *dev, int channel)
  227. {
  228. struct bcma_drv_cc *cc = &dev->dev->bdev->bus->drv_cc;
  229. b43_phy_maskset(dev, 0x448, ~0x300, (channel == 14) ? 0x200 : 0x100);
  230. if (channel == 1 || channel == 2 || channel == 3 || channel == 4 ||
  231. channel == 9 || channel == 10 || channel == 11 || channel == 12) {
  232. bcma_chipco_pll_write(cc, 0x2, 0x03000c04);
  233. bcma_chipco_pll_maskset(cc, 0x3, 0x00ffffff, 0x0);
  234. bcma_chipco_pll_write(cc, 0x4, 0x200005c0);
  235. bcma_cc_set32(cc, BCMA_CC_PMU_CTL, 0x400);
  236. b43_phy_write(dev, 0x942, 0);
  237. /* b43_phy_lcn_txrx_spur_avoidance_mode(dev, false); */
  238. b43_phy_maskset(dev, 0x424, (u16) ~0xff00, 0x1b00);
  239. b43_phy_write(dev, 0x425, 0x5907);
  240. } else {
  241. bcma_chipco_pll_write(cc, 0x2, 0x03140c04);
  242. bcma_chipco_pll_maskset(cc, 0x3, 0x00ffffff, 0x333333);
  243. bcma_chipco_pll_write(cc, 0x4, 0x202c2820);
  244. bcma_cc_set32(cc, BCMA_CC_PMU_CTL, 0x400);
  245. b43_phy_write(dev, 0x942, 0);
  246. /* b43_phy_lcn_txrx_spur_avoidance_mode(dev, true); */
  247. b43_phy_maskset(dev, 0x424, (u16) ~0xff00, 0x1f00);
  248. b43_phy_write(dev, 0x425, 0x590a);
  249. }
  250. b43_phy_set(dev, 0x44a, 0x44);
  251. b43_phy_write(dev, 0x44a, 0x80);
  252. }
  253. /* wlc_phy_chanspec_set_lcnphy */
  254. static int b43_phy_lcn_set_channel(struct b43_wldev *dev,
  255. struct ieee80211_channel *channel,
  256. enum nl80211_channel_type channel_type)
  257. {
  258. b43_phy_lcn_set_channel_tweaks(dev, channel->hw_value);
  259. b43_phy_set(dev, 0x44a, 0x44);
  260. b43_phy_write(dev, 0x44a, 0x80);
  261. b43_radio_2064_channel_setup(dev);
  262. mdelay(1);
  263. b43_phy_lcn_afe_set_unset(dev);
  264. /* TODO */
  265. return 0;
  266. }
  267. /**************************************************
  268. * Basic PHY ops.
  269. **************************************************/
  270. static int b43_phy_lcn_op_allocate(struct b43_wldev *dev)
  271. {
  272. struct b43_phy_lcn *phy_lcn;
  273. phy_lcn = kzalloc(sizeof(*phy_lcn), GFP_KERNEL);
  274. if (!phy_lcn)
  275. return -ENOMEM;
  276. dev->phy.lcn = phy_lcn;
  277. return 0;
  278. }
  279. static void b43_phy_lcn_op_free(struct b43_wldev *dev)
  280. {
  281. struct b43_phy *phy = &dev->phy;
  282. struct b43_phy_lcn *phy_lcn = phy->lcn;
  283. kfree(phy_lcn);
  284. phy->lcn = NULL;
  285. }
  286. static void b43_phy_lcn_op_prepare_structs(struct b43_wldev *dev)
  287. {
  288. struct b43_phy *phy = &dev->phy;
  289. struct b43_phy_lcn *phy_lcn = phy->lcn;
  290. memset(phy_lcn, 0, sizeof(*phy_lcn));
  291. }
  292. /* wlc_phy_init_lcnphy */
  293. static int b43_phy_lcn_op_init(struct b43_wldev *dev)
  294. {
  295. struct bcma_drv_cc *cc = &dev->dev->bdev->bus->drv_cc;
  296. b43_phy_set(dev, 0x44a, 0x80);
  297. b43_phy_mask(dev, 0x44a, 0x7f);
  298. b43_phy_set(dev, 0x6d1, 0x80);
  299. b43_phy_write(dev, 0x6d0, 0x7);
  300. b43_phy_lcn_afe_set_unset(dev);
  301. b43_phy_write(dev, 0x60a, 0xa0);
  302. b43_phy_write(dev, 0x46a, 0x19);
  303. b43_phy_maskset(dev, 0x663, 0xFF00, 0x64);
  304. b43_phy_lcn_tables_init(dev);
  305. b43_phy_lcn_rev0_baseband_init(dev);
  306. b43_phy_lcn_bu_tweaks(dev);
  307. if (dev->phy.radio_ver == 0x2064)
  308. b43_radio_2064_init(dev);
  309. else
  310. B43_WARN_ON(1);
  311. b43_phy_lcn_sense_setup(dev);
  312. b43_switch_channel(dev, dev->phy.channel);
  313. bcma_chipco_regctl_maskset(cc, 0, 0xf, 0x9);
  314. bcma_chipco_chipctl_maskset(cc, 0, 0, 0x03cddddd);
  315. /* TODO */
  316. b43_phy_set(dev, 0x448, 0x4000);
  317. udelay(100);
  318. b43_phy_mask(dev, 0x448, ~0x4000);
  319. /* TODO */
  320. return 0;
  321. }
  322. static void b43_phy_lcn_op_software_rfkill(struct b43_wldev *dev,
  323. bool blocked)
  324. {
  325. if (b43_read32(dev, B43_MMIO_MACCTL) & B43_MACCTL_ENABLED)
  326. b43err(dev->wl, "MAC not suspended\n");
  327. if (blocked) {
  328. b43_phy_mask(dev, B43_PHY_LCN_RF_CTL2, ~0x7c00);
  329. b43_phy_set(dev, B43_PHY_LCN_RF_CTL1, 0x1f00);
  330. b43_phy_mask(dev, B43_PHY_LCN_RF_CTL5, ~0x7f00);
  331. b43_phy_mask(dev, B43_PHY_LCN_RF_CTL4, ~0x2);
  332. b43_phy_set(dev, B43_PHY_LCN_RF_CTL3, 0x808);
  333. b43_phy_mask(dev, B43_PHY_LCN_RF_CTL7, ~0x8);
  334. b43_phy_set(dev, B43_PHY_LCN_RF_CTL6, 0x8);
  335. } else {
  336. b43_phy_mask(dev, B43_PHY_LCN_RF_CTL1, ~0x1f00);
  337. b43_phy_mask(dev, B43_PHY_LCN_RF_CTL3, ~0x808);
  338. b43_phy_mask(dev, B43_PHY_LCN_RF_CTL6, ~0x8);
  339. }
  340. }
  341. static void b43_phy_lcn_op_switch_analog(struct b43_wldev *dev, bool on)
  342. {
  343. if (on) {
  344. b43_phy_mask(dev, B43_PHY_LCN_AFE_CTL1, ~0x7);
  345. } else {
  346. b43_phy_set(dev, B43_PHY_LCN_AFE_CTL2, 0x7);
  347. b43_phy_set(dev, B43_PHY_LCN_AFE_CTL1, 0x7);
  348. }
  349. }
  350. static int b43_phy_lcn_op_switch_channel(struct b43_wldev *dev,
  351. unsigned int new_channel)
  352. {
  353. struct ieee80211_channel *channel = dev->wl->hw->conf.channel;
  354. enum nl80211_channel_type channel_type = dev->wl->hw->conf.channel_type;
  355. if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) {
  356. if ((new_channel < 1) || (new_channel > 14))
  357. return -EINVAL;
  358. } else {
  359. return -EINVAL;
  360. }
  361. return b43_phy_lcn_set_channel(dev, channel, channel_type);
  362. }
  363. static unsigned int b43_phy_lcn_op_get_default_chan(struct b43_wldev *dev)
  364. {
  365. if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ)
  366. return 1;
  367. return 36;
  368. }
  369. static enum b43_txpwr_result
  370. b43_phy_lcn_op_recalc_txpower(struct b43_wldev *dev, bool ignore_tssi)
  371. {
  372. return B43_TXPWR_RES_DONE;
  373. }
  374. static void b43_phy_lcn_op_adjust_txpower(struct b43_wldev *dev)
  375. {
  376. }
  377. /**************************************************
  378. * R/W ops.
  379. **************************************************/
  380. static u16 b43_phy_lcn_op_read(struct b43_wldev *dev, u16 reg)
  381. {
  382. b43_write16(dev, B43_MMIO_PHY_CONTROL, reg);
  383. return b43_read16(dev, B43_MMIO_PHY_DATA);
  384. }
  385. static void b43_phy_lcn_op_write(struct b43_wldev *dev, u16 reg, u16 value)
  386. {
  387. b43_write16(dev, B43_MMIO_PHY_CONTROL, reg);
  388. b43_write16(dev, B43_MMIO_PHY_DATA, value);
  389. }
  390. static void b43_phy_lcn_op_maskset(struct b43_wldev *dev, u16 reg, u16 mask,
  391. u16 set)
  392. {
  393. b43_write16(dev, B43_MMIO_PHY_CONTROL, reg);
  394. b43_write16(dev, B43_MMIO_PHY_DATA,
  395. (b43_read16(dev, B43_MMIO_PHY_DATA) & mask) | set);
  396. }
  397. static u16 b43_phy_lcn_op_radio_read(struct b43_wldev *dev, u16 reg)
  398. {
  399. /* LCN-PHY needs 0x200 for read access */
  400. reg |= 0x200;
  401. b43_write16(dev, B43_MMIO_RADIO24_CONTROL, reg);
  402. return b43_read16(dev, B43_MMIO_RADIO24_DATA);
  403. }
  404. static void b43_phy_lcn_op_radio_write(struct b43_wldev *dev, u16 reg,
  405. u16 value)
  406. {
  407. b43_write16(dev, B43_MMIO_RADIO24_CONTROL, reg);
  408. b43_write16(dev, B43_MMIO_RADIO24_DATA, value);
  409. }
  410. /**************************************************
  411. * PHY ops struct.
  412. **************************************************/
  413. const struct b43_phy_operations b43_phyops_lcn = {
  414. .allocate = b43_phy_lcn_op_allocate,
  415. .free = b43_phy_lcn_op_free,
  416. .prepare_structs = b43_phy_lcn_op_prepare_structs,
  417. .init = b43_phy_lcn_op_init,
  418. .phy_read = b43_phy_lcn_op_read,
  419. .phy_write = b43_phy_lcn_op_write,
  420. .phy_maskset = b43_phy_lcn_op_maskset,
  421. .radio_read = b43_phy_lcn_op_radio_read,
  422. .radio_write = b43_phy_lcn_op_radio_write,
  423. .software_rfkill = b43_phy_lcn_op_software_rfkill,
  424. .switch_analog = b43_phy_lcn_op_switch_analog,
  425. .switch_channel = b43_phy_lcn_op_switch_channel,
  426. .get_default_chan = b43_phy_lcn_op_get_default_chan,
  427. .recalc_txpower = b43_phy_lcn_op_recalc_txpower,
  428. .adjust_txpower = b43_phy_lcn_op_adjust_txpower,
  429. };