.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | |
---|
3 | 4 | Broadcom B43legacy wireless driver |
---|
.. | .. |
---|
12 | 13 | Some parts of the code in this file are derived from the ipw2200 |
---|
13 | 14 | driver Copyright(c) 2003 - 2004 Intel Corporation. |
---|
14 | 15 | |
---|
15 | | - This program is free software; you can redistribute it and/or modify |
---|
16 | | - it under the terms of the GNU General Public License as published by |
---|
17 | | - the Free Software Foundation; either version 2 of the License, or |
---|
18 | | - (at your option) any later version. |
---|
19 | | - |
---|
20 | | - This program is distributed in the hope that it will be useful, |
---|
21 | | - but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
22 | | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
23 | | - GNU General Public License for more details. |
---|
24 | | - |
---|
25 | | - You should have received a copy of the GNU General Public License |
---|
26 | | - along with this program; see the file COPYING. If not, write to |
---|
27 | | - the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor, |
---|
28 | | - Boston, MA 02110-1301, USA. |
---|
29 | 16 | |
---|
30 | 17 | */ |
---|
31 | 18 | |
---|
.. | .. |
---|
95 | 82 | B43legacy_WARN_ON(status & B43legacy_MACCTL_RADIOLOCK); |
---|
96 | 83 | status |= B43legacy_MACCTL_RADIOLOCK; |
---|
97 | 84 | b43legacy_write32(dev, B43legacy_MMIO_MACCTL, status); |
---|
98 | | - mmiowb(); |
---|
99 | 85 | udelay(10); |
---|
100 | 86 | } |
---|
101 | 87 | |
---|
.. | .. |
---|
108 | 94 | B43legacy_WARN_ON(!(status & B43legacy_MACCTL_RADIOLOCK)); |
---|
109 | 95 | status &= ~B43legacy_MACCTL_RADIOLOCK; |
---|
110 | 96 | b43legacy_write32(dev, B43legacy_MMIO_MACCTL, status); |
---|
111 | | - mmiowb(); |
---|
112 | 97 | } |
---|
113 | 98 | |
---|
114 | 99 | u16 b43legacy_radio_read16(struct b43legacy_wldev *dev, u16 offset) |
---|
.. | .. |
---|
141 | 126 | void b43legacy_radio_write16(struct b43legacy_wldev *dev, u16 offset, u16 val) |
---|
142 | 127 | { |
---|
143 | 128 | b43legacy_write16(dev, B43legacy_MMIO_RADIO_CONTROL, offset); |
---|
144 | | - mmiowb(); |
---|
145 | 129 | b43legacy_write16(dev, B43legacy_MMIO_RADIO_DATA_LOW, val); |
---|
146 | 130 | } |
---|
147 | 131 | |
---|
.. | .. |
---|
329 | 313 | return ret[channel - 1]; |
---|
330 | 314 | } |
---|
331 | 315 | |
---|
332 | | -/* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ |
---|
| 316 | +/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */ |
---|
333 | 317 | void b43legacy_nrssi_hw_write(struct b43legacy_wldev *dev, u16 offset, s16 val) |
---|
334 | 318 | { |
---|
335 | 319 | b43legacy_phy_write(dev, B43legacy_PHY_NRSSILT_CTRL, offset); |
---|
336 | | - mmiowb(); |
---|
337 | 320 | b43legacy_phy_write(dev, B43legacy_PHY_NRSSILT_DATA, (u16)val); |
---|
338 | 321 | } |
---|
339 | 322 | |
---|
340 | | -/* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ |
---|
| 323 | +/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */ |
---|
341 | 324 | s16 b43legacy_nrssi_hw_read(struct b43legacy_wldev *dev, u16 offset) |
---|
342 | 325 | { |
---|
343 | 326 | u16 val; |
---|
.. | .. |
---|
348 | 331 | return (s16)val; |
---|
349 | 332 | } |
---|
350 | 333 | |
---|
351 | | -/* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ |
---|
| 334 | +/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */ |
---|
352 | 335 | void b43legacy_nrssi_hw_update(struct b43legacy_wldev *dev, u16 val) |
---|
353 | 336 | { |
---|
354 | 337 | u16 i; |
---|
.. | .. |
---|
362 | 345 | } |
---|
363 | 346 | } |
---|
364 | 347 | |
---|
365 | | -/* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ |
---|
| 348 | +/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */ |
---|
366 | 349 | void b43legacy_nrssi_mem_update(struct b43legacy_wldev *dev) |
---|
367 | 350 | { |
---|
368 | 351 | struct b43legacy_phy *phy = &dev->phy; |
---|