phy.h (48ee4835b73c48590d05a54730dc8037ebd39d3b) phy.h (861e58c8fc6be0e1319525b5e9a27a0d2e776210)
1/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2/* Copyright(c) 2019-2020 Realtek Corporation
3 */
4
5#ifndef __RTW89_PHY_H__
6#define __RTW89_PHY_H__
7
8#include "core.h"

--- 251 unchanged lines hidden (view full) ---

260};
261
262#define DECLARE_PHY_REG3_TBL(_name) \
263const struct rtw89_phy_reg3_tbl _name ## _tbl = { \
264 .reg3 = _name, \
265 .size = ARRAY_SIZE(_name), \
266}
267
1/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2/* Copyright(c) 2019-2020 Realtek Corporation
3 */
4
5#ifndef __RTW89_PHY_H__
6#define __RTW89_PHY_H__
7
8#include "core.h"

--- 251 unchanged lines hidden (view full) ---

260};
261
262#define DECLARE_PHY_REG3_TBL(_name) \
263const struct rtw89_phy_reg3_tbl _name ## _tbl = { \
264 .reg3 = _name, \
265 .size = ARRAY_SIZE(_name), \
266}
267
268extern const u8 rtw89_rs_idx_max[RTW89_RS_MAX];
269extern const u8 rtw89_rs_nss_max[RTW89_RS_MAX];
270
268static inline void rtw89_phy_write8(struct rtw89_dev *rtwdev,
269 u32 addr, u8 data)
270{
271 rtw89_write8(rtwdev, addr | RTW89_PHY_ADDR_OFFSET, data);
272}
273
274static inline void rtw89_phy_write16(struct rtw89_dev *rtwdev,
275 u32 addr, u16 data)

--- 96 unchanged lines hidden ---
271static inline void rtw89_phy_write8(struct rtw89_dev *rtwdev,
272 u32 addr, u8 data)
273{
274 rtw89_write8(rtwdev, addr | RTW89_PHY_ADDR_OFFSET, data);
275}
276
277static inline void rtw89_phy_write16(struct rtw89_dev *rtwdev,
278 u32 addr, u16 data)

--- 96 unchanged lines hidden ---