| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | |
|---|
| 3 | 4 | Broadcom B43legacy wireless driver |
|---|
| .. | .. |
|---|
| 8 | 9 | Danny van Dyk <kugelfang@gentoo.org> |
|---|
| 9 | 10 | Andreas Jaggi <andreas.jaggi@waterwave.ch> |
|---|
| 10 | 11 | |
|---|
| 11 | | - This program is free software; you can redistribute it and/or modify |
|---|
| 12 | | - it under the terms of the GNU General Public License as published by |
|---|
| 13 | | - the Free Software Foundation; either version 2 of the License, or |
|---|
| 14 | | - (at your option) any later version. |
|---|
| 15 | | - |
|---|
| 16 | | - This program is distributed in the hope that it will be useful, |
|---|
| 17 | | - but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 18 | | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 19 | | - GNU General Public License for more details. |
|---|
| 20 | | - |
|---|
| 21 | | - You should have received a copy of the GNU General Public License |
|---|
| 22 | | - along with this program; see the file COPYING. If not, write to |
|---|
| 23 | | - the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor, |
|---|
| 24 | | - Boston, MA 02110-1301, USA. |
|---|
| 25 | 12 | |
|---|
| 26 | 13 | */ |
|---|
| 27 | 14 | |
|---|
| .. | .. |
|---|
| 315 | 302 | void b43legacy_ilt_write(struct b43legacy_wldev *dev, u16 offset, u16 val) |
|---|
| 316 | 303 | { |
|---|
| 317 | 304 | b43legacy_phy_write(dev, B43legacy_PHY_ILT_G_CTRL, offset); |
|---|
| 318 | | - mmiowb(); |
|---|
| 319 | 305 | b43legacy_phy_write(dev, B43legacy_PHY_ILT_G_DATA1, val); |
|---|
| 320 | 306 | } |
|---|
| 321 | 307 | |
|---|
| 322 | 308 | void b43legacy_ilt_write32(struct b43legacy_wldev *dev, u16 offset, u32 val) |
|---|
| 323 | 309 | { |
|---|
| 324 | 310 | b43legacy_phy_write(dev, B43legacy_PHY_ILT_G_CTRL, offset); |
|---|
| 325 | | - mmiowb(); |
|---|
| 326 | 311 | b43legacy_phy_write(dev, B43legacy_PHY_ILT_G_DATA2, |
|---|
| 327 | 312 | (val & 0xFFFF0000) >> 16); |
|---|
| 328 | 313 | b43legacy_phy_write(dev, B43legacy_PHY_ILT_G_DATA1, |
|---|